Commit graph

679 commits

Author SHA1 Message Date
WBHarry
23b8363dd2
[Fix] Fixed Resources (#485)
* Fixed DiceValues placement in InventoryItemV2. Fixed parsing of ITEM.@ paths

* Restored simple view
2025-07-30 22:24:26 -03:00
WBHarry
7bbbdce739
Fixed so that the rally dice will at least show up in the roll selection (#480) 2025-07-30 10:59:48 -03:00
WBHarry
46baef65a6
[Feature] Active Effects toggle effects based in token distance (#452)
* Added the ability for effects to automatically activate/deactivate depending on range between tokens

* Fixed to use Foundry's measuring instead.

* .
2025-07-30 10:57:06 -03:00
WBHarry
18fac18df3
[BUG] Feature Actions/Effects Lost On Creation (#457)
* Fixed so that features get their actions and effects

* .

* Refactor features creations

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-07-30 10:55:06 -03:00
WBHarry
2c4d3bd4a3
[Feature] Armor/Weapon Compendiums (#459)
* Fixed localization

* .

* Added all Secondary Weapons

* Added all armors

* Added Tier1 weapons

* Tier2 Physical

* Tier 2 magical

* Tier 3 Physical

* Tier 3 Magical

* Tier 4 Physical

* Tier 4 Magical

* Added wheelchairs
2025-07-30 15:33:00 +02:00
Dapoulp
8e516df7cb
Feature/443 adversary action roll type (#456)
* Some tests

* Filter types choices

* Resource/Uses max as FormulaField

* Removed isReversed on item resources

* Stuffs

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-29 22:34:09 +02:00
Cyril ALFARO
2608c4a5ae
Update character.mjs (#455) 2025-07-29 16:52:29 +02:00
Cyril ALFARO
253faabbcf
fix: statuses are Set not Array, change include() to has() in placeables/token.mjs (#451)
It crash if I have a status on a token and I refresh Foundry.
It's because it calls a include() function on a Set.
2025-07-29 13:00:48 +02:00
Cyril ALFARO
4defe69c21
Update dhRoll.mjs (#449) 2025-07-28 23:32:25 +02:00
WBHarry
330e15cc46
Fixed so that extra selected proficiciency is added correctly (#448) 2025-07-28 16:17:34 -03:00
Dapoulp
2be4ee8857
Feature/416 reaction roll query (#445)
* Create files

* before fixing damage roll on main

* g

* Player query for Roll All Save

* Exec Save message as GM for players

* Fix DsN bug
2025-07-28 17:44:11 +02:00
WBHarry
2fbbf98f88
[Feature] ActiveEffect Improvements (#439)
* Fixed so genericStatuses aren't shown in activeEffectConfig if turned off. Fixed localization of genericStatuses in Inventory-ItemV2.

* Effects with statuses on them will now add them as full additional effects so they show up on the token.

* Revert "Effects with statuses on them will now add them as full additional effects so they show up on the token."

This reverts commit 5afd7ae686.

* Redid it a better way

* Fixed so multiple statuses on an effect are still treated as active
2025-07-28 15:32:19 +02:00
Murilo Brito
0a944eb3d4
enhance death roll dialog style (#440) 2025-07-28 14:12:42 +02:00
Cyril ALFARO
6d7401c874
Fix: make drag and drop item works again (#407) (#438) 2025-07-28 00:38:00 +02:00
Dapoulp
fad64c9a35
Feature/allow action healing multiple resources (#437)
* Healing updates

* Remove comments
2025-07-28 00:11:43 +02:00
Psitacus
f55698af02
Fix duality roll (#436)
* allow /dr and [[/dr]] to be rolled without selection

* fix weird ternary

* Fixed so trait modifier comes along correctly

---------

Co-authored-by: psitacus <walther.johnson@ucalgary.ca>
Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-27 15:26:55 -06:00
IrkTheImp
ff7927896a
fix language display and attribute roll bug (#435) 2025-07-27 21:52:29 +02:00
WBHarry
187a0dc090
[Feature] Beastform Compendium (#434)
* Various fixes

* Added fixes to make beastforms work

* .

* Added all SRD beastforms
2025-07-27 21:26:28 +02:00
0fe6c4066a
added loot items (#433) 2025-07-27 21:14:02 +02:00
c81c1941a4
temporarily remove healing actions from items (#430) 2025-07-27 15:58:02 +02:00
5215212e02
some minor consumables fixes, more to come later (#429)
* some minor consumables fixes, more to come later

* another typo T_T

* more loot rename fixes

* more loot fixes

* Changed miscellaneous to loot

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-27 15:50:48 +02:00
Dapoulp
8cb4b7663e
Action Save difficulty (#427)
* Action Save difficulty

* Unequipped item icon opacity

* Fix sheet header
2025-07-27 14:40:25 +02:00
33ac7d5ab7
forgot some misc to loot change stuff :O (#428) 2025-07-27 13:43:39 +02:00
07886282b9
renamed Misc Items to Loot to match SRD and Rulebook name (#425) 2025-07-27 13:30:24 +02:00
WBHarry
5cd9075732
Edit option is now always shown on compendium actions (#423) 2025-07-26 23:30:44 +02:00
WBHarry
e98adc55b7
GetDocFromElement is now async to work with compendiums. Added GetDocFromElementSync for use in contextMenu condition cases (#420) 2025-07-26 22:36:48 +02:00
WBHarry
a54f4e3831
[Bug] Downtime Actions Fixes (#421)
* .

* Added a temp fix for a bug in action healing section

* Corrected rules.attack.roll.trait

* .
2025-07-26 22:34:20 +02:00
Dapoulp
e6bfe08d83
Fix async/await roll postEvaluate (#417)
* Fix async/await roll postEvaluate

* Fixed DualityReroll DiceSoNice

* Add chatDisplay: false to actors base attack

* Add chatDisplay: false to downtime actions

* Add Action Type Select item name in header

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-26 15:49:02 +02:00
01f5173aa4
fixed compendium setup for adversaries and environments (#418) 2025-07-26 14:54:50 +02:00
WBHarry
bf31ced3df
Added remaining options and fixed secure loading of dice models (#413) 2025-07-25 23:12:22 -03:00
Dapoulp
dddee78356
Max Cards loadout switch & Homebrew setting (#412)
* Max Cards loadout switch & Homebrew setting

* Fixes

* Fixes
2025-07-26 00:50:39 +02:00
WBHarry
2a4777f1a0
[Fix] Itemlink Redux Revengeance (#399)
* Small random fixes

* Added use of ItemLinkFields

* Multiclass levelup fixes

* Fixed our onCreate methods unintentionally being run on all clients

* Remade apps handling

* Added for all class items and subclass

* Restored foreignDocumentUuidField

* Improved

* PR fxies

* Fixed tooltip enrichment

* .

* Reverted silly change
2025-07-26 00:37:30 +02:00
Dapoulp
fcba5041e9
Action chat message + formatTarget fix (#410) 2025-07-25 21:34:03 +02:00
WBHarry
62b9a8fbee
[Feature] Downtime Improvements (#411)
* Initial

* Fixed dialog again

* Fix healing targeted resource in setting

* Removed unused templates

---------

Co-authored-by: Dapoolp <elcatnet@gmail.com>
2025-07-25 21:31:05 +02:00
Dapoulp
3f95740b7a
Reduce Action Selection click number & Style Action Type Dialog (#408)
* Reduce Action Selection click number & Style Action Type Dialog

* fixes

* Action Select buttons color
2025-07-25 19:13:21 +02:00
Dapoulp
26e3c38aa9
Fix Healing Action target (#409) 2025-07-25 18:04:56 +02:00
WBHarry
a71848cecb
[Fix] Random Fixes (#405)
* Fixed so minimum damage taken is 1, 0 was in playtest rules. Fixed so useDowntime isn't triggered on clicking enter

* .

* .
2025-07-25 10:56:09 -03:00
Dapoulp
0632a8c6bb
Refactor/actions v2 (#402)
* Action Refactor Part #1

* Fixed Weapon/Armor features. Fixed Feature actions

* f

* Action Refactor Part #2

* Fixes

* Remove ActionsField from Companion

* Fixes

* Localization fix

* BaseDataItem hasActions false

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-25 01:10:49 +02:00
WBHarry
80744381f5
[Fix] 397 - Reroll Improvements (#400)
* Fixed reroll correcting automation hope/fear/stress

* Fixed advantage/disadvantage reroll counting on d20s
2025-07-24 19:06:41 -03:00
Murilo Brito
e8e328039e
[BUGFIX] - Fix scroll problems in char sheet (#404)
* Fix scrollable tab

* fix char sidebard and tabs scroll

* Removed comment

---------

Co-authored-by: Dapoolp <elcatnet@gmail.com>
Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-25 00:03:15 +02:00
Cyril ALFARO
55e003aa3b
[Fix] typo on a translation for ownershipSelection (#403) 2025-07-24 19:01:19 -03:00
WBHarry
cab01bc512
Added DPCGL License under src/packs. Made sure it's packaged along with system releases under packs/ (#401) 2025-07-24 18:59:10 -03:00
WBHarry
6301e575e3
[Feature] Allow Dice Reroll in ChatMessage (#395)
* Troubleshooting

Created test button in 'duality-roll.hbs' and functionality in chatLog.mjs

* Updated functionality

dialog recheck.

* Update duality-roll.hbs

testing toggle on specific areas so only tooltip is triggered.

Rest of CSS functionality not affected.

* Redoing Dice Reroll functionality

Attempting something new

* The rise of NaNs

Resolved Dice Parsing Errors, now dealing with parsing errors from system values.

* Forcing string evaluation for testing

* Fixed rerolling of duality dice

* Fixed message.rolls not being updated

* Added support for d20 rolls

* PR fixes

---------

Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com>
2025-07-23 01:01:21 +02:00
Murilo Brito
2721dfe417
Feature/enhance style applications (#390)
* enhance settings style applications

* enhance beastform application and fix action selection style

* Start-aligned downtime move fieldsets

* requested changes

* fixing continue button style

* fixing double scroll bars in char sheet

* set currency above item list

* fix experience not appearing in sidebar

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-22 03:04:17 +02:00
WBHarry
3d723e7d8c
[Feature] Roll Difficulty Support (#393)
* Added difficulty support in rollDialog/rollMessage and [[/dr]]

* Fixed /dr chat command
2025-07-21 20:51:49 -03:00
WBHarry
42a705a870
[Feature] Beastform Types (#372)
* Temp

* Finished Evolved

* Fixed hybrid

* Changed generalConfig.tiers to be number based

* Weaponhandling while in beastform

* Added unarmed strike in sidebar

* Added DamageEnricher

* Added effect enricher

* Corrected downtime buttons and actions

* Added BeastformTooltip

* Split the BeastformDialog into parts with tabs

* Added temp beastform features

* rollData change

* Improvement

* character.getRollData cleanup
2025-07-20 21:56:22 +02:00
George Brocklehurst
867947c2c5
Move downtime move tooltip. (#385)
This commit moves the downtown dialog's move tooltip to the right of the
move.

Previously it was above the move, which would obscure other items in the
list and the number of already selected moves in the header.
2025-07-20 12:40:33 +02:00
George Brocklehurst
1e828547bb
Apply the first downtime move before picking the second one (#383)
* Downtime: allow moves to be taken individually.

Fixes https://github.com/Foundryborne/daggerheart/issues/374

Some downtime moves require a roll to see how successful they are. In these
cases, the player might want to see how their first move works out before
they select their next one.

This commit updates the downtime dialog to allow for this behaviour:

- The "Take Downtime" button is enabled whenever any moves are selected.
- Clicking the button only closes the dialog when all moves have been made.

To keep track of this, the `nrChoices` object has been expanded to include a
`taken` counter, which is increased whenever a move is taken.

After making one move the selection is reset, but the number of moves
displayed in the dialog header and the number of permitted selections both
take the number of taken moves into account.

* Fix heading in short rest chat message.

Prior to this commit the heading for a short rest chat message was "long
rest".

* Remove unused template context.

* Extract method for repeated calculation.

In the downtime dialog, we need to calculate the number of selected moves in
several places. This commit extracts a method to handle that, which reduces
repetition and hopefully makes the code more readable.
2025-07-20 12:40:11 +02:00
WBHarry
3dd2378ffb
[Fix] Localization Misses (#381)
* Initial localization adds

* Added remaining missing translation use
2025-07-20 04:15:26 +02:00
Dapoulp
50ba7408b9
Fix item desc animation (#382) 2025-07-20 03:58:31 +02:00