Closed lartkma closed 11 years ago
Let me think about this one. It might require some more data stored per item in the card chooser...
Commit dbeb994 tracks the handpanel player's cards by type and status (new/old). clickPlayCardButton() no longer checks the text of the selected card.
Thanks again! -Jeremy
In SOCHandPanel, it seems that the possibility of playing a development card in a turn is determined by the contents of the card text (the
clickPlayCardButton()
function makes a decision on whether the element of the List contains the text "VP)" or "NEW", the latter being renewed each turn by theupdateDevCards()
function).Although it doesn't make localization impossible, it makes the process and the string resources use more annoying, as the localizated card name strings must follow specific rules that restricts the possible translations, and the necessity of having separate resources for the "NEW" and "VP)" parts, which in the case of "VP)" it must coincide with the card names.