Commit graph

182 commits

Author SHA1 Message Date
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
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
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
Murilo Brito
3a6a973ea2
[Feature] New Environment Sheet (#243)
* rework new environment template sheet, add environment-settings sheet, improve adversary-settings sheet and  delete legacy actor sheet templates

* Potential Adversaries can be dragged out of the sheet onto canvas

* Added ToChat and UseItem

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-02 14:30:36 +02:00
Murilo Brito
d58f303907
fix duplicated adversary sheet reference (#239) 2025-07-01 23:21:46 +02:00
Murilo Brito
5ffb22fcc5
[Feature] 155 - New Adversary Sheet (#228)
* rework adversary templates, add setting dialog to adversary and fix erratas

* fix errata in adversary data model

* developing experience setting page

* Experience settings update

* finish actions setting tab

* Fixed Notes enriched path and adversary-settings form id

* Fixed UseItem and ToChat

* Fixed Firefox progress bar (HP/Stress) (#230)

* insert prose-mirror style and inicial implement to damage settings

* fix character import relative paths and remove effects from standard adversary attack

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
Co-authored-by: GyroFalc <43814421+GyroFalc@users.noreply.github.com>
2025-07-01 22:07:12 +02:00
Dapoulp
8b834036fa
Feature/165 action save (#231)
* Roll All Save button + Merge Attack & Roll Chat message

* Fix conflicts again
2025-07-01 19:04:53 +02:00
WBHarry
b7e4169079
159 - Companion (#224)
* Initial datamodel

* Fixed attack

* Temp

* Fixed normal levelup

* Fixed showing summary of new experiences

* Touchups

* level sync fixes

* Reworked Action storage

* Companions now take stress when damaged

* Fixed Feature flow

* Removed retroactive companion levelup

* Restored delevel on partner removal

* PR fixes

* Added a check for card duplicates on character
2025-07-01 17:19:41 +02:00
Dapoulp
19cc10a3c9
Feature/201 new roll type (#218)
* Action Roll DiceSet type

* Fix

* Remove console log

* Tmp fix for non consistent resource

* fix
2025-06-29 23:00:11 +02:00
joaquinpereyra98
7135716da9
Feature/178 searchbar logic to items in character sheet (#209)
* REFACTOR: remove DhpApplicationMixin
REFACTOR: remove getEmbeddedDocument method from Item class
REFACTOR: remove prepareData method from Actor class
REFACTOR: remove _preUpdate method from Actor class

* REFACTOR: rename dhpItem to DHItem
REFACTOR: improvement Item#isInventoryItem getter
REFACTOR: simplify Item's createDialog static method.
REFACTOR: remove documentCreate template

* FEAT: add SearchFilter for character-sheet Inventory and DomainCards
FEAT: simplify the preparetion of inventory context

---------

Co-authored-by: Joaquin Pereyra <joaquinpereyra98@users.noreply.github.com>
2025-06-28 23:44:57 -03:00
IrkTheImp
b25e1cec78
Irk/83 homebrew currency (#193)
* add homebrew options to rename currency names

* add title. remove localization from settings file since it didn't work.

* use enabled toggle to use localized initial label values.

* cleanup
2025-06-28 16:00:42 -03:00
Murilo Brito
778e569037
fix death roll function (#197) 2025-06-28 20:45:59 +02:00
Dapoulp
3593f44612
Feature/112 items use action datamodel (#194)
* Fix action for items

* Cost & Range #1

* remove log

* actions

* Split methods

* Roll classes

* Begin damage

* g

* Actions

* before main merge

* Fix d20RollDialog costs check

* Fix submit on close

* Add uses in action dialog

* Adversary Attack

* 166 - Damage Reduction (#180)

* Temp

* Fixed Stress Reductions

* Changed from index based to object

* Fixed stress resources management for DamageReduction

* Fix Adversary attack multiplier

* Auto add Attack action to newly created weapon

* Few fixes

* 164 - Add Hope/Fear formula

* 163 - Actor Sub Datas (#182)

* Added rules/bonuses for all classes and subclasses

* More

* Add Save

* Fix delete action button

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
Co-authored-by: WBHarry <89362246+WBHarry@users.noreply.github.com>
2025-06-28 19:01:08 +02:00
IrkTheImp
1135669d0b
Add ability to toggle between list and card views (#188)
* Add ability to toggle between list and card views

* set the list display as a user flag

* Fixed domainCard cardlist rendering

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-06-28 12:53:40 -03:00
WBHarry
1f5b5f9915
Bug/fixed character attack (#192)
* Fixed weapon useage in Character

* Added DHContextMenu to pass on the event from clicking a contextmenuitem
2025-06-28 14:00:53 +02:00
Murilo Brito
e3b9dcad2a
add death roll in character sheet (#191) 2025-06-28 10:33:24 +02:00
WBHarry
b4fff7b9e6
174 character context menu (#189)
* Set up the contextMenues properly
* Fixed double item generation on drop
2025-06-28 10:05:53 +02:00
WBHarry
30ab18d683
Fix Class HitPoints and ComainConfig (#190)
* Added HitPoints on class for use on character
* Updated DomainConfig to use the official domain icons
2025-06-28 10:05:29 +02:00
WBHarry
813b73465f Updated weaponsheet to use Options and not Choices for tagifyConfigs 2025-06-26 21:19:36 +02:00
joaquinpereyra98
7d6cb84db5
Merge branch 'main' into 157-feature-simplify-and-refactor-item-sheets 2025-06-25 18:58:15 -03:00
Joaquin Pereyra
c879dbd1d2 FEAT: add description enrichement for items sheet 2025-06-25 18:47:10 -03:00
Joaquin Pereyra
f63e94b4cc FEAT: delete unused item sheet
FEAT: add todo comment on subclass sheet
FIX: add minor comment on feature sheet
FIX: tagify class
FEAT: inprovement throw error on create tagify element
2025-06-25 18:09:30 -03:00
Joaquin Pereyra
1804070764 FEAT: simplify the class sheet 2025-06-25 17:32:48 -03:00
Joaquin Pereyra
678e45840f FEAT: add effects tab on domainCard sheet 2025-06-25 17:31:59 -03:00
Joaquin Pereyra
47097e5251 FIX: tagify bug rootEl not exist 2025-06-25 16:24:42 -03:00
Joaquin Pereyra
5eab093ac4 FIX: class tagify selector
FEAT: add tagifyCOnfig on weapon sheet
FIX: prettier format
2025-06-25 15:20:01 -03:00
Joaquin Pereyra
474177f7d0 FEAT: add tafify config on DHApplicationMixin 2025-06-25 15:10:01 -03:00
WBHarry
edbb32ccc0 Added effects to domainCards 2025-06-25 17:40:33 +02:00
Joaquin Pereyra
61ea8b85fb FEAT: add DHHeritageSheet 2025-06-25 11:57:19 -03:00
WBHarry
d9c003b64b
175 - Character Sheet Levelup Functionality (#181)
* Attached CharacterCreate and Levelup functionality to the sheet

* Changed to a warning icon
2025-06-25 16:33:38 +02:00