schlosrat / token-health

FoundryVTT module
5 stars 10 forks source link

Damage chat message and healing chat messages don't use the same max HP limits (PF2e?) #61

Closed shemetz closed 2 years ago

shemetz commented 2 years ago

Reproduction (in PF2e system, Token Health v0.5.1):

  1. Have a token with e.g. 53/53 hp
  2. Press enter, type "999", press enter to submit
  3. The following is shown in the chat:

image

Notice:

I think we want either both of them to say 999 or both of them to say 53.

schlosrat commented 2 years ago

Thanks, itamarcu. I'm working on the chat features right now. How about in instances like this is where either the damage or healing is greater than the amount the token can take it says something like X points of (wound/stun/etc) damage/healing (Y effective)? That way you'll get to see both how much you did and how much of that they took?

shemetz commented 2 years ago

Sure, it could also be phrased...

999 points of wound damage (capped at 53) Dealt 999 wound damage (overkill after 53!) 53 wound damage (946 more than necessary!)

schlosrat commented 2 years ago

Fixed in 0.5.2. Please give this version a spin and see if it's working correctly for you now.

Note, this fix is folded in with the update to allow token chat codes for $D (total damage/healing applied), $DS (damage subtype), and $NE (net effect - damage or healing after any mitigation and limited by the token's ability to absorb the damage/healing)