Commit graph

614 commits

Author SHA1 Message Date
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
joaquinpereyra98
b8930b18a4
Bug/103 enrich htmlfield content before its used in applications (#369)
* FIX: Add enritch to HTMLField
FIX: Remove no-HTMLField from Manifest
FIX: Convert Scar's HTMLField to StringField
FIX: Remove unused HTMLField

* REMOVE unused hanldebars helpers

* FEAT: add inventory-fieldset-items-V2 and inventory-item-V2  partials for Actors

* FIX showLabels to hideTags

* FEAT: add template to items sheet

* FEAT: add effects tabs on ItemSheet

* FEAT: add context menus for all inventory-items

* FEAT: add resources to inventory-item template

* FEAT: add enritch on inventory-item description
FEAT: add extensible behavior on inventory-item-content
FEAT: add fade effect on item-img to roll-itmg

* FEAT: add eritch to NPC description
FIX: missing htmlFieldss on manfiest
FIX: add misisng localizations

* FIX_ minor fixes

* Little resource fix. Noone will notice ._.

* FIX: remove default list styles
FIX: .extended css reduce max-height, shorten animation duration to 0.5s, and set overflow to auto.
FIX: set enriched=notes.enriche on notes.hbs
FIX: set experience.value on sidebar.hbs
FIX: move tooltip from item-img to img-portrait on inventory-item-V2.hbs
REMOVE: unused files

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-19 22:21:46 +02:00
George Brocklehurst
615df65415
Fix ctrl+clicking on a downtime action on macOS (#378)
* Refactor: handle button data attrs the same.

A small refactor to handle `button.dataset.move` (which was assigned to a
local const) and `button.dataset.category` (which was accessed directly)
in the same way by assigning them both to local consts.

* Fix right-click on downtime activities on macOS.

On macOS with a single-button mouse (e.g. a laptop trackpad) it's common to
trigger a right-click with ctrl+click.

In Chrome, this triggers both a `contextmenu` event and a regular `click`
event. In the context of downtime actions, this meant that we were
deselecting an action in the `contextmenu` handler but then immediately
re-selecting it again in the `click` handler.

This commit works around the problem by stopping the event from propagating
further. This fixes the bug, but also stops Foundry's default `contextmenu`
handler from firing and preventing the browser context menu from appearing,
so we also have prevent the event's default behaviour from firing.
2025-07-19 19:04:28 +02:00
Dapoulp
fc8eb8cb04
Fix Damage chat message (#377)
* Fix Damage chat message

* Fix damage save

* Fix damage save 2

* Fix damage save 2

* Fix damage save 3
2025-07-19 18:08:32 +02:00
Dapoulp
7cbbb3168e
Feature/336 damage targeted resources (#376)
* Unify healing & damage

* create DHResourceData

* Damages parts roll

* h

* ChatMessage & takeDamage updates

* Adapt healing

* No, there was not a console.log !
2025-07-19 15:48:50 +02:00
George Brocklehurst
26376b49db
Fix link to Developer Setup section in README (#375) 2025-07-19 13:45:51 +02:00
WBHarry
1d75b08087
Fixed so active effects can handle expressions again (#368) 2025-07-17 19:49:44 -03:00
WBHarry
6e87e4dad0
[Fix] Downtime Rework (#367)
* Fixed so that the dropdown for activeEffectAutocomplete never ends up behind dialog

* Downtime can now display both ShortRest and LongRest options depending on character rules

* Initial downtime layout rework

* Fixed styling for downtime tooltip

* Added icon to homebrew menu for DowntimeActions

* Fixed columns if both types of moves are not available

* Changed the lightmode to darkmode

* Added downtime buttons

* .

* Moved extra rest options from rules to bonuses

* Improved dialog width
2025-07-17 19:48:59 -03:00
WBHarry
0cc1597dfe
[Fix] Class Feature Change (#364)
* Changed to just use a features field

* Subclass now uses a simple Features field
2025-07-17 19:43:35 +02:00
WBHarry
1d5e267285
Improved the datastructure some to avoid errors and simplify useage (#361) 2025-07-17 14:07:11 -03:00
WBHarry
f15483c722
Feature/349 items actions macro use (#356)
* Added itemUse macro on drag to hotbar

* Fixed item.type logic

* Added support for actionMacro drag from items

* Added MacroDrag for Attacks

* Fixed so UseItem macros get the img set
2025-07-17 14:03:54 -03:00
WBHarry
d7e024be02
[Feature] Advantage/Disadvantage Tooltips (#362)
* Added advantage/disadvantageSource to Character model. It's shown from a tooltip icon on rolls

* Added support for beastform advantageOn
2025-07-17 14:01:15 -03:00
Dapoulp
ad9e0aa558
Feature/344 bardic rally (#363)
* 2

* Dardic Rally Dice
2025-07-17 00:45:53 +02:00
WBHarry
3176438293
Changed so that players can see each others actionTokens but can't interact with others. (#355) 2025-07-16 15:20:09 -03:00
WBHarry
b40d053201
[Feature/Fixes] Adversary Touchups (#359)
* Added support for automatic horde damage

* Active effects are shown on the token

* Fixed logic

* Fixed d20 dice lightmode color
2025-07-16 15:17:34 -03:00
WBHarry
727cb692b4
[Fix] Compendium Prep (#360)
* Removed all items from compendiums to make sure nothing old sticks around. Fixed up structure

* Added Tier folders for Adversary/Environment
2025-07-16 15:10:37 -03:00