netrunner icon indicating copy to clipboard operation
netrunner copied to clipboard

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

Open x3N1GM4x opened this issue 7 years ago • 5 comments

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

x3N1GM4x avatar Feb 04 '19 14:02 x3N1GM4x

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.

NoahTheDuke avatar Feb 04 '19 14:02 NoahTheDuke

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. 😄

x3N1GM4x avatar Feb 04 '19 21:02 x3N1GM4x

Oh, unless it's here?

https://github.com/mtgred/netrunner/blob/e96b2b25a37cd1fba5e7869e70c9c4dcb4bb739d/src/cljs/nr/gameboard.cljs#L101-L119

x3N1GM4x avatar Feb 04 '19 21:02 x3N1GM4x

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:

strongoose avatar Feb 05 '19 19:02 strongoose

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

NoahTheDuke avatar Feb 05 '19 19:02 NoahTheDuke