Muttley / foundryvtt-ac2d20

Achtung! Cthulhu 2d20 System for Foundry VTT
MIT License
4 stars 3 forks source link

Update flat injuries values for standard character so they can be utilised by macros or modules #57

Closed Muttley closed 6 months ago

Muttley commented 6 months ago

system.injuries.value = number of untreated injuries system.injuries.treated = number of treated injuries

lozanoje commented 6 months ago

Hi,

Does this ever worked as expected? Seems that system.injuries.value and system.injuries.treated are not updated. Checked _calculateCharacterInjuryValues() and everything looks fine, but values are not transfered to the actor

2024-06-02 18_30_44-C__Users_Jose Lozano_Downloads_fvtt-Actor-agente-daphne-rogers-BCXmd8QfWoCTrQz2

Muttley commented 6 months ago

It's dynamically calculated while preparing the character data, and not stored in the actor. Those two keys in the template are also used by NPCs though.

lozanoje commented 6 months ago

Mmm, ok, i think i need to learn a lot more about Foundry development since I get lost easily with those concepts. Anyway, looks like it is working on 11.5.2 - probably a marginal temp error by my side. Thanks!