Skip to content

Commit 25fac6b

Browse files
authored
Merge pull request #7010 from francescopellegrini/the-price
2 parents d4f234b + 563201e commit 25fac6b

File tree

1 file changed

+6
-7
lines changed

1 file changed

+6
-7
lines changed

src/clj/game/cards/events.clj

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3561,27 +3561,26 @@
35613561
(damage-prevent :brain Integer/MAX_VALUE))}]})
35623562

35633563
(defcard "The Price"
3564-
{:on-play {:msg "trash the top 4 cards of the stack"
3565-
:async true
3564+
{:on-play {:async true
35663565
:req (req (not (empty? (:deck runner))))
35673566
:effect
35683567
(req
35693568
(wait-for (mill state :runner (make-eid state eid) :runner 4)
35703569
(let [trashed-cards async-result]
35713570
(system-msg state side
3572-
(str "trashes "
3573-
(str/join ", " (map :title trashed-cards))
3571+
(str "uses " (:title card) "to trash "
3572+
(enumerate-str (map :title trashed-cards))
35743573
" from the top of the stack"))
35753574
(continue-ability
35763575
state side
3577-
{:prompt "choose a trashed card to install"
3576+
{:prompt "Choose a card to install"
35783577
:async true
35793578
:choices (req (cancellable (filter #(and (not (event? %))
35803579
(runner-can-install? state side % nil)
35813580
(can-pay? state side (assoc eid :source card :source-type :runner-install) % nil [:credit (install-cost state side % {:cost-bonus -3})])
35823581
(in-discard? (get-card state %))) trashed-cards)))
3583-
:msg (msg "install " (:title target) ", paying 3 [Credit] less")
3584-
:cancel-effect (effect (system-msg "declines to install a card")
3582+
:msg (msg "install " (:title target) ", paying 3 [Credits] less")
3583+
:cancel-effect (effect (system-msg (str "declines to use " (:title card) " to install a card"))
35853584
(effect-completed eid))
35863585
:effect (req (let [card-to-install (first (seq (filter #(and (= (:title target) (:title %)) (in-discard? (get-card state %))) trashed-cards)))]
35873586
(runner-install state side (assoc eid :source card :source-type :runner-install) card-to-install {:cost-bonus -3})))}

0 commit comments

Comments
 (0)