Anuken / Mindustry

The automation tower defense RTS
https://mindustrygame.github.io
GNU General Public License v3.0
22.51k stars 2.95k forks source link

Scaled Health not calculating correctly #8304

Closed FredyJabe closed 1 year ago

FredyJabe commented 1 year ago

Platform: Windows, but i'm pretty sure the issue is on every version

Build: 141.3

Issue: While modding, im trying to use the Block scaledHealth parameters, but the engine dont take the values I set. The fix is in this Pull Request.

Steps to reproduce: Simply by modding a block using scaledHealth and healthScaling from items. If using Aeyama mod, build a Wood Wall, should be ((5lumber) + (10stone) health points.

Link(s) to mod(s) used: Aeyama (use the repo code, not the release)

Save file: No savefile needed.

If you remove the line above without reading it properly and understanding what it means, I will reap your soul. Even if you're playing on someone's server, you can still save the game to a slot.

(Crash) logs: No crash, hence no log.


Place an X (no spaces) between the brackets to confirm that you have read the line below.

Anuken commented 1 year ago

Not a bug.