Stats for expansion

Game development with Board Game Arena Studio
Post Reply
User avatar
Inaofr
Posts: 142
Joined: 26 March 2020, 22:26

Stats for expansion

Post by Inaofr »

Hi,

I have added some stats which are valid only for an expansion. So I call initStat for them only when the expansion is On. The result is when the expansion is Off, these stats are displayed with a NaN value, which looks buggy (many player won't know it means Not a Number and even knowing this most will think it is a bug). Is there a way to have then displayed with -, or some other character that would mean they are not valid?
An alternative way would be to hide them, but that doesn't seem possible.
User avatar
Tisaac
Posts: 2743
Joined: 26 August 2014, 21:28

Re: Stats for expansion

Post by Tisaac »

Inaofr wrote: 25 October 2020, 16:30 Hi,

I have added some stats which are valid only for an expansion. So I call initStat for them only when the expansion is On. The result is when the expansion is Off, these stats are displayed with a NaN value, which looks buggy (many player won't know it means Not a Number and even knowing this most will think it is a bug). Is there a way to have then displayed with -, or some other character that would mean they are not valid?
An alternative way would be to hide them, but that doesn't seem possible.
Nope that's the only way. People get used to that.
Post Reply

Return to “Developers”