daggerheart/module/config
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
..
_module.mjs [Feature] Custom Resources (#1714) 2026-03-11 11:10:28 +01:00
actionConfig.mjs [Feature] Action Areas (#1815) 2026-04-21 22:27:52 +02:00
actorConfig.mjs [Feature] Custom Resources (#1714) 2026-03-11 11:10:28 +01:00
domainConfig.mjs [Feature] Homebrew Domains (#639) 2025-08-06 13:58:17 +02:00
effectConfig.mjs Language Organization (#281) 2025-07-06 17:43:12 +02:00
encounterConfig.mjs Fixed a lot of cases where we expected a combatant to have an attached actor (#1520) 2026-01-10 00:21:44 +01:00
flagsConfig.mjs [Feature] Encounter Battlepoints (#1346) 2025-12-06 21:11:34 +01:00
generalConfig.mjs [Feature] Action Areas (#1815) 2026-04-21 22:27:52 +02:00
hooksConfig.mjs [Feature] Group Roll Rework (#1785) 2026-04-11 11:14:36 +02:00
itemBrowserConfig.mjs Replace prettier with stylistic, improve types, and add no-undef rule (#1975) 2026-06-05 15:53:15 -04:00
itemConfig.mjs Reverted party auto permission 2026-04-24 00:28:08 +02:00
resourceConfig.mjs [Feature] Configurable starting gold amounts in Homebrew settings 2026-06-05 23:29:50 -03:00
settingsConfig.mjs Add eslint and run linter in workflow (#1819) 2026-04-21 10:15:39 +10:00
system.mjs [Feature] Custom Resources (#1714) 2026-03-11 11:10:28 +01:00
triggerConfig.mjs [Feature] Trigger System (#1500) 2026-01-11 11:51:05 +01:00