Skip to content

Commit

Permalink
Implement all break-sub program abilities
Browse files Browse the repository at this point in the history
  • Loading branch information
NoahTheDuke committed Jul 30, 2019
1 parent 6d57357 commit 30cd438
Show file tree
Hide file tree
Showing 6 changed files with 514 additions and 362 deletions.
9 changes: 0 additions & 9 deletions src/clj/game/cards.clj
Original file line number Diff line number Diff line change
Expand Up @@ -334,12 +334,3 @@
[card]
(or (:current-strength card)
(:strength card)))

(defn count-num-subroutines
"Count the number of subroutines for Hernando Cortez. Note that this only
counts subroutines that exist as part of the card text. It does not count
subroutines that the card will gain once rezzed."
[card]
(->> (-> card :title server-card :text split-lines)
(filter #(starts-with? % "[subroutine]"))
count))
4 changes: 2 additions & 2 deletions src/clj/game/cards/events.clj
Original file line number Diff line number Diff line change
Expand Up @@ -1344,10 +1344,10 @@
(wait-for
(resolve-ability state side (access-revealed revealed) card nil)
(shuffle! state :corp :deck)
(system-msg state :runner " shuffles R&D")
(system-msg state :runner "shuffles R&D")
(effect-completed state side eid)))
(do (shuffle! state :corp :deck)
(system-msg state :runner " shuffles R&D")
(system-msg state :runner "shuffles R&D")
(effect-completed state side eid))))))}}
card))})

Expand Down
Loading

0 comments on commit 30cd438

Please sign in to comment.