netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Personal Workshop + Autoscripter

Open KevinElias opened this issue 11 years ago • 5 comments

Autoscripter still gives an extra click when installing programs off of personal workshop.

KevinElias avatar Jul 16 '15 15:07 KevinElias

Hmm, "from the grip"... that's gonna be tricky. Thanks for the report.

nealterrell avatar Jul 16 '15 18:07 nealterrell

I'll take a look if I find the time

queueseven avatar Jul 16 '15 18:07 queueseven

I would solve this as follows:

when a card get's moved, let's keep track where it came from by adding the keys :previous-zone and :previous-hosted, so we can check if :hand in :previous-zone and nil? :previous-hosted in req of Autoscripter.

This works, but I think it would be better to change the :zone of hosted cards. E.g. when you host something on Personal Workshop, the :zone of the card is still (:hand).

Is there are reason for this? I think we could change this to something like :hosted, so it would be enough to add the :previous-zone key to a card that is moved and then let Autoscripter check if :previous-zone contains :hand.

Thoughts?

queueseven avatar Jul 17 '15 13:07 queueseven

It's best to change the :zone when the card is hosted indeed.

However the :runner-install event gets the installed card as a parameter, ie. with the destination :zone so you lose the origin :zone information. This needs to be worked around somehow.

Beside Personal Workshop, it should be tested with cards like Clone Chip, Self-Modiying Code or Scavenge too. You can also implement Exile once the origin mechanism is in place.

mtgred avatar Jul 17 '15 13:07 mtgred

As I said I would simply add a :previous-zone to a card once it gets moved.

This should also make it easy to implement Exils ability.

Let's see if I find some time this weekend.

queueseven avatar Jul 17 '15 13:07 queueseven