Commit graph

425 commits

Author SHA1 Message Date
Iohan Trézze
d549a609e3 [Feature] Configurable starting gold amounts in Homebrew settings
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
2026-06-05 23:29:50 -03:00
Carlos Fernandez
a4428fd5be
Replace prettier with stylistic, improve types, and add no-undef rule (#1975)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-06-05 15:53:15 -04:00
Carlos Fernandez
5be79f4ab8
Fix several issues with inline damage (#1973)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-06-05 11:33:20 +02:00
Carlos Fernandez
c0c9095847
[Fix] Preload ancestry and community features in description (#1967)
* Preload ancestry and community features in description

* Corrected comments

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2026-06-04 20:08:40 +02:00
WBHarry
3c36c5747d
[Fix] Base Attack Context Menu (#1961)
* Fixed Adversary standard attack context menu

* Fixed Character base attack context menu

* Fixed Companion base attack context menu
2026-06-01 22:02:42 +02:00
WBHarry
df4a2c5d57
Fixed Countdown.migrationData assuming an array when it's actually an object (#1962) 2026-06-01 15:53:28 -04:00
WBHarry
983f48b415
Fixed ActiveEffectConfig not opening because NPC was not excluded. Fixed active effects not being appliable to NPCs because they lack system.rules (#1956) 2026-06-01 00:03:37 +02:00
WBHarry
bfd483698b
Changed so that EffectField applyEffect doesn't run EmitAsGM (#1953) 2026-05-31 22:58:08 +02:00
WBHarry
53f15a7fde
[Feature] NPC Actors (#1949)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-05-30 21:11:43 -04:00
Carlos Fernandez
493998cc95
Preload class and subclass features for description (#1940)
Co-authored-by: WBHarry <williambjrklund@gmail.com>
2026-05-30 12:51:39 +02:00
Carlos Fernandez
9487b07e43
Fix tier adjustment on actions that use standard attack damage (#1942) 2026-05-30 12:47:06 +02:00
WBHarry
f1a530f57f
[Feature] Full Rerolls (#1928)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
* Initial

* Removed damage dialogs

* Fixed DamageReroll

* Fixed d20 modifiers

* Fixed

* Fixed DiceSoNice multiple damageType reroll

* Added triggerChatRollFx

* Fixed dice.denomination being lost on damage reroll
2026-05-29 12:19:08 +02:00
Carlos Fernandez
b9416ead5a
Fix usable checks on adversary features and locked compendium actors (#1934) 2026-05-26 15:41:26 +02:00
WBHarry
f7f1bdce2b
Fixed so that we are not looking at the now non-existing metadata.isQuantifiable anymore (#1922) 2026-05-24 17:15:17 +02:00
WBHarry
e4a3f105dc
[Feature] V14 Cleanup (#1918)
Some checks failed
Project CI / build (24.x) (push) Has been cancelled
* Fixedin PrototypeToken preview

* Fixed translations

* Fixed tokenSize linking to token.depth

* Fixed beastform depth

* Raised foundry version
2026-05-23 12:16:25 +02:00
WBHarry
d782b25254
[Feature] Class/Multiclass Feature Split (#1911)
* 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
2026-05-21 01:38:31 +02:00
WBHarry
f4c21a6a1b
[Fix] CompendiumBrowser Pack Toggling (#1909)
* Fixed so that CompendiumBrowserSettings saves source/pack names as slugified version to avoid foundrdy not saving names with dots in the middle

* Updated excludedPacks with another layer of TypedObjectField

* Renmamed variable

* Update module/applications/dialogs/CompendiumBrowserSettings.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-05-21 01:33:07 +02:00
Carlos Fernandez
b23095cb2f
[Fix] finishing levelup with a multiclass (#1906)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
* Fix finishing levelup with a multiclass

* Fix removal when de-leveling

* Also delete multiclass related stuff if reducing below the minimum multiclass level
2026-05-20 18:45:42 +02:00
Carlos Fernandez
4504379fcf
Fix journey end calculation and hope reduction when gaining scars (#1900)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-05-19 11:13:59 +02:00
Carlos Fernandez
d152bfc906
Fix party rerenders from shields and weapons (#1899) 2026-05-19 11:11:38 +02:00
WBHarry
b7bc452bf5
[Fix] Improve Class-Subclass Linkage (#1846)
Some checks failed
Project CI / build (24.x) (push) Has been cancelled
* Initial thoughts

* .

* Fixed linting

* Continue work on updating identifier

* Change to uuid approach

* Localization and minor fix

* Fixed CompendiumBrowser Class filter for Subclass view

* Fixed the class name display in the subclass view

* Improved missing class visual for subclass

* Fixed character creation

* Rerender class sheets when subclass link is changed

* Use compendium source over actual uuid in search

---------

Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
2026-05-05 22:15:21 +02:00
Carlos Fernandez
2ffe678503
Add setting to hide party stats (#1861) 2026-05-04 12:39:20 +02:00
WBHarry
edbf5aa55f
[Fix] Player Created Regions (#1855)
* Fixed so that creating regions without behaviors work for players. Fixed so that creating regions with behaviors works via GmEmit for players

* Updated previous uses of emitAsGM to emitGMUpdate

* Fixed linting

* Update module/documents/chatMessage.mjs

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
2026-05-02 22:34:53 +02:00
WBHarry
516928f92b
Fixed a data path error in character._preUpdate when scars are changed by an update (#1856) 2026-05-02 16:02:57 -04:00
Carlos Fernandez
047e77154a
[Fix] companion hope levelup feature and default stress (#1839)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
* Fix issues with companions

* Remove unused companion hope resource
2026-04-26 11:20:06 +02:00
Carlos Fernandez
cc822856e5
[Feature] Redesign group roll dialog (#1824)
* Redesign group roll dialog

* Style and restore aid modifiers

* Move successful buttons to inner result

* Localize and finish dialog

* Remove empty line

* Fix error and remove old styles

* Make icon pop a tiny bit better

* Fix advantage/disadvantage
2026-04-26 10:43:10 +02:00
Carlos Fernandez
6d09c5504d
[Fix] origin change values and prioritize item options (#1835)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
* Fix origin key replacement and prioritize item options

* Rename key to value

* Some fixes

* Attempt to always retrieve the source item for same actor origin

* Fix getters in item roll data

* Performance improvement

* Allow apply to item system data

* Replace implementation with shallow proxy

* Add delete to the shallow proxy

* Add proxy trap for the in operator

---------

Co-authored-by: WBHarry <williambjrklund@gmail.com>
2026-04-26 00:06:41 +02:00
WBHarry
c82bcbeb01 Linted 2026-04-25 22:50:59 +02:00
WBHarry
d0afee59d8 Corrected secondaryWeapon translation 2026-04-25 18:51:49 +02:00
Carlos Fernandez
ccb0073cef
Prevent class sheet and character errors when features/domains no longer exist (#1833)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-04-24 20:49:42 +02:00
Carlos Fernandez
84afec31a7
[Fix] class domains when setting max domains to null or 0 (#1832)
* Fix class domains when setting max domains to null or 0

* Convert max loadout to use data prep
2026-04-24 20:47:33 +02:00
WBHarry
fae05c24a8
1794 - Include Item Damage (#1827)
* Went ahead and made IncludeItemDamage work again, smashing the formulas together

* .

* Lint fix
2026-04-23 00:22:08 +02:00
WBHarry
3eda3c4c05
[Feature] Action Areas (#1815)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
* Functioning setup

* .

* Fixes

* Completed

* Apply suggestions from code review

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>

* using function.call instead of function.bind

* Run lint fix on action areas PR (#1820)

* .

* .

* Restructured getTemplateShape to be a lot more readable

* .

* .

* Changed from 'area' to 'areas'

* .

* Moved the areas button to the left

* Fix regression with actions list

* Updated all SRD adversaries

---------

Co-authored-by: Carlos Fernandez <CarlosFdez@users.noreply.github.com>
Co-authored-by: Carlos Fernandez <cfern1990@gmail.com>
2026-04-21 22:27:52 +02:00
Carlos Fernandez
3cbc18f42b
Add eslint and run linter in workflow (#1819)
Some checks are pending
Project CI / build (24.x) (push) Waiting to run
2026-04-21 10:15:39 +10:00
Carlos Fernandez
f850cbda76
[Feature] Updates to inventory icons, context menus, action use, and observer visibility (#1814)
* Update inventory controls and permissions filtering

* Also disable prosemirror editors

* Address context menu deprecation warnings

* Fix context menu detection for actions

* Refine logic for use action when hovering over item icon
2026-04-20 15:30:43 +02:00
WBHarry
c683bc4352 Fixed IncludeBaseDamage to be an override 2026-04-20 15:20:35 +02:00
Carlos Fernandez
4944722139
Avoid error when backing out of action (#1813) 2026-04-18 23:31:56 +02:00
Carlos Fernandez
2fde61a1d5
[Feature] Make all item types quantifiable in the party (#1808)
* 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
2026-04-16 11:12:36 +02:00
WBHarry
91aff8b10d
[Feature] Advantage Default Dice (#1802) 2026-04-16 03:55:12 -04:00
Carlos Fernandez
aa8771bf0d
Show notification when invalid item types are added to actors (#1807) 2026-04-16 08:23:25 +02:00
WBHarry
7d5cdeb09d
[Feature] Active Party (#1803) 2026-04-15 20:26:39 -04:00
Carlos Fernandez
a77d2088a0
Increase reuse of gold and inventory styling (#1804) 2026-04-15 18:42:30 +02:00
WBHarry
3ec013ff50
Reworked summon action and clowncar functionality to work with levels (#1791) 2026-04-12 00:25:43 +02:00
WBHarry
8a0b1b8e22
[Fix] Translation Fixes (#1789)
* Fixed translations

* .
2026-04-11 22:55:26 +02:00
WBHarry
6804bfe047 Fixed so that bonus rest moves can be negative 2026-04-11 19:23:34 +02:00
WBHarry
b076c2481b Fixed the extra unarmored severe threshold bonus being applied to Bare Bones 2026-04-11 14:59:44 +02:00
WBHarry
e111f7c2ae Corrected BareBones damageThreshold application 2026-04-11 13:58:57 +02:00
WBHarry
a897037dc4
[Feature] Group Roll Rework (#1785)
* Initial

* .

* Improvements

* .

* Renamed 'Main Charater' to 'Leader'

* Localization fixes

* .

* Fixed roll sound coming when canceling a roll. Fixed the leader PART not being disabled when the player isn't the leader
2026-04-11 11:14:36 +02:00
WBHarry
97636fa134 Fixed Countdown Actions not actually setting their DefaultOwnership. Fixed GMs not always getting Ownership of a countdown 2026-04-11 02:53:51 +02:00
WBHarry
ae480157d1
[Feature] 1766 - Group Attack (#1770)
* Implemented group attack logic

* Updated all minions in the SRD to use the group attack functionality

* .

* Renamed groupAttack.nr to groupAttack.numAttackers

* Moved the flag vs global setting logic to documents/scene

* .
2026-04-09 22:07:51 +02:00