- Disabled denominations now receive 0 at character creation
- Replace CharacterGoldField subclass with GoldField options callback;
initial value logic now lives in character.mjs
- Use formInput instead of plain text inputs for denomination labels
- Rename "Quantity Name" column header to "Denomination"
- Remove initialCurrency from resourceConfig and currency sync from
refreshConfig (no longer needed)
Added `initialAmount` field to each currency type (coins, handfuls, bags, chests)
in the Homebrew settings schema. Defaults match book values (0, 1, 0, 0).
- Homebrew.mjs: added `initialAmount` NumberField per currency; `_initializeSource`
coerces empty submissions to 0; `refreshConfig()` syncs values to
`CONFIG.DH.RESOURCE.character.initialCurrency`
- resourceConfig.mjs: added mutable `initialCurrency` object on `character` export
- actorField.mjs: added `CharacterGoldField` subclass that reads initial values
from config at actor creation time
- character.mjs: switched from `GoldField` to `CharacterGoldField`
- settings.hbs: restructured currency section to CSS Grid with column headers
("Quantity Name" / "Starting Amount") instead of per-field inline labels
- settings.less: added `.currency-rows` grid styles
- en.json: added `quantityName` and `initialAmount` localisation keys
* Changed so that multiclass features and multiclassSubclass features are displayed in separate fieldsets from the base class features in the character sheet
* Changed to tertiaries for class/multiclass feature divide
* Show notification when invalid item types are added to actors
* Make all item types quantifiable in the party actor
* Remove from comment
* Use isInventoryItem to set quantity
* Fix formatting
* Initial
* progress
* Working armor application
* .
* Added a updateArmorValue function that updates armoreffects according to an auto order
* .
* Added createDialog
* .
* Updated Armor SRD
* .
* Fixed character sheet armor update
* Updated itemconfig
* Actions now use createDialog for effects
* .
* .
* Fixed ArmorEffect max being a string
* Fixed SRD armor effects
* Finally finished the migration ._.
* SRD finalization
* Added ArmoreEffect.armorInteraction option
* Added ArmorManagement menu
* Fixed DamageReductionDialog
* Fixed ArmorManagement pip syle
* feat: add style to armors tooltip, add a style to make armor slot label more clear that was a button and add a tooltip location
* .
* Removed tooltip on manageArmor
* Fixes
* Fixed Downtime armor repair
* Removed ArmorScore from character data model and instead adding it in basePrep
* [Feature] ArmorEffect reworked into ChangeType on BaseEffect (#1739)
* Initial
* .
* Single armor rework start
* More fixes
* Fixed DamageReductionDialog
* Removed last traces of ArmorEffect
* .
* Corrected the SRD to use base effects again
* Removed bare bones armor item
* [V14] Refactor ArmorChange schema and fix some bugs (#1742)
* Refactor ArmorChange schema and fix some bugs
* Add current back to schema
* Fixed so changing armor values and taking damage works again
* Fixed so that scrolltexts for armor changes work again
* Removed old marks on armor.system
* Restored damageReductionDialog armorScore.value
* Use toggle for css class addition/removal
* Fix armor change type choices
* Added ArmorChange DamageThresholds
---------
Co-authored-by: WBHarry <williambjrklund@gmail.com>
* [V14] Armor System ArmorScore (#1744)
* Readded so that armor items have their system defined armor instead of using an ActiveEffect
* Consolidate armor source retrieval
* Fix regression with updating armor when sources are disabled
* Simplify armor pip update
* Use helper in damage reduction dialog
* .
* Corrected SRD Armor Items
---------
Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
* Updated migrations
* Migrations are now not horrible =D
---------
Co-authored-by: Murilo Brito <dev.murilobrito@gmail.com>
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
* Initial
* .
* Fixed positioning
* .
* Only showing the menu if there are extra resources
* Improved resourceManager clickable
* .
* Changed variable name
* Refactor resources selection and data prep (#1721)
* Move resources select to scrolly text and accept actor object
* Convert isReversed to prepared data and add label
* Removed unused imports
---------
Co-authored-by: WBHarry <williambjrklund@gmail.com>
* Naming
* [Feature] Custom Homebrew Resources (#1718)
* Added resources to the Homebrew Menu
* Fixed translations
* .
* Inverted from isImage to isIcon. Should be more logical for users
* Removed testing resources
* Refactor resource settings to not be a method (#1723)
* Fix editing homebrew resources with a custom ResourcesField
* Fix removing homebrew resources
* Remove vestigial code
* Use custom config for module data instead of including in all (#1724)
* Use custom config for module data instead of including in all
* More simple
* base highest priority
---------
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
* Initial
* More
* Fixed current actionConfig damage
* Reworked ActionConfig damage ui
* .
* Updated all Adversary compendium damage entries
* more
* The rest
* Fixed misses
* .
* .
* Also migrate sub fields of MappingField
* Removed MappingField
* Fix regression with re-tiering adversaries when dealing non-hp damage
* Allow iterable object to be detected as an object by foundry
---------
Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
* Improved the autocomplete typing experience
* Made it work. But I hate it.
* Revert "Made it work. But I hate it."
This reverts commit d2fc9fd648.
* Actually nice solution instead O_O
* Fixed so that companions can get bonus levelupchoices from their partner
* Fixed collection prep order
* Added ActiveEffects to Beastbound features
* Corrected styling
* Added migration for overleveled companions
* Raised version
* Moved migration to 1.6.0. Sillyness
* Added a hpDamageMultiplier rule active effects can modify to multiply the total damage an actor deals
* Added a hpDamageTkenMultiplier rule active effects can modify to multiply the total damage an actor takes from others
* .
* Added DeathMove condition and automated changing to the correct condition depending on the result of death moves
* .
* Update module/data/settings/Automation.mjs
Co-authored-by: Chris Ryan <73275196+chrisryan10@users.noreply.github.com>
* Update lang/en.json
Co-authored-by: Chris Ryan <73275196+chrisryan10@users.noreply.github.com>
* Fixed DefeatedCondition localizations
---------
Co-authored-by: Chris Ryan <73275196+chrisryan10@users.noreply.github.com>
* Update the death move descriptions
* Renamed to DhDeathMove
* Partial Fate Roll creation and Fate Roll Enricher (/fr)
* Hide stuff not required for fate roll
* Hide formula display; code removal; start to add Fear die as a choice for Fate roll
* Fix chat message display; start moving towards supporting Hope and Fear for Fate roll
* /fr now supports type=X, where X is Hope or Fear, if not supplied, defaults to Hope
* Fixed DSN rolling; removed console messages; chat message clean up
* Add localisation entry
* Trying to sort out the button for the fate roll
* Style the fate message based on Hope/Fear colors.
* Partial improvement on the fate template buttons - chat display is correct, but the roll dialog is wrong
* Fixed enricher button; localization fixes; debug cleanup
* Error checking for the fate type parsing in all potential problem locations
* Added localization for the fate type parsing error
* Start on Avoid Death death move
* debug stuff
* More death moves setup/testing
* Avoid fate scars update in place, with scars migrating to an integer value.
* Remove some debug code; add Blaze Of Glory shell
* Start on Guaranteed Critical for Blaze of Glory
* Partial implementation of Blaze of Glory
* Dice/critical checks/tests
* Moved detection of guaranteed critical to before the roll dialog is created, so it can be skipped; removed debug code
* Remove debug
* Update Blaze of Glory effect description
* Risk It All - critical roll - clear all stress and HP
* Auto remove all marked stress and HP for Risk It All, if Hope value rolled covers it.
* Display the Death Move description in chat expanded if the appropriate config setting is on
* Made the Blaze of Glory ActiveEffect image use configured version
* Update the current Hope value if the scar value change affects it
* Scars management in the Character details editor
* Separate less file for the Death Moves instead of reusing Downtime
* Added result messages to the Death Move chat output and removed debug statements
* Some localization, style and smaller changes
* Fixed RiskItAll resource handling method
* Risk It All success chat message start
* [Add] Hope/Scar Interplay (#1531)
* Migrated character.maxHope to homebrew settings
* Added a visual for scars
* .
* .
* Pass the hope value in the button data; skeleton risk it all dialog to fill out.
* Start on risk it dialog
* More dialog stuff
* Remove non-existent field
* Dialog templating and logic
* .
* Ensure effect is Applied to Actor (#1547)
Co-authored-by: Chris Ryan <chrisr@blackhole>
* [Fix] 1548 - Standalone Item Add Actions (#1549)
* Fixed so that items not on an actor don't error out on creating actions
* Fixed deletion of items error
* Raised version
* Fix the sliders to do the correct maximums
* Pass the actor id through the button; fix /dr and /fr flavor text
* Remove debug message
---------
Co-authored-by: Chris Ryan <chrisr@blackhole>
Co-authored-by: WBHarry <williambjrklund@gmail.com>
Co-authored-by: WBHarry <89362246+WBHarry@users.noreply.github.com>
* Marking up the places that need changing for bug #1160
* Creating a shared method called isItemAvailable and using it in downtime
* Explicitely adding the false value rather than relying on undefined returns. Oops
* Removing spaces
* Removing a needless return line
* Adding missing semicolon
* Added implementation of unstoppable
* Forgot to add the updated Unstoppable Feature itself
* Added immunity for hidden and SRD additions for immunity
* Fixed deletion of characters in the world locking up the party actor
* .
* Fixed so leader in group roll gains resourcse
* Fixed so party.inventory has the right controls
* Corrected for added character purning
* .
* start development
* finish party members tab
* start resources tab
* finish resources tab
* finish inventory tab and add inital template to projects tab
* add resource buttons actions methods
* add group roll dialog
* Main implementation
* Fixed costs
* Minor fixes and tweaks for the party sheet (#1239)
* Minor fixes and tweaks for the party sheet
* Fix scroll restoration for party sheet tabs
* Finished GroupRoll
* Removed/commented-out not yet implemented things
* Commented out Difficulty since it's not used yet
* Re-render party when members update (#1242)
* Fixed so style applies in preview chat message
* Added the clown car
* Fixed so items can be dropped into the Party sheet
* Added delete icon to inventory
* Fixed TokenHUD token property useage. Fixed skipping roll message
* Added visible modifier to GroupRoll leader result
* Leader roll displays the large result display right away after rolling
* Corrected tokenHUD for non-player-tokens
* Fixed clowncar tokenData
* Fixed TagTeam roll message and sound
* Removed final TagTeamRoll roll sound
* [PR] [Party Sheets] Sidebar character sheet changes (#1249)
* Something experimenting
* I am silly (wearning Dunce hat)
* Stressful task
* Armor functional to be hit
* CSS Changes to accomadate pip boy
* last minute change to resource section for better visual feeling
* restoring old css for toggle
* Added setting to toggle pip/number display
* toggle functionality added
* Fixed light-mode in characterSheet
* Fixed multi-row resource pips display for character
* Fixed separators
* Added pip-display to Adversary and Companion. Some fixing on armor display
---------
Co-authored-by: WBHarry <williambjrklund@gmail.com>
* Fixed party height and resource armor update
* Fixed deletebutton padding
* Only showing expand-me icon on InventoryItem if there is a description to show
* .
* Fixed menu icon to be beige instead of white in dark mode
---------
Co-authored-by: moliloo <dev.murilobrito@gmail.com>
Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
Co-authored-by: Nikhil Nagarajan <potter.nikhil@gmail.com>
* Attempt at making subclass aware of its class
* Update compendium classes/subclasses
* Fixed multiclass
* Update compenidum browser subclass class filter
* Added migration for subclass.linkedClass
* Using foundry's isNewer function rather than custom one
* Added migration for existing actor features
---------
Co-authored-by: Dapoolp <elcatnet@gmail.com>