Commit graph

651 commits

Author SHA1 Message Date
WBHarry
4be3e6179c
[Feature] Item Resource Support (#328)
* Initial

* Resource setup finished

* Fixed so that costs can be used

* Corrected standard resources

* Actions can only use item resources from their parent item

* Fixed up dice

* Fixed resource dice positioning

* Fixed parsing of resource.max

* Fixed styling on settings tab

* Added manual input for Dice Resources

* Lightmode fixes

* Fixed Feature spellcasting modifier

* Bugfix for item input to resourceDiceDialog

* Item fix for TokenInput

* PR Fixes
2025-07-13 20:12:32 -03:00
WBHarry
eefa116d9a
321 - ChatLog Popout (#331)
* Fixed chatlog popout

* PR Fix
2025-07-13 19:48:59 -03:00
Dapoulp
0fd62c610d
actors datas max/total rework (#332)
* actors datas max/total rework

* Removed unused translation

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-13 18:39:23 +02:00
Psitacus
687500f191
Iss4 - create a way to attach attach items to armor and weapons (#310)
* add basic drag drop window

* add better field

* make effects copy onto actor on attachment

* make items from inventory draggable

* working drop from inventory

* remove duplication issue

* add attachment only flag and logic

* add weapons to attachables

* remove debug logs

* try to make it drier

* remove unecessary try catch

* remove extra configs

* remove superfluous comments

* remove spurious defenses

* make drier

* remove unecessary code

* deduplicate and simplify

* its a desert

* standardize to be more similar to class item code

* fix bug of duplicate effects being created

* fix localization string

* fix bug of item equiping and un equiping

* remove this since were not going to be using attachmentonly

* update attachment tab with comments

* remove attachment only logic in favor of just transfer

* change flags

* change armor and weapon to be attachableItem

* change armor and weapon to be attachableItem

* change weapon to use mixin

* add mixin to armor

* move everything to mixin sheet

* refactor code for review comments

* cleanup and somehow git is ignoring some changes

* see if this picks up the changes now

* Import/Export updates

---------

Co-authored-by: psitacus <walther.johnson@ucalgary.ca>
Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-13 03:07:22 +02:00
Dapoulp
812a5e8dd7
Feature/167 damage types and resistances (#330)
* Add Resistances

* Relocate Damage Reduction

* Damage Types

* dmg type fallback

* Actor getRollData

* Remove comments
2025-07-12 20:13:09 +02:00
Murilo Brito
3f4c884974
fix firefox problems (#329) 2025-07-12 14:14:44 -03:00
Murilo Brito
dee398347f
fix style problems in bottom sheets and enhance damage and action dialogs (#325) 2025-07-12 14:44:14 +02:00
WBHarry
b6195127fe
199 - Tooltips (#311)
* Set up templates for all 'advanced' tooltips

* Fixed ItemFeature Header label

* Fixed less import
2025-07-11 17:26:56 -03:00
WBHarry
72436478c1
Added buttons to features on characters, and actions on adversary/environment (#316) 2025-07-11 16:54:18 -03:00
WBHarry
5b9db88d50
Added a separation of system effects and generic effects on token status effects. Can be turned off in settings. (#317) 2025-07-11 16:53:22 -03:00
IrkTheImp
d4cc8e5a49
set to use dh ranges by default and made setting world, not client. (#323) 2025-07-11 21:50:08 +02:00
WBHarry
85ca0e6b60
Fixed so companion damage uses partner proficiency for scaling (#319) 2025-07-11 18:09:06 +02:00
Dapoulp
e6126d8104
Fix to make Cosmo happy (#318) 2025-07-11 17:36:51 +02:00
WBHarry
70239ec06a
[BUG] DiceSoNice fix (#312)
* Fixed DiceSoNice integration again

* PR fixes

* Improved with tertiary
2025-07-10 13:28:51 +02:00
WBHarry
b3e7c6b9b2
284 - Armor/Weapon Feature Improvements (#292)
* Added parsing of effect values from Item data model. Almost finished with itemConfig.

* Added the last to itemConfig

* Fixed armor

* ContextMenu localization fixes

* Better tooltips for tagify

* Corrected resource logic
2025-07-09 13:06:49 +02:00
Dapoulp
eae4f12910
Fix Roll Dialog Button check (#309) 2025-07-09 13:02:05 +02:00
WBHarry
e6ec486072
In Front Template (#299)
* Added confirm dialogs to delete

* Localization fix

* Changed Cone template to be 'In Front', acting as a 180 degree cone

* Changed to keep the original Cone function
2025-07-08 21:40:24 -03:00
WBHarry
9189a95ea3
Bugfix - Companion Levelup Features (#303)
* Fixed so that features gained from companion levleup are granted properly to its partner

* Fixed localization error I noticed
2025-07-08 21:18:26 -03:00
WBHarry
99e41ec6f7
Removed git index for daggerheart.css (#306) 2025-07-08 21:14:43 -03:00
Murilo Brito
4150de757b
refactor styles folder (#302) 2025-07-09 00:39:00 +02:00
Dapoulp
059b814fdf
Feature/armor stack uses on damage (#300)
* ArmorStack use as User query

* Remove unnecessart args

* Fixes
2025-07-08 21:06:46 +02:00
WBHarry
861dfd977d
Beastform Improvements (#294)
* BeastformEffect is editable. Added SubjectTexture field.

* Using handlebars disabled helper
2025-07-08 21:01:28 +02:00
WBHarry
61f04df765
289 - Confirm Delete Dialogs (#298)
* Added confirm dialogs to delete

* Localization fix
2025-07-08 20:04:54 +02:00
WBHarry
5aa9ba661a
286 - Adversary Experience Value Bug (#293)
* Changed experience schema field name from 'modifier' to 'total' to match useage in Character and Companion

* Using 'signedString()'
2025-07-08 12:10:38 +02:00
joaquinpereyra98
87b3677956
Refactor/275 actor sheets simplification (#291)
* FEAT: create isNPC geeter and add the prop on metada on actors
FEAT: create common method for documents sheets
FEAT: create BaseActorSheet and implementation

* FIX: tabs label

* REFACTOR: remove unused methods
REFACTOR: simplify CharacterSheet's click actions methods
REFACTOR: minor fix on DHActor class

* REFACTOR: remove unused methods
REFACTOR: create method on BaseActorSheet
REFACTOR: make Datamodel metadata getter

* REFACTOR: remove unused method on setting sheet
FEAT: create BaseActorSetting
FIX: add type="button" to button on actor's sheet

* FIX jsdoc

* PRETTIER

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-07-08 01:27:21 +02:00
Dapoulp
7d7fb88035
Feature/253 weapon attack action (#290)
* Step #1

* Add Attack to Weapon & Override settings to Roll
2025-07-07 20:50:48 +02:00
Dapoulp
52be430eff
Feature/247 auto add yope fear clear stress (#285)
* cleanup

* test

* Step 1

* #2

* Fix Effect Action & Add Hope tumation settings to hook

* remove circular dependency

* Snuck in some localization fixes I noticed

* Remove success condition for duality roll gain

* Changed config.roll.type logic

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-07 01:38:39 +02:00
David limkys
ee4a5d17a6
fix: make adversary and character page both resizeable and scroll able; fix overflow issue in adversary page. (#283)
Co-authored-by: David.L <DavidLimk@pm.me>
2025-07-06 20:39:14 +02:00
WBHarry
488844603a
Language Organization (#281)
* Organized language

* Organized high level folders

* Some deeper organization

* More org. That's enough ._.

* Capitalized initial system localization categories
2025-07-06 17:43:12 +02:00
Dapoulp
8a7ff2306a
Fix D20 roll adv/disadv removing (#280) 2025-07-06 13:38:10 +02:00
Dapoulp
51b7cdeefb
Fix some css & resources select (#277) 2025-07-06 02:24:33 +02:00
Dapoulp
608920c193
Design/action settings dialog style (#274)
* Action Setting Dialog style

* fix small style details in action config application

* requested changes

---------

Co-authored-by: moliloo <dev.murilobrito@gmail.com>
2025-07-05 17:45:08 -03:00
WBHarry
e9ad9c539a
264 - Action Feature Swap (#265)
* Removed action fields on Adversary/Environment in favor of using Feature Items

* Added drag/drop for features onto adversary/environment settings

* Added Drag of features from Adversary/Environment settings to anywhere in Foundry

* Updated all item types except Class/Subclass

* Added for Class/Subclass

* Items now copy over their features to Character

* Corrected back to actions for right items

* Fixed adversary/environment features display

* PR Fixes
2025-07-05 22:35:05 +02:00
joaquinpereyra98
eac58c1386
Bug/153 undeploy jquery (#270)
* REFACTOR: remove unnecessary handlebars

* REFACTOR: add jsdoc to DHContextMenu class

* remove jquery cont ChatLog class

* FIX error on create weapons

* REFACTOR:make more legible  _preCreate

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-07-05 15:10:49 -03:00
Murilo Brito
41181f19f1
new style for dialog roll and remove console.log debuggers (#272)
* new style for dialog roll and remove console.log debuggers

* enhance advantage logic
2025-07-05 14:34:42 -03:00
joaquinpereyra98
0add5f369e
REFACTOR: move _createSearchFilter from CharacterSheet#_onFirstRender to CharacterSheet#_onRender (#267)
Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-07-05 10:26:35 +02:00
WBHarry
9d76405221
File Structure Rework (#262)
* Restructured all the files

* Moved build/daggerheart.js to ./daggerheart.js. Changed rollup to use the css file instead of the less

* Restored build/ folder

* Mvoed config out form under application

* Moved roll.mjs to module/dice and renamed to dhRolls.mjs

* Update module/canvas/placeables/_module.mjs

Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com>

* Le massive export update

* Removed unncessary import

---------

Co-authored-by: joaquinpereyra98 <24190917+joaquinpereyra98@users.noreply.github.com>
2025-07-05 00:26:33 +02:00
Dapoulp
099a4576da
Critical Damage formula (#258) 2025-07-04 13:18:48 +02:00
joaquinpereyra98
064011fffa
Bug/251-light-theme-character-sheet (#257)
* FEAT: add appTheme mixin on less files

* FIX: bug, themed class only is added to sheet when have a theme what ovveride the world theme

* new css

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-07-04 13:17:56 +02:00
WBHarry
d071fadf7d
Feature/200 beastform (#255)
* Temp

* Dialog setup

* Fixed basic beastform

* Reworked beastform to hold it's data entirely in the beastformEffect

* UpdateActorTokens fix

* Removed hardcoded tierlimit on beastform

* PR fixes
2025-07-04 02:02:14 +02:00
IrkTheImp
c4448226e0
219-fix weapon action damage and display of calculation. (#250)
* fix weapon action damage and display of calculation.

* modify weapon data to split formula.

* remove unused field
2025-07-03 18:02:44 -05:00
joaquinpereyra98
122621a57a
FEAT: add appTheme mixin on less files (#256)
Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-07-03 23:26:03 +02:00
Murilo Brito
cae659b9a5
Feature/238 companion sheet template (#252)
* new companion sheet templates

* Data fixes

* Changed from evasion.value to evasion.total in display

* add attack config and disable experience value input

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-03 15:44:20 +02:00
joaquinpereyra98
1b9bd45e9c
Feature/ 179 apply items filter in actors sheet (#249)
* FEAT: create FilterMenu class
FEAT: add FilterMenu to CharacterSheet

* FEAT: filter menu style

* FIX: file's names and import

* FEAT: add filters getters on FilterMenu class

* REFACTOR: prettier

* FIX: add again the Filter Menu implementation

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-07-03 01:30:23 -03:00
IrkTheImp
9fb9a4af55
fix dr command roll bug (#241)
* swap to use the DualityRoll not base roll

* update command to use new dice roll.

* reinstate DhpActor in action (which causes circular reference)

* fix additional dr options
2025-07-03 00:02:20 +02:00
WBHarry
a79b7189b6
229 - Narrative Countdown Window Update (#237)
* Improved

* Fixed the mode not sticking

* Removed console log
2025-07-02 18:37:23 -03:00
WBHarry
ac7fb93635
[Bug] Potential Adversary When Removed (#248)
* Fixed so edit/view/delete of potential adversary is handled if the adversary Actor has been removed from the world

* Improved lang
2025-07-02 18:36:27 -03:00
WBHarry
ee8a48f73d
Added DhTooltipManager aswell as placeholder rendering for Armor/Weapon/DomainCard (#245) 2025-07-02 18:21:02 -03:00
Dapoulp
750282aeec
Feature/233 234 235 (#246)
* #233 #234 #235 + Fixes

* Fix reaction roll
2025-07-02 21:13:06 +02:00
WBHarry
eb647f1e31
Removed non-existing template preload (#244) 2025-07-02 09:42:35 -04:00