forked from Upstream/mmocore
fix player stats display issue
This commit is contained in:
parent
e528cc925a
commit
a3a7a05fea
@ -112,8 +112,7 @@ public class PlayerStats extends EditableInventory {
|
||||
Placeholders holders = new Placeholders();
|
||||
|
||||
for (StatType stat : StatType.values()) {
|
||||
double extra = stats.getExtraStat(stat);
|
||||
double base = stats.getBase(stat);
|
||||
double base = stats.getBase(stat), total = stats.getInstance(stat).getTotal(base), extra = total - base;
|
||||
holders.register(stat.name().toLowerCase(), stat.format(extra + base));
|
||||
holders.register(stat.name().toLowerCase() + "_base", stat.format(base));
|
||||
holders.register(stat.name().toLowerCase() + "_extra", stat.format(extra));
|
||||
|
Loading…
Reference in New Issue
Block a user