netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

modifies engine to accept ability-title as an input parameter for events

Open NBKelly opened this issue 1 year ago • 5 comments

This is probably not the best way to do it, but tbh that entire system seems a bit confusing to me.

This should allow multiple events on the same card with the same timing to be named and arbitrarily fired in any order. It also means you can name some of the triggers, though I'm not sure we need it right now.

I'll figure out a cleaner way to write this a bit later, just had to put it up while I remembered.

NBKelly avatar Nov 16 '23 05:11 NBKelly

Hard to review without a demonstration

NoahTheDuke avatar Nov 16 '23 18:11 NoahTheDuke

No worries.

Here's a simple example where the (1996) card 'Butcher Boy' registers a handler against the runner ID (it needs to persist indefinitely, even if the card vanishes). Since it's registered under the ID, it's competing with MaxX to trigger first.

Prior to this change, you wouldn't be able to distinguish the triggers or pick which trigger to resolve first.

demo

demo1

demo2

I probably still need to rewrite this to be a bit less hacky.

NBKelly avatar Nov 16 '23 20:11 NBKelly

This is good but after thinking about it a bit, best to hold off until we have a need in jnet proper.

NoahTheDuke avatar Nov 27 '23 13:11 NoahTheDuke

I think we need this now? Or did you end up adding it in another PR that we've since merged? Either way, status?

NoahTheDuke avatar Jun 28 '24 20:06 NoahTheDuke

Oh, I don't think we need it yet. Sooner or later we might, so it's fine to let this one sit.

NBKelly avatar Jun 28 '24 20:06 NBKelly

This was done on the other pr, right?

NoahTheDuke avatar Aug 31 '24 12:08 NoahTheDuke

Yeah, I'm going to close this one

NBKelly avatar Aug 31 '24 19:08 NBKelly