espositos / fvtt-tokenactionhud

Creating a token action HUD module for Foundry VTT
31 stars 38 forks source link

Update swade-br2sw.js #300

Closed zk-sn closed 3 years ago

zk-sn commented 3 years ago

Improve the functionality of _toggleStatus in br2sw This makes the effect gain the flags.core.statusId = actionId property and also future-proofs in case SWADE system or other functionality has already added the relevant active effect to the token.

zk-sn commented 3 years ago

To add some clarity to this request: I'm writing functionality which I hope will be brought into the SWADE system which will link the status effects on the sheet to status effect icons on the token. This change to BR2SW roll handler future-proofs that so that Token Action HUD BR2SW handler will still work properly if that change gets added to SWADE system.

espositos commented 3 years ago

I'll take your word for it, thank you :)