Skip to content

Commit fcfb97c

Browse files
committed
tests for konjin with hippo and crew
1 parent 51560de commit fcfb97c

File tree

2 files changed

+51
-0
lines changed

2 files changed

+51
-0
lines changed

test/clj/game/cards/hardware_test.clj

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2678,6 +2678,27 @@
26782678
(click-prompt state :runner "End the run")
26792679
(is (no-prompt? state :runner) "No Hippo prompt on later ice")))
26802680

2681+
(deftest hippo-interaction-with-konjin
2682+
(do-game
2683+
(new-game {:corp {:hand ["Ice Wall" "Konjin"]}
2684+
:runner {:hand ["Hippo" "Eater"] :credits 15}})
2685+
(play-from-hand state :corp "Ice Wall" "HQ")
2686+
(play-from-hand state :corp "Konjin" "R&D")
2687+
(rez state :corp (get-ice state :hq 0))
2688+
(rez state :corp (get-ice state :rd 0))
2689+
(take-credits state :corp)
2690+
(play-from-hand state :runner "Hippo")
2691+
(play-from-hand state :runner "Eater")
2692+
(run-on state :rd)
2693+
(run-continue state :encounter-ice)
2694+
(is (= "Choose an amount to spend for Konjin" (:msg (prompt-map :corp))) "Psi Game")
2695+
(click-prompt state :corp "0 [Credits]")
2696+
(click-prompt state :runner "1 [Credits]")
2697+
(is (= "Choose a piece of ice" (:msg (prompt-map :corp))) "Prompt to choose Ice")
2698+
(click-card state :corp "Ice Wall")
2699+
(auto-pump-and-break state (get-program state 0))
2700+
(is (no-prompt? state :runner) "Not prompted to use hippo (we're not on the attacked server)")))
2701+
26812702
(deftest hippocampic-mechanocytes
26822703
;; Hippocampic Mechanocytes
26832704
(do-game

test/clj/game/cards/ice_test.clj

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4398,6 +4398,36 @@
43984398
(fire-subs state (refresh iw))
43994399
(is (not (:run @state)) "The run should have ended"))))
44004400

4401+
(deftest konjin-target-ice-gets-trashed
4402+
;; Return to encountering Konjin after forced encounter
4403+
(do-game
4404+
(new-game {:corp {:hand ["Ice Wall" "Konjin"]}
4405+
:runner {:hand ["Arruaceiras Crew"]}})
4406+
(play-from-hand state :corp "Ice Wall" "HQ")
4407+
(play-from-hand state :corp "Konjin" "R&D")
4408+
(take-credits state :corp)
4409+
(play-from-hand state :runner "Arruaceiras Crew")
4410+
(let [konjin (get-ice state :rd 0)
4411+
iw (get-ice state :hq 0)]
4412+
(rez state :corp konjin)
4413+
(rez state :corp iw)
4414+
(run-on state :rd)
4415+
(run-continue state)
4416+
(is (= (refresh konjin) (core/get-current-ice state)) "The runner should be encountering Konjin")
4417+
(is (= "Choose an amount to spend for Konjin" (:msg (prompt-map :corp))) "Psi Game")
4418+
(click-prompt state :corp "0 [Credits]")
4419+
(click-prompt state :runner "1 [Credits]")
4420+
(is (= "Choose a piece of ice" (:msg (prompt-map :corp))) "Prompt to choose Ice")
4421+
(click-card state :corp iw)
4422+
(is (= (refresh iw) (core/get-current-ice state)) "The runner should be encountering Ice Wall")
4423+
(card-ability state :runner (get-resource state 0) 0)
4424+
(card-ability state :runner (get-resource state 0) 1)
4425+
(is (= "Ice Wall" (-> (get-corp) :discard first :title)) "Trashed ice wall")
4426+
(run-continue state :encounter-ice)
4427+
(is (= (refresh konjin) (core/get-current-ice state)) "The runner should be back to encountering Konjin")
4428+
(is (no-prompt? state :runner) "No repeat psi prompt")
4429+
(is (no-prompt? state :corp) "No repeat psi prompt"))))
4430+
44014431
(deftest lockdown
44024432
;; Lockdown - Prevent Runner from drawing cards for the rest of the turn
44034433
(do-game

0 commit comments

Comments
 (0)