netrunner
netrunner copied to clipboard
Card zoom firing for facedown, hosted runner cards
If the Runner has hosted cards (facedown) on a Street Peddler (or other Resource), when the Corp mouses over the facedown card the card zoom feature fires and displays a missing card error (empty card frame and 'unimplemented' tag).
There may also be a bigger, server side issue. It looks like cards hosted facedown on hardware are only identified by a cid in the game-state, while cards hosted facedown on resources contain all the card information. I guess this means someone could look at the game-state in the browser and identify facedown cards.
lein figwheel output from the Corp side:
netrunner.gameboard=> (first (:hosted (first (:resource (:rig runner)))))
{:zone ["onhost"], :cid 63, :side "Runner", :host {:faction "Anarch", :limited 3, :runner-abilities [], :zone ["rig" "resource"], :cid 57, :new true, :type "Resource", :abilities [{:label ""}], :title "Street Peddler", :uniqueness false, :host nil, :packquantity 3, :code "08062", :side "Runner", :cost 0, :subroutines [], :installed true, :implementation "full", :subtype "Connection - Seedy", :previous-zone ["hand"]}, :hosted []}
netrunner.gameboard=> (first (:hosted (first (:hardware (:rig runner)))))
{:faction "Neutral", :limited 3, :zone ["onhost"], :cid 91, :type "Event", :title "Dirty Laundry", :uniqueness false, :host {:faction "Shaper", :limited 3, :runner-abilities [], :zone ["rig" "hardware"], :cid 62, :new true, :type "Hardware", :abilities [{:cost ["click" 1], :label "Host up to 3 cards from your Grip facedown"} {:cost ["click" 1], :label "Add all hosted cards to Grip"} {:label "[Trash]: Add all hosted cards to Grip"}], :title "Bookmark", :uniqueness false, :host nil, :packquantity 3, :code "08106", :side "Runner", :cost 0, :subroutines [], :installed true, :implementation "full", :previous-zone ["hand"]}, :packquantity 3, :code "03052", :side "Runner", :facedown true, :cost 2, :hosted [], :implementation "full", :subtype "Run", :previous-zone ["hand"]}
netrunner.gameboard=> (keys (first (:hosted (first (:resource (:rig runner))))))
(:zone :cid :side :host :hosted)
netrunner.gameboard=> (keys (first (:hosted (first (:hardware (:rig runner))))))
(:faction :limited :zone :cid :type :title :uniqueness :host :packquantity :code :side :facedown :cost :hosted :implementation :subtype :previous-zone)