Skip to content

Commit

Permalink
cleanup/comments
Browse files Browse the repository at this point in the history
  • Loading branch information
NBKelly committed Jan 31, 2025
1 parent d223014 commit 6612b52
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/clj/game/core/runs.clj
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,10 @@
;; note: as far as I can tell, this deliberately leaves on open eid (the run eid).
;; Attempting to change that breaks a very large number of tests, so I'm leaving this
;; note here to remind me when I look at this later. -nbk, 2025
;;
;; TODO: rewrite forced encounter to use it's own version of encounter-ice,
;; then we can close the eids on this. Right now, closing the eids breaks
;; forced encounters and nothing else.
[state side eid ice]
(swap! state update :encounters conj {:eid eid
:ice ice})
Expand All @@ -362,8 +366,10 @@
;; or knifed.
(when-let [c-ice (get-current-ice state)]
(when (and (same-card? c-ice ice) (zero? (count (:subroutines c-ice))))
(wait-for (trigger-event-simult state side :subroutines-broken nil (break-subs-event-context state c-ice [] (get-in @state [:runner :basic-action-card]))))))))))

(wait-for
(trigger-event-simult state side :subroutines-broken nil (break-subs-event-context state c-ice [] (get-in @state [:runner :basic-action-card])))
(when (should-end-encounter? state side ice)
(encounter-ends state side eid)))))))))

(defmethod start-next-phase :encounter-ice
[state side _]
Expand Down

0 comments on commit 6612b52

Please sign in to comment.