Bug Closed · Resolved

Stats.Formatting.Rounding not working in Lore

#10159 opened by secretskwerl 1 week ago

secretskwerlreported this bug

Stat details:

Weird formatting, I attached Screenshot

MINING_POWER:   Enabled: true   Type: STATIC   Display: 'Mining Power'   BaseValue: 0.0   FormulaKey: MPWR   Formatting:     Additive: '+<value>'     Multiply: '+<value>%'     Compound: 'x<value>%'     Static: 'Force <value> <display>'     Rounding: 2


CHOPPING_POWER:   Enabled: true   Type: STATIC   Display: 'Chopping Power'   BaseValue: 0.0   FormulaKey: CPWR   Formatting:     Additive: '+<value>'     Multiply: '+<value>%'     Compound: 'x<value>%'     Rounding: 1

Lore line:

- '<gray>⛏ Mining Power: <white><item.stat.MINING_POWER>'

Expected Result:

⛏ Mining Power: 50

Bugged Current Result:

⛏ Mining Power: 50.0

Other Attempts

I tried to also add .round ( <item.stat.MINING_POWER.round> ) but nothing changed.

Sign in to join the discussion.