|
29 | 29 | [game.core.gaining :refer [gain-credits lose-clicks lose-credits]]
|
30 | 30 | [game.core.hand-size :refer [hand-size]]
|
31 | 31 | [game.core.hosting :refer [host]]
|
32 |
| - [game.core.ice :refer [add-sub add-sub! break-sub remove-sub! remove-subs! |
33 |
| - resolve-subroutine set-current-ice strength-bonus |
34 |
| - unbroken-subroutines-choice update-all-ice update-all-icebreakers |
| 32 | + [game.core.ice :refer [add-sub add-sub! break-sub ice-strength-bonus |
| 33 | + remove-sub! remove-subs! resolve-subroutine |
| 34 | + set-current-ice unbroken-subroutines-choice update-all-ice update-all-icebreakers |
35 | 35 | update-ice-strength]]
|
36 | 36 | [game.core.initializing :refer [card-init]]
|
37 | 37 | [game.core.installing :refer [corp-install corp-install-list
|
|
359 | 359 | [subroutines]
|
360 | 360 | {:advanceable :always
|
361 | 361 | :subroutines subroutines
|
362 |
| - :constant-effects [(strength-bonus (req (get-counters card :advancement)))]}) |
| 362 | + :constant-effects [(ice-strength-bonus (req (get-counters card :advancement)))]}) |
363 | 363 |
|
364 | 364 | (defn space-ice
|
365 | 365 | "Creates data for Space ice with specified abilities."
|
|
592 | 592 | :effect (effect (add-prop target :advance-counter 1 {:placed true})
|
593 | 593 | (gain-credits eid 1))}
|
594 | 594 | (assoc end-the-run :breakable breakable-fn)]
|
595 |
| - :constant-effects [(strength-bonus |
| 595 | + :constant-effects [(ice-strength-bonus |
596 | 596 | (req (<= 3 (get-counters card :advancement)))
|
597 | 597 | 3)]}))
|
598 | 598 |
|
|
758 | 758 |
|
759 | 759 | (defcard "Bathynomus"
|
760 | 760 | {:subroutines [(do-net-damage 3)]
|
761 |
| - :constant-effects [(strength-bonus (req (protecting-archives? card)) 3)]}) |
| 761 | + :constant-effects [(ice-strength-bonus (req (protecting-archives? card)) 3)]}) |
762 | 762 |
|
763 | 763 | (defcard "Battlement"
|
764 | 764 | {:subroutines [end-the-run
|
|
1083 | 1083 | :label "The Runner trashes 1 program")
|
1084 | 1084 | runner-loses-click
|
1085 | 1085 | end-the-run]
|
1086 |
| - :constant-effects [(strength-bonus |
| 1086 | + :constant-effects [(ice-strength-bonus |
1087 | 1087 | (req (some #(has-subtype? % "AI") (all-active-installed state :runner)))
|
1088 | 1088 | 3)]})
|
1089 | 1089 |
|
|
1102 | 1102 | (corp? %))}
|
1103 | 1103 | :msg (msg (corp-install-msg target))
|
1104 | 1104 | :effect (effect (corp-install eid target nil nil))}]
|
1105 |
| - :constant-effects [(strength-bonus (req (protecting-archives? card)) 3)]}) |
| 1105 | + :constant-effects [(ice-strength-bonus (req (protecting-archives? card)) 3)]}) |
1106 | 1106 |
|
1107 | 1107 | (defcard "Curtain Wall"
|
1108 | 1108 | {:subroutines [end-the-run
|
1109 | 1109 | end-the-run
|
1110 | 1110 | end-the-run]
|
1111 |
| - :constant-effects [(strength-bonus |
| 1111 | + :constant-effects [(ice-strength-bonus |
1112 | 1112 | (req (let [ices (:ices (card->server state card))]
|
1113 | 1113 | (same-card? card (last ices))))
|
1114 | 1114 | 4)]
|
|
1257 | 1257 | :msg (msg "place " (quantify target "power counter"))
|
1258 | 1258 | :effect (effect (add-counter card :power target)
|
1259 | 1259 | (update-ice-strength card))}
|
1260 |
| - :constant-effects [(strength-bonus (req (get-counters card :power)))] |
| 1260 | + :constant-effects [(ice-strength-bonus (req (get-counters card :power)))] |
1261 | 1261 | :subroutines [(trace-ability 2 {:label "Give the Runner 1 tag and end the run"
|
1262 | 1262 | :msg "give the Runner 1 tag and end the run"
|
1263 | 1263 | :async true
|
|
1655 | 1655 | :label "Draw cards, reveal and shuffle agendas"
|
1656 | 1656 | :effect (req (wait-for (resolve-ability state side draw-ab card nil)
|
1657 | 1657 | (continue-ability state side reveal-and-shuffle card nil)))}]
|
1658 |
| - {:constant-effects [(strength-bonus (req (= :this-turn (:rezzed card))) 6)] |
| 1658 | + {:constant-effects [(ice-strength-bonus (req (= :this-turn (:rezzed card))) 6)] |
1659 | 1659 | :subroutines [draw-reveal-shuffle
|
1660 | 1660 | end-the-run]}))
|
1661 | 1661 |
|
|
1691 | 1691 |
|
1692 | 1692 | (defcard "Gutenberg"
|
1693 | 1693 | {:subroutines [(tag-trace 7)]
|
1694 |
| - :constant-effects [(strength-bonus (req (protecting-rd? card)) 3)]}) |
| 1694 | + :constant-effects [(ice-strength-bonus (req (protecting-rd? card)) 3)]}) |
1695 | 1695 |
|
1696 | 1696 | (defcard "Gyri Labyrinth"
|
1697 | 1697 | {:subroutines [{:req (req run)
|
|
1742 | 1742 | :effect (effect (clear-wait-prompt :runner)
|
1743 | 1743 | (trash eid target {:cause :subroutine}))}
|
1744 | 1744 | end-the-run]
|
1745 |
| - :constant-effects [(strength-bonus (req (- (count (filter #(has-subtype? % "Icebreaker") |
1746 |
| - (all-active-installed state :runner))))))]}) |
| 1745 | + :constant-effects [(ice-strength-bonus (req (- (count (filter #(has-subtype? % "Icebreaker") |
| 1746 | + (all-active-installed state :runner))))))]}) |
1747 | 1747 |
|
1748 | 1748 | (defcard "Hailstorm"
|
1749 | 1749 | {:subroutines [{:label "Remove a card in the Heap from the game"
|
|
2039 | 2039 |
|
2040 | 2040 | (defcard "IQ"
|
2041 | 2041 | {:subroutines [end-the-run]
|
2042 |
| - :constant-effects [(strength-bonus (req (count (:hand corp))))] |
| 2042 | + :constant-effects [(ice-strength-bonus (req (count (:hand corp))))] |
2043 | 2043 | :rez-cost-bonus (req (count (:hand corp)))
|
2044 | 2044 | :leave-play (req (remove-watch state (keyword (str "iq" (:cid card)))))})
|
2045 | 2045 |
|
|
2453 | 2453 |
|
2454 | 2454 | (defcard "Meru Mati"
|
2455 | 2455 | {:subroutines [end-the-run]
|
2456 |
| - :constant-effects [(strength-bonus (req (protecting-hq? card)) 3)]}) |
| 2456 | + :constant-effects [(ice-strength-bonus (req (protecting-hq? card)) 3)]}) |
2457 | 2457 |
|
2458 | 2458 | (defcard "Metamorph"
|
2459 | 2459 | {:subroutines [{:label "Swap two pieces of ice or swap two installed non-ice"
|
|
2688 | 2688 |
|
2689 | 2689 | (defcard "NEXT Bronze"
|
2690 | 2690 | {:subroutines [end-the-run]
|
2691 |
| - :constant-effects [(strength-bonus (req (next-ice-count corp)))]}) |
| 2691 | + :constant-effects [(ice-strength-bonus (req (next-ice-count corp)))]}) |
2692 | 2692 |
|
2693 | 2693 | (defcard "NEXT Diamond"
|
2694 | 2694 | {:rez-cost-bonus (req (- (next-ice-count corp)))
|
|
2865 | 2865 | end-the-run-if-tagged]})
|
2866 | 2866 |
|
2867 | 2867 | (defcard "Palisade"
|
2868 |
| - {:constant-effects [(strength-bonus (req (not (protecting-a-central? card))) 2)] |
| 2868 | + {:constant-effects [(ice-strength-bonus (req (not (protecting-a-central? card))) 2)] |
2869 | 2869 | :subroutines [end-the-run]})
|
2870 | 2870 |
|
2871 | 2871 | (defcard "Paper Wall"
|
|
2901 | 2901 | :subroutines [(give-tags 1)
|
2902 | 2902 | end-the-run
|
2903 | 2903 | end-the-run]
|
2904 |
| - :constant-effects [(strength-bonus (req (wonder-sub card 3)) 5)]}) |
| 2904 | + :constant-effects [(ice-strength-bonus (req (wonder-sub card 3)) 5)]}) |
2905 | 2905 |
|
2906 | 2906 | (defcard "Ping"
|
2907 | 2907 | {:on-rez {:req (req (and run this-server))
|
|
2937 | 2937 | :effect (effect (add-counter card :power 1)
|
2938 | 2938 | (update-all-ice))}
|
2939 | 2939 | :subroutines [end-the-run]
|
2940 |
| - :constant-effects [(strength-bonus (req (get-counters card :power)))]}) |
| 2940 | + :constant-effects [(ice-strength-bonus (req (get-counters card :power)))]}) |
2941 | 2941 |
|
2942 | 2942 | (defcard "Rainbow"
|
2943 | 2943 | {:subroutines [end-the-run]})
|
|
2961 | 2961 | (update-all-ice))}]})
|
2962 | 2962 |
|
2963 | 2963 | (defcard "Resistor"
|
2964 |
| - {:constant-effects [(strength-bonus (req (count-tags state)))] |
| 2964 | + {:constant-effects [(ice-strength-bonus (req (count-tags state)))] |
2965 | 2965 | :subroutines [(trace-ability 4 end-the-run)]})
|
2966 | 2966 |
|
2967 | 2967 | (defcard "Rime"
|
|
3080 | 3080 |
|
3081 | 3081 | (defcard "Sandstone"
|
3082 | 3082 | {:subroutines [end-the-run]
|
3083 |
| - :constant-effects [(strength-bonus (req (- (get-counters card :virus))))] |
| 3083 | + :constant-effects [(ice-strength-bonus (req (- (get-counters card :virus))))] |
3084 | 3084 | :on-encounter {:msg "place 1 virus counter on Sandstone"
|
3085 | 3085 | :effect (effect (add-counter card :virus 1)
|
3086 | 3086 | (update-ice-strength (get-card state card)))}})
|
|
3103 | 3103 | sub]}))
|
3104 | 3104 |
|
3105 | 3105 | (defcard "Seidr Adaptive Barrier"
|
3106 |
| - {:constant-effects [(strength-bonus (req (count (:ices (card->server state card)))))] |
| 3106 | + {:constant-effects [(ice-strength-bonus (req (count (:ices (card->server state card)))))] |
3107 | 3107 | :subroutines [end-the-run]})
|
3108 | 3108 |
|
3109 | 3109 | (defcard "Self-Adapting Code Wall"
|
|
3299 | 3299 |
|
3300 | 3300 | (defcard "Surveyor"
|
3301 | 3301 | (let [x (req (* 2 (count (:ices (card->server state card)))))]
|
3302 |
| - {:constant-effects [(strength-bonus x)] |
| 3302 | + {:constant-effects [(ice-strength-bonus x)] |
3303 | 3303 | :subroutines [{:label "Trace X - Give the Runner 2 tags"
|
3304 | 3304 | :trace {:base x
|
3305 | 3305 | :label "Give the Runner 2 tags"
|
|
3553 | 3553 | :req (req (and (same-card? card (:ice context))
|
3554 | 3554 | (has-subtype? (:icebreaker context) "AI")))
|
3555 | 3555 | :value true}
|
3556 |
| - (strength-bonus (req (not (protecting-a-central? card))) 3)] |
| 3556 | + (ice-strength-bonus (req (not (protecting-a-central? card))) 3)] |
3557 | 3557 | :subroutines [(end-the-run-unless-runner
|
3558 | 3558 | "spends [Click][Click][Click]"
|
3559 | 3559 | "spend [Click][Click][Click]"
|
|
3775 | 3775 |
|
3776 | 3776 | (defcard "Wraparound"
|
3777 | 3777 | {:subroutines [end-the-run]
|
3778 |
| - :constant-effects [(strength-bonus |
| 3778 | + :constant-effects [(ice-strength-bonus |
3779 | 3779 | (req (not-any? #(has-subtype? % "Fracter") (all-active-installed state :runner)))
|
3780 | 3780 | 7)]})
|
3781 | 3781 |
|
|
0 commit comments