Commit graph

166 commits

Author SHA1 Message Date
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
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
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
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
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
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
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
045754d107
[Feature] 340-341 RollMode & ChatSpeaker (#347)
* Added RollMode to standalone DamageDialog and to RollDialog. ChatMessage now add ChatSpeaker

* Just a little fix for Damage Action

---------

Co-authored-by: Dapoolp <elcatnet@gmail.com>
2025-07-15 17:01:17 +02:00
WBHarry
0dd5b53313
[Feature] ActiveEffect Autocomplete (#338)
* Fixed translation of TrackedAttributeChoices

* Styling improvements

* Added hints

* fix autocomplete style, fix tagify style, fix magical and physical tag style and fix lang in details adversary settings

* Removed commented out code

* Some companion fixes

---------

Co-authored-by: moliloo <dev.murilobrito@gmail.com>
2025-07-15 10:55:45 -03:00
Dapoulp
37c1d7ad88
Feature/163 actor subdatas (#346)
* Actor Roll bonuses

* Removed console log and comment

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-15 15:01:34 +02:00
WBHarry
422f28c93c
Removed all instances of justify-items and replaced with flex solution (#343) 2025-07-15 14:07:07 +02:00
Psitacus
ef45cd71f8
Iss337 - Allow armor slots to be edited from the character sheet (#345)
* add armor slot input

* working progress bar

* fix label styling

* fix more styling

* fix styling issue on firefix

* Restored armorSlots when empty and added localization

---------

Co-authored-by: psitacus <walther.johnson@ucalgary.ca>
Co-authored-by: WBHarry <williambjrklund@gmail.com>
2025-07-15 12:03:12 +02:00
WBHarry
a768b1dfdb
Character Setup Rework (#315)
* Updated to make use of setup tabs. Ancestry now has primary/secondary features

* Changed so ancestry uses a single Features field

* Revert "Changed so ancestry uses a single Features field"

This reverts commit 0bda6b5dbe.

* Reapply "Changed so ancestry uses a single Features field"

This reverts commit 1febafd441.

* Made it work again the bad way \._./

* Changed so that Feature(Item) has a primary field

* Feature(Item) now has subtype instead of primary as a field

* Fixed experience/evasion

* Moved light styling to appTheme mixing

* Added svg and style rules
2025-07-13 20:58:16 -03:00
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
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
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
Murilo Brito
4150de757b
refactor styles folder (#302) 2025-07-09 00:39:00 +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
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
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
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
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
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
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
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
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
Nikhil Nagarajan
6f1529fefe
[Feature] Collapsible Items Description in List View #198 (#225)
* Updated CSS and Description view in inventory

* Inventory items now have descriptions
* CSS resolved to improve visuals (Rich text issue is still unresolved)

* Fixed as per review

* Changed the line to the elements.less file
* inventory-item updated to reflect rich text issue
2025-07-01 16:28:03 +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
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
Murilo Brito
e3b9dcad2a
add death roll in character sheet (#191) 2025-06-28 10:33:24 +02:00
WBHarry
edbb32ccc0 Added effects to domainCards 2025-06-25 17:40:33 +02:00