Conversation
| :waiting-prompt true | ||
| :yes-ability {:prompt "Choose a card" | ||
| :msg (msg "add " (:title target) " to HQ from R&D") ;; TODO - once the illicit->liability change is through, we can adjust this (or just leave it) | ||
| :choices (req (cancellable (filter #(has-any-subtype? % ["Illicit" "Black Ops" "Gray Ops" "Liability"]) (filter (complement agenda?) (:deck corp))) :sorted)) |
There was a problem hiding this comment.
Illicit is here as a placeholder for now. Since every illicit is now a liability, I don't see any harm in leaving it permanently.
| :effect f | ||
| :card card | ||
| :selectable selectable | ||
| :offer-bad-pub? offer-bad-pub? |
There was a problem hiding this comment.
This is the hook for the frontend
|
I also want to add a |
| (pay state side eid card (->c :credit (min choice (get-in @state [side :credit])))) | ||
| (effect-completed state side eid))) | ||
|
|
||
| (defn resolve-bad-pub-choice |
There was a problem hiding this comment.
I'm not smart enough to know how to make this bypass all the stuff in prompts.clj, that's a job for somebody else.
There was a problem hiding this comment.
yeah the prompt stuff is a real pain in the ass, idk how to deal with it tbh
| (take-credits state :runner) | ||
| (is (= (+ 3 total-corp-credits) (:credit (get-corp))) "Corp does not gain any extra c with agenda"))))) | ||
|
|
||
| (letfn [(setup-state [] |
There was a problem hiding this comment.
instead of this, you could use before-each.
…ed unique over-write, test for cost bonus computation
This should cover all the rest of the VP cards and mechanics in order as they become public.
I'm going to add notes for mechanics and stuff here as they come.
Also unless I specify at the bottom of the post, I've added unit tests for every card.
access.cljto track the both the random-access-limit being throttled to zero, and installed cards being removed from candidacy for access (at least, on centrals).:card-scored.:show-opponent-discard, which shows the opponents discard (like:show-discarddoes for us). Ansel 2.0 uses this, and a few other cards can be updated for it.TODO:
show-opponent-discard. Hailstorm, ark lockdown, etc.See Also: NoahTheDuke/netrunner-data#81