Commit graph

318 commits

Author SHA1 Message Date
WBHarry
b64a9002ea
Fixed advantage/disadvantage sources for adversaries and companions (#1659) 2026-02-14 13:07:47 +01:00
WBHarry
472f876ea3 Merge branch 'development' 2026-02-12 22:27:59 +01:00
Carlos Fernandez
7022630316
[PR][Feature] Add support for changing the tier of an adversary (#1503)
* Add support for changing the tier of an adversary

* Move scaling data to actorConfig

* Use a new algorithm using the median average deviation

* Fine tune damage conversion for actions

* Use standard deviation instead and change dialog type

* Use daggerheart style for dialog

* Formatting

* Improve handling of minions and hordes

* Changed to using lookup for Group Attack damage

* Added lookup for Horde feature

* Remove spaces in damage formulas

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2026-02-12 22:27:37 +01:00
WBHarry
e0b3d33f80 Added the ability to exclude world compendiums in the Compendium Browser Settings 2026-02-12 19:27:03 +01:00
WBHarry
95d4003045
Fixed so that messages auto expand the description (#1650) 2026-02-11 23:56:35 +01:00
WBHarry
b23b6c75fb
[Feature] Browser Compendium Handling (#1648)
* Initial version

* .

* Fixed so that CompendiumSetting saving refreshes the CompendiumBrowser for all users

* .

* Improved design

* Fixed max height

* Fixed local reload

* Added GM restriction

* Raised version

* Fixed tooltip

* Raised verison to 1.7.0
2026-02-09 12:42:00 +01:00
WBHarry
f7e4c5346e
[Fix] ActiveEffect Autocomplete (#1641)
* Added rules and bonuses to ActiveEffect-autocomplete

* .
2026-02-08 18:03:35 +01:00
WBHarry
44131d21a6
[Fix] Beastform Effects (#1635)
* Fixed so that beastform items always have a beastformEffect on them that can't be removed

* Fixed so that you can drag an active effect onto a character
2026-02-08 18:01:30 +01:00
WBHarry
5e7201bfe9
[Fix]Environment Attack Error (#1647)
* Fixed so that environment attacks don't error

* Fixed for companion aswell
2026-02-08 17:59:08 +01:00
WBHarry
c1f7866594
[Fix] 1633 - ActiveEffect Autocomplete (#1636)
* Improved the autocomplete typing experience

* Made it work. But I hate it.

* Revert "Made it work. But I hate it."

This reverts commit d2fc9fd648.

* Actually nice solution instead O_O
2026-02-06 11:32:33 +01:00
WBHarry
735ed4c214
[Fix] RollMessage Order (#1626)
* Fixed so that the description message always comes first with the action workflow

* Changed to instead render the description in the roll message

* Made the action config title not get changed in d20rolldialog if it's not a trait roll

* Initial chat message description design change

* Revert "Initial chat message description design change"

This reverts commit f4f5fd6c24.

* .
2026-02-04 07:11:18 +01:00
WBHarry
31c70469ef
[Fix] ActionField UUID for Actor Actions (#1622)
* Fixed so that actionFields correctly grab a uuid for actions that are directly on an actor

* Corrected to logical or

* Update module/data/fields/actionField.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-02-02 00:57:17 +01:00
WBHarry
668dbdf8f4
Fixed character hopeResource to be set as 'isReversed' again, so damage and healing is applied correctly (#1620) 2026-02-01 01:19:31 +01:00
WBHarry
22d446f360
Fixed so that homebrew downtime move actions can have effects (#1615) 2026-01-31 19:34:37 +01:00
Carlos Fernandez
1bc9e07098
[Feature] Show token distance on hover (#1607)
* Show token distance on hover

* Do not show distance hover when ranges variant rule is disabled

* Use range labels function for distance hover

* Fix very far and support feet

* .

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2026-01-30 15:58:21 +01:00
Nikhil Nagarajan
a18393a9d0
[PR] Loadout Max detection when pulled from compendium (#1589)
* Initial test implementation for solution

* Expanded the existing _preCreate logic

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2026-01-28 08:51:00 +01:00
WBHarry
bb43cb57dc
[Fix] 1582 - Automation Additions (#1592)
* Added an automation setting for chat command resources

* Added automation settings for wether to have deathmove automation

* .

* Flattened automation structure
2026-01-28 08:47:02 +01:00
WBHarry
bae9470a4f
[Fix] 1.6.0 Roundup (#1581)
* Fixed sceneEnvironments possibly being undfined

* Fixed companion

* Removed Ferocity trigger
2026-01-25 17:07:25 +01:00
WBHarry
ce96ffa0a3
[Feature] 1383 - Companion Bonus Levelups (#1565)
* Fixed so that companions can get bonus levelupchoices from their partner

* Fixed collection prep order

* Added ActiveEffects to Beastbound features

* Corrected styling

* Added migration for overleveled companions

* Raised version

* Moved migration to 1.6.0. Sillyness
2026-01-25 15:21:06 +01:00
WBHarry
a78ef1f70c
[Feature] RollTable Improvements (#1552)
* Initial - Branch Test

* reorganized path for better usage

* something to mess with

* registration things

* .

* root-template error

* pushing in for the day

* hook?

* help?

* .

* implementation initial

* updated comment

* overcomplicated it

* .

* Added Formula select to view mode

* .

* Prettied up roll-results template

* Removed SRD table descriptions

* Improved draw result description css

* Fallback for default dark dice

* .

---------

Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com>
2026-01-24 20:26:37 +01:00
WBHarry
fdb6412c8c
[Feature] HP DamageMultiplier (#1567)
* Added a hpDamageMultiplier rule active effects can modify to multiply the total damage an actor deals

* Added a hpDamageTkenMultiplier rule active effects can modify to multiply the total damage an actor takes from others

* .
2026-01-24 20:24:26 +01:00
WBHarry
d43a4994ad
I hate companions. Should work now (#1576) 2026-01-24 20:21:45 +01:00
WBHarry
37ae40be8b
[Fix] Enriched Description IsOwner (#1577)
* Fixed so that secrets are properly enriched for items

* .
2026-01-24 20:20:07 +01:00
WBHarry
cb998860d9
Spellcastmodifiers were not being sorted correctly for use (#1578) 2026-01-24 20:19:16 +01:00
WBHarry
bdb8997324
[Feature] 1543 - SceneEnvironment Trigger Registration (#1564)
* Added trigger Registration/Unregistration for scene environments

* Fixed so that saving throw damage mitigation works again (#1555)

* . (#1563)

* Fixed DowntimeMoves and ItemFeatures reset functions (#1568)

* Fixed an error where a player having their token initially selected caused an error in effectsDisplay.mjs (#1569)

* [Fix] Damage Rerolls (#1566)

* Fixed so that damage rerolls work again

* Set default data for a roll instead and fix title (#1570)

* Set default data for a roll instead and fix title

* Ensure same options object is used

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

* Fixed when users drag in compendium environments to the sceneEnvironments (#1573)

* .

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-01-24 11:15:07 +01:00
WBHarry
68b35970f2 Merge branch 'main' into development 2026-01-22 20:59:32 +01:00
WBHarry
6e5d7fb34c
Fixed so that saving throw damage mitigation works again (#1555) 2026-01-21 11:52:42 +10:00
WBHarry
3725fc29ef
[Feature] Seaborne Improvement (#1553)
* Added a max to KnowTheTide. Added a onFear trigger to increase the resource

* .

* Added a notification message when KnowTheTide gains a token
2026-01-21 11:52:07 +10:00
WBHarry
cc998bffa7
[Feature] DeathMove Condition Improvement (#1562)
* Added DeathMove condition and automated changing to the correct condition depending on the result of death moves

* .

* Update module/data/settings/Automation.mjs

Co-authored-by: Chris Ryan <73275196+chrisryan10@users.noreply.github.com>

* Update lang/en.json

Co-authored-by: Chris Ryan <73275196+chrisryan10@users.noreply.github.com>

* Fixed DefeatedCondition localizations

---------

Co-authored-by: Chris Ryan <73275196+chrisryan10@users.noreply.github.com>
2026-01-20 20:03:52 +10:00
Chris Ryan
9d75157e17
[Feature] Death moves and Fate rolls (#1463)
* Update the death move descriptions

* Renamed to DhDeathMove

* Partial Fate Roll creation and Fate Roll Enricher (/fr)

* Hide stuff not required for fate roll

* Hide formula display; code removal; start to add Fear die as a choice for Fate roll

* Fix chat message display; start moving towards supporting Hope and Fear for Fate roll

* /fr now supports type=X, where X is Hope or Fear, if not supplied, defaults to Hope

* Fixed DSN rolling; removed console messages; chat message clean up

* Add localisation entry

* Trying to sort out the button for the fate roll

* Style the fate message based on Hope/Fear colors.

* Partial improvement on the fate template buttons - chat display is correct, but the roll dialog is wrong

* Fixed enricher button; localization fixes; debug cleanup

* Error checking for the fate type parsing in all potential problem locations

* Added localization for the fate type parsing error

* Start on Avoid Death death move

* debug stuff

* More death moves setup/testing

* Avoid fate scars update in place, with scars migrating to an integer value.

* Remove some debug code; add Blaze Of Glory shell

* Start on Guaranteed Critical for Blaze of Glory

* Partial implementation of Blaze of Glory

* Dice/critical checks/tests

* Moved detection of guaranteed critical to before the roll dialog is created, so it can be skipped; removed debug code

* Remove debug

* Update Blaze of Glory effect description

* Risk It All - critical roll - clear all stress and HP

* Auto remove all marked stress and HP for Risk It All, if Hope value rolled covers it.

* Display the Death Move description in chat expanded if the appropriate config setting is on

* Made the Blaze of Glory ActiveEffect image use configured version

* Update the current Hope value if the scar value change affects it

* Scars management in the Character details editor

* Separate less file for the Death Moves instead of reusing Downtime

* Added result messages to the Death Move chat output and removed debug statements

* Some localization, style and smaller changes

* Fixed RiskItAll resource handling method

* Risk It All success chat message start

* [Add] Hope/Scar Interplay (#1531)

* Migrated character.maxHope to homebrew settings

* Added a visual for scars

* .

* .

* Pass the hope value in the button data; skeleton risk it all dialog to fill out.

* Start on risk it dialog

* More dialog stuff

* Remove non-existent field

* Dialog templating and logic

* .

* Ensure effect is Applied to Actor (#1547)

Co-authored-by: Chris Ryan <chrisr@blackhole>

* [Fix] 1548 - Standalone Item Add Actions (#1549)

* Fixed so that items not on an actor don't error out on creating actions

* Fixed deletion of items error

* Raised version

* Fix the sliders to do the correct maximums

* Pass the actor id through the button; fix /dr and /fr flavor text

* Remove debug message

---------

Co-authored-by: Chris Ryan <chrisr@blackhole>
Co-authored-by: WBHarry <williambjrklund@gmail.com>
Co-authored-by: WBHarry <89362246+WBHarry@users.noreply.github.com>
2026-01-17 15:11:50 +01:00
WBHarry
3b27803e24 Merge branch 'main' into development 2026-01-16 21:48:29 +01:00
WBHarry
07bdd48199
[Fix] 1548 - Standalone Item Add Actions (#1549)
* Fixed so that items not on an actor don't error out on creating actions

* Fixed deletion of items error
2026-01-16 21:37:04 +01:00
WBHarry
98cf6fa6de
[Feature] Character Creation Confirmations (#1533)
* Added confirmation on ignoring character setup. Added reset option to character sheet.

* Removed the system setting for playerCanEdit. It's always available now.
2026-01-16 22:13:26 +10:00
WBHarry
325a48532b Nullable fix in baseAction.getEffects 2026-01-16 10:16:01 +01:00
WBHarry
822c522f61
[Fix] 1535 - Toggle Bonuses (#1538)
* Fixed all SRD instances of Powerful and Massive

* Fixed suppressed effects being added to roll formula options

* Fixed weapon effects being presented when it's no the weapon itself

* .

* .

* Fixed secondary weapons effects

* Raised system version

* Update module/data/action/baseAction.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

* Update module/documents/chatMessage.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-01-16 09:35:02 +01:00
WBHarry
fad09a1b3a
[Feature] 1541 - Trigger Improvements (#1542)
* Improved registration and unregistration of triggers

* Added logging

* Fixed Feature level unregistration

* Fixed action deletion unregistration

* SceneEnvironment stub

* Update module/data/registeredTriggers.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-01-16 07:43:25 +01:00
WBHarry
9393bab6cf
Added so that beastforms can set a scale to handle specific images (#1532) 2026-01-15 09:45:10 +01:00
WBHarry
9473250f0c Fixed critical threshold applying to reactions 2026-01-13 20:47:43 +01:00
WBHarry
c958acabe6
[Fix] Release Fixes (#1530)
* Various fixes

* .

* .

* .
2026-01-13 19:12:50 +01:00
WBHarry
3c9ef75645
[Feature] ActiveEffect Default Hope/Fear dice (#1522)
* Added ActiveEffect rules for default hope and fear dice

* .

* Raised system version
2026-01-13 10:58:03 +01:00
WBHarry
d282a81594
[Feature] Summon Action Implementation (#1514)
* Schema definition for DHSummonAction

* Will reimplement

* HBS idea formed. Need to recheck drag drop implementation

* Tried to refine drag drop

* drag drop implemented (css tbd)

* phase 1 complete

* tbd work on summon action type

* Improved Schema and now it works

* .

* Dialog created. Tokens not dragged(tbd).

* Bare minimum implementation

* Finalized functionality

* Cleanup

* .

* Added optional summon render to chat message

* Updated SRD

* bugfix: fix title lines not rendering in chat messages

* Added summon actions to the easily doable environments in the SRD

* Update module/data/fields/action/summonField.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

---------

Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com>
Co-authored-by: Murilo Brito <dev.murilobrito@gmail.com>
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-01-13 10:36:29 +01:00
WBHarry
d823501d91
[Feature] Advanced Effect Settings (#1523)
* Added VaultActive and LoadoutIgnore

* Added DomainTouched support

* Naming change

* .

* Improved labels
2026-01-13 10:32:16 +01:00
WBHarry
27b7758f7d
[Feature] Roll Effect Toggles (#1510)
* Initial

* .

* .

* Update module/dice/dhRoll.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-01-13 01:15:00 +01:00
WBHarry
883aaeec02
[Feature] Armor/Weapon Features In Description (#1521)
* ItemFeatures are now prepended to the description

* .

* Better separation of concerns

* .

* .
2026-01-12 14:16:19 +01:00
WBHarry
8de12551ad
[Feature] Scene Environments (#1499)
* Initial

* Remade to array structure

* Fixed context menu for multiples

* .

* Cleanup

* .

* Fixed so that users can access sceneEnvironments if they have permissions

* Update module/documents/scene.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

* .

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-01-12 00:26:27 +01:00
WBHarry
454507ba7b
[Feature] Trigger System (#1500)
* Initial

* .

* Added StrangePattern trigger

* Set command codeblock to expandable

* Added automation setting

* Added ferocity trigger

* Improved StrangePatterns trigger to handle multiple matches
2026-01-11 11:51:05 +01:00
WBHarry
0b343c9f52
Fixed a lot of cases where we expected a combatant to have an attached actor (#1520) 2026-01-10 00:21:44 +01:00
WBHarry
4e18ed8270
Fixed so that chatMessages always get actor data available (#1519) 2026-01-09 17:35:00 +01:00
WBHarry
c6bdc846ab
[Fix] SRD Effect Priorities (#1505)
* Increased priority on effects in srd domain cards that depend on character data

* Increased priority on effects in srd classes/subclasses that depend on character data

* Increased priority on effects in srd ancestries that depend on character data

* Increased priority on effects in srd beastforms that depend on character data

* Increased priority on effects in remaining SRD items that depend on character data

* Adversaries

* Raised system version
2026-01-09 15:50:56 +01:00
WBHarry
bca7e0d3c9
[Fix] Beastforms Getting Stuck (#1495)
* Fixed beastforms getting stuck

* Raised version
2025-12-31 04:52:19 +01:00