Releases: draconas1/foundry-4e-tools
Dead Status Effect Fix
TAH Fixes
Auto Bloodied Flags
A pair of flags for actors:
dracsTools.autoBloodied.ignore -> auto bloodied/dead ignores this actor completely
dracsTools.autoBloodied.npcDiesLikePC -> NPC will go unconscious like a PC on 0 hits
For use:
let targets = canvas.tokens.controlled;
for(let i = 0; i < targets.length; i++) {
const actor = targets[i].document.actor
const updateData = { "flags.dracsTools.autoBloodied.ignore" : true}
await actor.update(updateData);
}
Full Changelog: 4.1.0...4.2.0
Auto-Prone
When token goes below 0 HP they are also made prone in addition to their dead/unconscious state.
Prone is not removed on gaining hits
V12 Compatibility
Update to V12. New versions are now V12 only.
Updated active effect creation code to set name instead of label.
V12 overlay statuses are now FIOS instead of LIOS, to cope with this have to go around and remove the old blooded/dead state whenever you transition to make the old one go away and the new one overlay nice and big.
TAH V3 Integrations
Significant improvements to the Token Action Hud Integration that rely on changes to D&D 4E system that were introduced in 0.4.52
Under the hood the power groups are now generated by calling methods against the sheet, so should remain active and relevant even if there are sheet changes. Should fix issues with foxlees sheets.
This applies both to the TAH layout, and to the individual character themselves, with TAH making extensive use of api methods to core so that its grouping and sorting logic is the same logic as the sheet is using.
Similarly tooltips have been overhauled. Instead of duplicating the code that generates chat messages, which required the code to be copied and apsted and then hacked about to remove actual roll functionality. TAH now hooks into the same method that generates tooltips for the sheet when you expand an item entry.
Pro: vastly less coding, will continue to be compatible.
Con: has lost styling.
I am prepared to cut my losses here.
Also fixed a bug where creatures without features got no powers generated, that was due to an incorrect async .map operation not blocking, because javascript is a silly language.
TAH tooltips
Experimental Tooltip support for Token Action Hud.
Right now is pretty ugly and relies on accessing the 4e power helper and fakes being a chat message for css purposes.
TAH Bug Fixes
-Recharge powers not recharging
-Weapons being sorted into loot
-Right click not working on powers
Fixed NPE exception on default power grouping
Code copied from Classic that used actor
not this.actor
to check and set the power default sorting was causing a NPE on actors that did not have a power sort set.
Token Action Hud Core Integration
First implementation of Token Action Hud Core for 4e