Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/handlers.clj
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,9 @@
(let [region_id (Integer/parseInt region_id)
armies (Integer/parseInt armies)
owner (owner_symbol state owner)]
(assoc-in state
[:regions region_id :owner]
owner)))
(-> state
(assoc-in [:regions region_id :owner] owner)
(assoc-in [:regions region_id :armies] armies))))
(reduce
(fn [state region_id]
(if (= :us (get-in state [:regions region_id :owner]))
Expand Down