Page 1 of 1

[Twinsen][0.18.15] Bonus screen shows LuaForce.character_health_bonus as massive % number

Posted: Sun Mar 22, 2020 1:33 am
by Muppet9010
The player Bonus GUI shows the forces character health bonus as a massive percentage. i.e. 100 bonus health = +10,000% on Bonus GUI

to reproduce:
- Start new game
- Look at bonus screen - nothing to show
- Set player force character health bonus to 100:

Code: Select all

/c game.player.force.character_health_bonus = 100
- Look at bonus screen and see very high number shown.

Re: [0.18.15] Bonus screen shows LuaForce.character_health_bonus as massive % number

Posted: Sun Mar 22, 2020 2:29 am
by Honktown
The health bonus is in percent (decimal form), not actual health numbers. I see 10,000%, which is 100 * 100%.

Re: [0.18.15] Bonus screen shows LuaForce.character_health_bonus as massive % number

Posted: Sun Mar 22, 2020 9:34 am
by Muppet9010
Ah 250 vanilla health plus 100 bonus health via API = 350 health in-game. So the bonus health value isn't being applied as a percentage.

Re: [Twinsen][0.18.15] Bonus screen shows LuaForce.character_health_bonus as massive % number

Posted: Mon Mar 23, 2020 1:21 pm
by Twinsen
Fixed in Version: 0.18.16, along with other bonuses that were missing a +

Thanks for the report.