Page 1 of 1

Stats for expansion

Posted: 25 October 2020, 16:30
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.

Re: Stats for expansion

Posted: 25 October 2020, 17:03
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.