sdenec / tidy5e-sheet

An alternative Character Sheet for Foundry VTT dnd5e aimed at creating a cleaner UI.
86 stars 98 forks source link

[BUG] Update Sheet Template to support lazy temp HP calculation that was missing. #777

Closed szefo09 closed 1 year ago

szefo09 commented 1 year ago

https://github.com/sdenec/tidy5e-sheet/blob/a4ac1e6a492bb044cb8a2a9b70c27cf993d48320/src/templates/actors/tidy5e-sheet.html#L134-L138

Should be updated to:

<div class="portrait-temp">
    <input name="system.attributes.hp.temp" type="text" class="temphp"
        placeholder="+{{ localize 'DND5E.Temp' }}" value="{{#if (eq hp.temp 0)}}{{else}}{{hp.temp}}{{/if}}"
        title="{{localize 'DND5E.HitPointsTemp'}}" data-dtype="Number" maxlength="5">
    <input name="system.attributes.hp.tempmax" type="text" class="max-temphp"
        placeholder="+{{ localize 'DND5E.Max' }}" value="{{#if (eq hp.tempmax 0)}}{{else}}{{hp.tempmax}}{{/if}}"
        title="{{localize 'DND5E.HitPointsTempMax'}}" data-dtype="Number" maxlength="5">

For temp HP to work with Lazy calculation. Possibly other templates require updating too(?) @p4535992

p4535992 commented 1 year ago

There are definitely other parts of the sheet to be updated . In the meantime, I have updated this