Skip to content

Releases: draconas1/foundry-4e-tools

Dead Status Effect Fix

29 Aug 17:33
Compare
Choose a tag to compare

The image property for status effects had been changed.

Override dead status with a big red skull now works again.

TAH Fixes

10 Aug 16:49
Compare
Choose a tag to compare

Stopped error because TAH integration was trying to generate tooltips on effects, that have no tooltip method.

Auto Bloodied Flags

22 Jul 19:28
Compare
Choose a tag to compare

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

21 Jul 13:35
Compare
Choose a tag to compare

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

29 Jun 13:54
dd84f1c
Compare
Choose a tag to compare

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

21 Jun 21:13
58b453a
Compare
Choose a tag to compare

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

12 May 17:07
Compare
Choose a tag to compare

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

10 May 18:11
Compare
Choose a tag to compare

-Recharge powers not recharging
-Weapons being sorted into loot
-Right click not working on powers

Fixed NPE exception on default power grouping

09 May 23:02
Compare
Choose a tag to compare

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

06 May 16:15
Compare
Choose a tag to compare

First implementation of Token Action Hud Core for 4e