mirror of
https://github.com/richardharrington/robotwar.git
synced 2024-06-26 01:29:33 +00:00
fixed merge conflict from stash
This commit is contained in:
parent
078f927c29
commit
de127b654b
|
@ -15,6 +15,11 @@
|
|||
:aim
|
||||
:damage
|
||||
:shot-timer]))
|
||||
(select-shell-keys [shell]
|
||||
(select-keys shell [:id
|
||||
:pos-x
|
||||
:pos-y
|
||||
:exploded]))
|
||||
(three-sigs-map [m]
|
||||
(zipmap (keys m)
|
||||
(map #(if (float? %)
|
||||
|
@ -25,5 +30,10 @@
|
|||
(update-in
|
||||
world
|
||||
[:robots]
|
||||
#(mapv (comp three-sigs-map select-robot-keys) %)))]
|
||||
#(mapv (comp three-sigs-map select-robot-keys) %)))
|
||||
(compact-shells [world]
|
||||
(update-in
|
||||
world
|
||||
[:shells]
|
||||
#(map (comp three-sigs-map select-shell-keys) %)))]
|
||||
(map compact-robots worlds)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user