netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

Rolling Brownout displays effect in chat log, but doesn't update credit totals

Open carlsondc opened this issue 8 years ago • 3 comments

Visible in this stream about about 1h 40m into the recording

https://www.youtube.com/watch?v=9P9HYDBMmt8

carlsondc avatar Jan 10 '18 03:01 carlsondc

update: "hiddenaway [1:31 PM] I just had a quick peek at the code for Rolling Brownout - it's just missing the :corp identifier in the card..."

apparently it is giving the credit to the runner?

carlsondc avatar Jan 10 '18 18:01 carlsondc

Looking at the code within netrunner/src/clj/game/cards/operations.clj, it just needs the :corp part added to the card for events (but those with better knowledge of the code can double check):

Lines 1092-1097:

"Rolling Brownout" {:msg "increase the play cost of operations and events by 1 [Credits]" :events {:play-event {:once :per-turn :msg "to gain 1 [Credits]" :effect (effect (gain :corp :credit 1))} :pre-play-instant {:effect (effect (play-cost-bonus [:credit 1]))}}}

https://youtu.be/9P9HYDBMmt8?t=1h38m39s

In the stream, you can see that Build Script is played (original cost 0) with Rolling Brownout in play. The event costs 1 credit and the runner should gain a credit from the effect (the effect should cancel out, so the runner should remain at 5 credits). The corp should gain a credit due to the effect.

However, the runner gains the credit instead and after build script, ends on 6 credits, while the corp does not get the effect.

The text in the chat also repeats the word "to" twice. However, I can't locate the file that needs changing

hiddenaway1 avatar Jan 10 '18 19:01 hiddenaway1

:msg "to gain 1 [Credits]"

should be

:msg "gain 1 [Credits]"

Using :msg automatically constructs a string of the form: "PlayerName uses CardName to ", which is what the part in quotes should never have "to" in it.

JoelCFC25 avatar Jan 10 '18 19:01 JoelCFC25