...because it was really too messy and used isalpha() which was
inaccurate to check special format characters
and I am not sure if it was safe with exotic locale.
when calculating if ellipsis are needed, we don't need to count
special format characters.
However since we release tomorow, i play it safe and activate this
perfectly valid operation only for buttons (maybe some strings
somewhere use badly these special characters, with this i must just
check buttons)
...was buggy when starting with numbers.
This fix a tiny bug : player name starting with a digit, had this
digit repeated twice in the satus table
But i will use more this function in my next commit, so it must be
cleaner. The function itself is very ugly and has a clone in
utils.cpp. I will clean this mess after the release.
There is also a better formating of the resistance column.
I am still not sure about some color choices, but it's already better
than the colorless old system
and commit it is probably the best method to have other opinions.
- reverted my previous *_per_level implementation
- implement the new times= [effect] key to apply an effect more than once.
The default is to apply the effect once
The other possible value is "per level" wich mean the effect will be
applied level time, where "level" is the level of the unit.
* changed the 'resilient' trait from +3HP +10% to +4HP + 1HP * unit level
* decreased the HP reduction of the 'quick' trait from 10% to 5%
* decreased the HP addition of the 'healthy' trait from +3HP to +2HP
* decreased the blade and impact resistance of saurians from 0% to -10%
* decreased the fire resistance of saurians from -10% to -20%
* increased the pierce resistance of saurians from 10% to 20%
* increased the HP of saurians by 4HP
* increased the XP requirement of the Saurian Skirmisher and Augur by 2
* increased the melee attack of the Ruffian from 4-2 to 5-2