Genii-Locorum / brp

Foundry VTT implementation for Basic Role Playing
Other
14 stars 2 forks source link

[BUG] Total HP on NPC Sheets with Hit Locations #29

Open Cosmic-Lattee opened 2 hours ago

Cosmic-Lattee commented 2 hours ago

Hello!

One of the recent updates seems to have borked the HP on NPC sheets when hit locations are enabled.

image

Regardless of how much damage is dealt to the locations the total HP isn't reduced.

Genii-Locorum commented 2 hours ago

Thanks. On the case

Cosmic-Lattee commented 2 hours ago

So it looks like it isn't saving damage to the hit locations at all at the moment, which is why it isn't updating the total HP.

Genii-Locorum commented 2 hours ago

I think I've found the issue - but quick fix if you want to test it.

In npc.mjs, line 247 change 'hpCurr' to 'currHP'

Works for my local implementation

Cosmic-Lattee commented 2 hours ago

Yep that looks like it fixed it on my end as well!

Genii-Locorum commented 2 hours ago

Right, will add that to the next release.