Netrunner: Border control chat message shows "[credits]" instead of credit symbol

Created on 4 Feb 2019  路  5Comments  路  Source: mtgred/netrunner

If the first sub on Border Control fires, a message like the following is shown:

PlayerName uses Border Control to gain 2 [credits].

image

The text [credits] is shown rather than the credit symbol like on other cards.

Not 100% sure why and don't have a dev environment stood up right now, but could is be because [credits] in this line should be [Credits] like it is on other cards?

https://github.com/mtgred/netrunner/blob/f7f6d8fb6bd25ce622716c01ddb6d79e2d559a47/src/clj/game/cards/ice.clj#L479

Most helpful comment

Thanks for the pointer, I was looking in completely the wrong place for this. Didn't clock that cardbrowser is the, uh, card browser, not the game board :sweat_smile:

All 5 comments

You're right on the money! In fact, #3996 has a fix for this, we just need to get it into prod.

Seeing as you're now reading the source, can you find where we do the transformation in https://github.com/mtgred/netrunner/blob/master/src/cljs/nr/gameboard.cljs? Sounds like we could do with adding lowercase versions or maybe checking everything against the lowercase version.

can you find where we do the transformation in https://github.com/mtgred/netrunner/blob/master/src/cljs/nr/gameboard.cljs?

Short answer - at a glance, no. 馃槢
I will get a dev environment set up again soon though and can take a proper look then. 馃槃

Thanks for the pointer, I was looking in completely the wrong place for this. Didn't clock that cardbrowser is the, uh, card browser, not the game board :sweat_smile:

haha Yeah, the names aren't great! And nicely done, Ian, that's exactly it.

Was this page helpful?
0 / 5 - 0 ratings