Skip to content

Commit 295bdbf

Browse files
authored
Merge pull request #6688 from francescopellegrini/fix/self-references
Replace self references
2 parents 119b9b6 + a8bff5f commit 295bdbf

File tree

10 files changed

+179
-179
lines changed

10 files changed

+179
-179
lines changed

src/clj/game/cards/agendas.clj

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -168,13 +168,13 @@
168168
:choices ["Draw 1 card" "Gain 1 [Credits]" "No action"]
169169
:effect (req (case target
170170
"Gain 1 [Credits]"
171-
(do (system-msg state :corp (str "uses Advanced Concept Hopper to gain 1 [Credits]"))
171+
(do (system-msg state :corp (str "uses " (:title card) " to gain 1 [Credits]"))
172172
(gain-credits state :corp eid 1))
173173
"Draw 1 card"
174-
(do (system-msg state :corp (str "uses Advanced Concept Hopper to draw 1 card"))
174+
(do (system-msg state :corp (str "uses " (:title card) " to draw 1 card"))
175175
(draw state :corp eid 1))
176176
"No action"
177-
(do (system-msg state :corp "declines to use Advanced Concept Hopper")
177+
(do (system-msg state :corp (str "declines to use " (:title card)))
178178
(effect-completed state side eid))))}]})
179179

180180
(defcard "Ancestral Imager"
@@ -672,7 +672,7 @@
672672
:waiting-prompt true
673673
:prompt "Choose a card to derez"
674674
:choices {:card #(rezzed? %)}
675-
:cancel-effect (effect (system-msg :runner "declines to use Élivágar Bifurcation to derez a card")
675+
:cancel-effect (effect (system-msg :runner (str "declines to use " (:title card) " to derez a card"))
676676
(effect-completed eid))
677677
:effect (effect (derez target))}})
678678

@@ -975,7 +975,7 @@
975975
:effect (effect (gain-bad-publicity :corp 1))}}}
976976
card nil)
977977
(let [n (* 3 (count-bad-pub state))]
978-
(system-msg state side (str "uses Illicit Sales to gain " n " [Credits]"))
978+
(system-msg state side (str "uses " (:title card) " to gain " n " [Credits]"))
979979
(gain-credits state side eid n))))}})
980980

981981
(defcard "Improved Protein Source"
@@ -1041,7 +1041,7 @@
10411041
(in-hand? %))}
10421042
:msg (msg "trash " (quantify (count targets) "card") " from HQ")
10431043
:async true
1044-
:cancel-effect (req (system-msg state :corp "declines to use Longevity Serum to trash any cards from HQ")
1044+
:cancel-effect (req (system-msg state :corp (str "declines to use " (:title card) " to trash any cards from HQ"))
10451045
(shuffle-into-rd-effect state side eid card 3)
10461046
(effect-completed state side eid))
10471047
:effect (req (wait-for (trash-cards state side targets {:unpreventable true :cause-card card})
@@ -1265,7 +1265,7 @@
12651265

12661266
(defcard "Posted Bounty"
12671267
{:on-score {:optional
1268-
{:prompt "Forfeit Posted Bounty to give the Runner 1 tag and take 1 bad publicity?"
1268+
{:prompt "Forfeit this agenda to give the Runner 1 tag and take 1 bad publicity?"
12691269
:yes-ability
12701270
{:msg "give the Runner 1 tag and take 1 bad publicity"
12711271
:async true
@@ -1332,7 +1332,7 @@
13321332
:req (req (pos? (get-counters card :agenda)))
13331333
:msg (msg "add " (:title target) " to HQ from R&D")
13341334
:choices (req (cancellable (:deck corp) :sorted))
1335-
:cancel-effect (effect (system-msg "cancels the effect of Project Atlas"))
1335+
:cancel-effect (effect (system-msg (str "declines to use " (:title card))))
13361336
:effect (effect (shuffle! :deck)
13371337
(move target :hand))}]})
13381338

@@ -1547,7 +1547,7 @@
15471547
(update-all-advancement-requirements state)
15481548
(update-all-agenda-points state)
15491549
(check-win-by-agenda state side))
1550-
:cancel-effect (effect (system-msg "declines to use Regenesis to reveal an agenda in Archives"))}})
1550+
:cancel-effect (effect (system-msg (str "declines to use " (:title card) " to reveal an agenda in Archives")))}})
15511551

15521552
(defcard "Remastered Edition"
15531553
{:on-score {:effect (effect (add-counter card :agenda 1))
@@ -1597,14 +1597,14 @@
15971597

15981598
(defcard "Research Grant"
15991599
{:on-score {:interactive (req true)
1600-
:silent (req (empty? (filter #(= (:title %) "Research Grant") (all-installed state :corp))))
1600+
:silent (req (empty? (filter #(= (:title %) (:title card)) (all-installed state :corp))))
16011601
:async true
16021602
:effect (effect (continue-ability
1603-
{:prompt "Choose another installed copy of Research Grant to score"
1604-
:choices {:card #(= (:title %) "Research Grant")}
1603+
{:prompt (str "Choose another installed copy of " (:title card) " to score")
1604+
:choices {:card #(= (:title %) (:title card))}
16051605
:interactive (req true)
16061606
:async true
1607-
:req (req (seq (filter #(= (:title %) "Research Grant") (all-installed state :corp))))
1607+
:req (req (seq (filter #(= (:title %) (:title card)) (all-installed state :corp))))
16081608
:effect (effect (score eid (get-card state target) {:no-req true}))
16091609
:msg "score another installed copy of itself"}
16101610
card nil))}})
@@ -1712,19 +1712,19 @@
17121712
:cancel-effect (req (if (= side :runner)
17131713
(wait-for (draw state :corp 1)
17141714
(clear-wait-prompt state :corp)
1715-
(system-msg state :runner "declines to trash a card for Standoff")
1716-
(system-msg state :corp "uses Standoff to draw 1 card and gain 5 [Credits]")
1715+
(system-msg state :runner (str "declines to trash a card for " (:title card)))
1716+
(system-msg state :corp (str "uses " (:title card) " to draw 1 card and gain 5 [Credits]"))
17171717
(gain-credits state :corp eid 5))
1718-
(do (system-msg state :corp "declines to trash a card for Standoff")
1718+
(do (system-msg state :corp (str "declines to trash a card for " (:title card)))
17191719
(clear-wait-prompt state :runner)
17201720
(effect-completed state :corp eid))))
17211721
:effect (req (wait-for (trash state side target
17221722
(if (= side :corp)
17231723
{:unpreventable true :cause-card card}
17241724
{:unpreventable true :cause-card card :cause :forced-to-trash}))
1725-
(system-msg state side (str "trashes " (card-str state target) " for Standoff"))
1725+
(system-msg state side (str "trashes " (card-str state target) " for " (:title card)))
17261726
(clear-wait-prompt state (other-side side))
1727-
(show-wait-prompt state side (str (side-str (other-side side)) " to trash a card for Standoff"))
1727+
(show-wait-prompt state side (str (side-str (other-side side)) " to trash a card for " (:title card)))
17281728
(continue-ability state (other-side side) (stand (other-side side)) card nil)))})]
17291729
{:on-score
17301730
{:interactive (req true)

src/clj/game/cards/assets.clj

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@
455455
(effect
456456
(continue-ability
457457
{:optional
458-
{:prompt (msg "Trash Clearinghouse to do " (get-counters card :advancement) " meat damage?")
458+
{:prompt (msg "Trash this asset to do " (get-counters card :advancement) " meat damage?")
459459
:yes-ability
460460
{:async true
461461
:msg "do 1 meat damage for each hosted advancement counter"
@@ -744,7 +744,7 @@
744744
:effect (effect (add-prop target :advance-counter 1 {:placed true}))}]})
745745

746746
(defcard "Echo Chamber"
747-
{:abilities [{:label "Add Echo Chamber to your score area as an agenda worth 1 agenda point"
747+
{:abilities [{:label "Add this asset to your score area as an agenda worth 1 agenda point"
748748
:cost [:click 3]
749749
:msg "add itself to their score area as an agenda worth 1 agenda point"
750750
:effect (req (as-agenda state :corp card 1))}]})
@@ -876,7 +876,7 @@
876876
:async true
877877
:effect (effect (gain-tags :corp eid (tag-count (get-card state card))))}
878878
:abilities [{:cost [:click 1 :advancement 7]
879-
:label "Add False Flag to your score area as an agenda worth 3 agenda points"
879+
:label "Add this asset to your score area as an agenda worth 3 agenda points"
880880
:msg "add itself to their score area as an agenda worth 3 agenda points"
881881
:effect (req (as-agenda state :corp card 3))}]}))
882882

@@ -890,7 +890,7 @@
890890
{:can-host (req (and (or (asset? target) (agenda? target))
891891
(> 2 (count (:hosted card)))))
892892
:trash-cost-bonus (req (* 3 (count (:hosted card))))
893-
:abilities [{:label "Install an asset or agenda on Full Immersion RecStudio"
893+
:abilities [{:label "Install an asset or agenda on this asset"
894894
:req (req (< (count (:hosted card)) 2))
895895
:cost [:click 1]
896896
:prompt "Choose an asset or agenda to install"
@@ -901,7 +901,7 @@
901901
:msg "install and host an asset or agenda"
902902
:async true
903903
:effect (effect (corp-install eid target card nil))}
904-
{:label "Install a previously-installed asset or agenda on Full Immersion RecStudio (fixes only)"
904+
{:label "Install a previously-installed asset or agenda on this asset (fixes only)"
905905
:req (req (< (count (:hosted card)) 2))
906906
:prompt "Choose an installed asset or agenda to host"
907907
:choices {:card #(and (or (asset? %) (agenda? %))
@@ -927,7 +927,7 @@
927927
:effect (effect (damage eid :net (get-counters (get-card state card) :advancement)
928928
{:card card}))}
929929
:abilities [{:cost [:click 1 :advancement 3]
930-
:label "Add Gene Splicing to your score area as an agenda worth 1 agenda point"
930+
:label "Add this asset to your score area as an agenda worth 1 agenda point"
931931
:msg "add itself to their score area as an agenda worth 1 agenda point"
932932
:effect (req (as-agenda state :corp card 1))}]})
933933

@@ -1126,8 +1126,8 @@
11261126
:effect (req (wait-for (damage state :runner :brain 1 {:card card})
11271127
(trash state side eid card {:cause-card card})))}
11281128
:unsuccessful
1129-
{:effect (effect (add-counter card :power 1)
1130-
(system-msg "adds 1 power counter to Kuwinda K4H1U3"))}}}]})
1129+
{:effect (effect (add-counter card :power 1))
1130+
:msg "add 1 power counter to itself"}}}]})
11311131

11321132
(defcard "Lady Liberty"
11331133
{:abilities [{:cost [:click 3]
@@ -1272,11 +1272,11 @@
12721272
{:derezzed-events [corp-rez-toast]
12731273
:events [(assoc ability :event :corp-turn-begins)]
12741274
:on-rez {:effect (req (add-counter state side card :credit 8))}
1275-
:abilities [(set-autoresolve :auto-reshuffle "Marilyn Campaign's shuffling itself back into R&D")]
1275+
:abilities [(set-autoresolve :auto-reshuffle "Marilyn Campaign shuffling itself back into R&D")]
12761276
:on-trash {:interactive (req true)
12771277
:optional
12781278
{:waiting-prompt true
1279-
:prompt "Shuffle Marilyn Campaign into R&D?"
1279+
:prompt (msg "Shuffle " (:title card) " into R&D?")
12801280
:autoresolve (get-autoresolve :auto-reshuffle)
12811281
:player :corp
12821282
:yes-ability {:msg "shuffle itself back into R&D"
@@ -1358,7 +1358,7 @@
13581358
(moon-pool-place-advancements (dec x))
13591359
card nil)
13601360
(effect-completed state side eid))))
1361-
:cancel-effect (effect (system-msg "declines to use Moon Pool to place advancement counters")
1361+
:cancel-effect (effect (system-msg (str "declines to use " (:title card) " to place advancement counters"))
13621362
(effect-completed eid))})]
13631363
(let [moon-pool-reveal-ability
13641364
{:prompt "Reveal up to 2 facedown cards from Archives and shuffle them into R&D"
@@ -1379,7 +1379,7 @@
13791379
(moon-pool-place-advancements agenda-count)
13801380
card nil)
13811381
(effect-completed state side eid)))))
1382-
:cancel-effect (effect (system-msg "declines to use Moon Pool to reveal any cards in Archives")
1382+
:cancel-effect (effect (system-msg (str "declines to use " (:title card) " to reveal any cards in Archives"))
13831383
(effect-completed eid))}
13841384
moon-pool-discard-ability
13851385
{:prompt "Trash up to 2 cards from HQ"
@@ -1393,7 +1393,7 @@
13931393
state side
13941394
moon-pool-reveal-ability
13951395
card nil)))
1396-
:cancel-effect (effect (system-msg "declines to use Moon Pool to trash any cards from HQ")
1396+
:cancel-effect (effect (system-msg (str "declines to use " (:title card) " to trash any cards from HQ"))
13971397
(continue-ability moon-pool-reveal-ability card nil))}]
13981398
{:abilities [{:label "Trash up to 2 cards from HQ. Shuffle up to 2 cards from Archives into R&D"
13991399
:cost [:remove-from-game]
@@ -1681,7 +1681,7 @@
16811681
(let [cnt (count (get-in @state [:runner :hand]))
16821682
credits (quot cnt 2)]
16831683
(system-msg state :corp
1684-
(str "uses Personalized Portal to force the runner to draw "
1684+
(str "uses " (:title card) " to force the runner to draw "
16851685
"1 card and gain " credits " [Credits]"))
16861686
(gain-credits state :corp eid credits))))}]})
16871687

@@ -1870,7 +1870,7 @@
18701870
(effect
18711871
(continue-ability
18721872
{:optional
1873-
{:prompt "Trash Rashida Jaheem to gain 3 [Credits] and draw 3 cards?"
1873+
{:prompt "Trash this asset to gain 3 [Credits] and draw 3 cards?"
18741874
:msg "gain 3 [Credits] and draw 3 cards"
18751875
:yes-ability
18761876
{:async true
@@ -1917,7 +1917,7 @@
19171917
:prompt "Choose a card that can be advanced"
19181918
:choices {:card can-be-advanced?}
19191919
:effect (effect (add-counter target :advancement num-counters {:placed true})
1920-
(system-msg (str "uses Reconstruction Contract to move " (quantify num-counters "hosted advancement token") " to " (card-str state target)))
1920+
(system-msg (str "uses " (:title card) " to move " (quantify num-counters "hosted advancement token") " to " (card-str state target)))
19211921
(effect-completed eid))}
19221922
card nil)))}]})
19231923

@@ -2131,7 +2131,7 @@
21312131
{:optional
21322132
{:req (req (not (in-deck? card)))
21332133
:waiting-prompt true
2134-
:prompt "Pay credits to use Shi.Kyū ability?"
2134+
:prompt (msg "Pay credits to use " (:title card) " ability?")
21352135
:yes-ability
21362136
{:prompt "How many credits do you want to pay?"
21372137
:choices :credit
@@ -2145,13 +2145,13 @@
21452145
:waiting-prompt true
21462146
:choices [(str "Take " dmg " net damage") "Add Shi.Kyū to score area"]
21472147
:async true
2148-
:effect (req (if (= target "Add Shi.Kyū to score area")
2148+
:effect (req (if (str/starts-with? target "Add")
21492149
(do (system-msg state :runner (str "adds " (:title card)
21502150
" to their score area as an agenda worth "
21512151
(quantify -1 "agenda point")))
21522152
(as-agenda state :runner card -1)
21532153
(effect-completed state side eid))
2154-
(do (system-msg state :runner (str "takes " dmg " net damage from Shi.Kyū"))
2154+
(do (system-msg state :runner (str "takes " dmg " net damage from " (:title card)))
21552155
(damage state :corp eid :net dmg {:card card}))))})
21562156
card targets))}}}})
21572157

@@ -2181,8 +2181,8 @@
21812181
:access {:optional
21822182
{:req (req (not (in-discard? card)))
21832183
:waiting-prompt true
2184-
:prompt "Pay 4 [Credits] to use Snare! ability?"
2185-
:no-ability {:effect (effect (system-msg "declines to use Snare!"))}
2184+
:prompt (msg "Pay 4 [Credits] to use " (:title card) " ability?")
2185+
:no-ability {:effect (effect (system-msg (str "declines to use " (:title card))))}
21862186
:yes-ability {:async true
21872187
:cost [:credit 4]
21882188
:msg "do 3 net damage and give the Runner 1 tag"
@@ -2263,7 +2263,7 @@
22632263
:req (req (and (corp? target)
22642264
(installed? target)))}
22652265
:msg (msg "trash " (card-str state target) " and gain 3 [Credits]")
2266-
:cancel-effect (req (system-msg state :corp "declines to use Svyatogor Excavator")
2266+
:cancel-effect (req (system-msg state :corp (str "declines to use " (:title card)))
22672267
(effect-completed state side eid))
22682268
:effect (req (wait-for (trash state side target {:unpreventable true :cause-card card})
22692269
(gain-credits state side eid 3)))}]
@@ -2605,11 +2605,11 @@
26052605
card nil))}]})
26062606

26072607
(defcard "Worlds Plaza"
2608-
{:abilities [{:label "Install an asset on Worlds Plaza"
2608+
{:abilities [{:label "Install an asset on this asset"
26092609
:req (req (< (count (:hosted card)) 3))
26102610
:cost [:click 1]
26112611
:keep-menu-open :while-clicks-left
2612-
:prompt "Choose an asset to install on Worlds Plaza"
2612+
:prompt "Choose an asset to install"
26132613
:choices {:card #(and (asset? %)
26142614
(in-hand? %)
26152615
(corp? %))}

0 commit comments

Comments
 (0)