mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-07-07 12:28:55 +00:00
changed damage so it goes up instead of down
This commit is contained in:
parent
3cdc91cd73
commit
5477c430d8
@ -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)))
|
||||
|
||||
|
@ -14,7 +14,7 @@
|
||||
program
|
||||
{:pos-x (rand-int width)
|
||||
:pos-y (rand-int height)
|
||||
:damage 100}))
|
||||
:damage 0}))
|
||||
programs))
|
||||
:robot-idx 0})
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user