changed damage so it goes up instead of down

This commit is contained in:
Richard Harrington 2013-08-06 13:06:37 -04:00
parent 3cdc91cd73
commit 5477c430d8
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@
TODO: add a lot more stuff here that happens after the step-brain function,
like moving the robot. Actually, that's the main thing."
[robot world]
(if (<= (:damage robot) 0)
(if (>= (:damage robot) 100)
world
(brain/step-brain robot world)))

View File

@ -14,7 +14,7 @@
program
{:pos-x (rand-int width)
:pos-y (rand-int height)
:damage 100}))
:damage 0}))
programs))
:robot-idx 0})