Updates the stat bar and text display as it pertains to a specific stat.

Parameters

stat_no

The stat number to update.

max_stat

The normal maximum value this stat can have. Note that within game terms, the actual value can go above this via supercharging stats.

current_stat

current value of the stat.

statbar_max

statbar_stat

this is the stat value to use for drawing the statbar. For most stats, this is same as current stat, but for the exp bar, we basically want it to be a graph relative to amount for next level.

can_alert

Whether this stat can go on alert when it gets low. It doesn't make sense for this to happen on exp (not really an alert if you gain a level). Note: This is no longer used with the new style code - if a stat shouldn't ever change color when it is low, the style should dictate that.