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

This subforum contains all the issues which we already resolved.
Post Reply
User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

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

Post 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.

Honktown
Smart Inserter
Smart Inserter
Posts: 1025
Joined: Thu Oct 03, 2019 7:10 am
Contact:

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

Post by Honktown »

The health bonus is in percent (decimal form), not actual health numbers. I see 10,000%, which is 100 * 100%.
I have mods! I guess!
Link

User avatar
Muppet9010
Filter Inserter
Filter Inserter
Posts: 278
Joined: Sat Dec 09, 2017 6:01 pm
Contact:

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

Post 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.

Twinsen
Factorio Staff
Factorio Staff
Posts: 1330
Joined: Tue Sep 23, 2014 7:10 am
Contact:

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

Post by Twinsen »

Fixed in Version: 0.18.16, along with other bonuses that were missing a +

Thanks for the report.

Post Reply

Return to “Resolved Problems and Bugs”