Improved Mobs (Forge)

Improved Mobs (Forge)

8M Downloads

Health Increase not being calculated properly

PantsWP opened this issue ยท 2 comments

commented

Modloader

Forge

Minecraft version

1.18.2

Modloader version

40.1.54

Mod version

1.10.14

TenshiLib version

1.6.8

Description

The Health Increase Multiplier setting in the common config is not calculating the attribute properly. I currently have the multiplier set to 1.25 so at difficulty 100, it should increase the health of mobs by 2 times {100*0.016*1.25}. However, upon testing this, it is actually increasing it by 3 times. So a zombie or skeleton that should only have 40 health is actually spawning with 60 instead.

The Max Health Increase setting is set to 0.0.

2022-07-06_20 28 34
2022-07-06_20 28 41

Steps to reproduce

  1. Change Health Increase Multiplier setting to 1.25 and Max Health Increase to 0.0 in the common config
  2. Enter world and set difficulty to 100.0
  3. Summon skeleton or zombie
  4. Voila!

Mods that might affect the issue

No response

Logs

https://gist.github.com/PantsWP/9cd9bf2e80a263e094b9863b181dcade

commented

no its correct. the comment might be a bit misleading cause the multiplier is 1+multiplier. else the health would be 0 at 0 difficulty

commented

Ok cool, if it's possible to fix that comment in the next update for other people when they start using the mod, so they don't fall into the same trap I did, that would be great. :)