Commit Graph

82 Commits

Author SHA1 Message Date
uberwald 539841c4ff fix: push explosion dice to DieTerm results so DSN displays them
Explosion rolls were evaluated as separate Roll instances but never
added to the original DieTerm's results array. Dice So Nice reads
DieTerm.results to render 3D dice, so explosions were invisible.

Now each explosion result is pushed into the DieTerm's results array
({result, active:true}), letting DSN render explosion dice in the
correct chronological order alongside the main die.

Applies to prompt(), promptRangedDefense(), promptRangedAttack(),
and rollSpellDamageToMessage().
2026-06-16 19:29:07 +02:00
uberwald 60b351f50d Fix spell save/defense again
Release Creation / build (release) Successful in 45s
2026-06-13 21:06:18 +02:00
uberwald ace726a1fc fix: use try/finally for spellDefense cleanup instead of delete
Release Creation / build (release) Successful in 47s
delete on game.lethalFantasy.spellDefense was breaking roll flow
on Foundry's proxied game object.  Use try/finally with
assignment to false instead, which is safe on any object type.

Initialize saveSpell local var from one-shot flag so D30
chart lookup correctly uses arcane_spell_defense for spell saves
without requiring user to click the pre-checked checkbox.
2026-06-13 16:51:52 +02:00
uberwald 7eae95cbbd fix: use arcane spell defense D30 chart for spell saves
Release Creation / build (release) Successful in 43s
Bug: saveSpell local var initialized to false (line 142), while
dialog checkbox was pre-checked via dialogContext.saveSpell =
game.lethalFantasy.spellDefense.  If user didn't click the checkbox,
D30 call used SAVING_THROWS chart instead of ARCANE_SPELL_DEFENSE.

Also: game.lethalFantasy.spellDefense was set true before spell
defense rolls but never cleared, leaking to subsequent non-spell saves.

Fix: initialize saveSpell from the one-shot flag and delete it
immediately.  Dialog context now uses the local saveSpell variable
instead of re-reading the deleted flag.
2026-06-13 15:22:34 +02:00
uberwald cbeaaeec99 Final fixes and code review checks
Release Creation / build (release) Successful in 39s
2026-06-12 08:19:42 +02:00
uberwald 8aae7bada0 fix: pre-check 'Save against spell' checkbox when defense originates from spell attack 2026-06-11 22:17:37 +02:00
uberwald c20750caa7 Minor fixes regarding rolls and chat messages
Release Creation / build (release) Successful in 48s
2026-06-10 20:17:45 +02:00
uberwald ce630feb51 feat: D30 combat effects, spell tiers, small damage removal, token HUD luck/grit
- Replace Knockback with Internal Injury on D30 (5, 10, 15); remove Shield Bash from D30 counter-attacks
- Eliminate small weapon damage: keep only medium damage labelled Damage in sheets, rolls, and chat
- D30 bonus dice (20, 27, 30) auto-resolved before grit/luck/shield decisions; choice dialogs for special strikes
- D30 combat effects: bleeding wounds, damage ×2/×3 before DR, DR ×2/×3 with component picker dialog
- Add hp.wounds to monster schema for bleeding support
- Show Save against spell? checkbox for all save rolls (not just magic users)
- Fix mulligan restart: persistent D30 process flags prevent double-application and allow both sides to react
- For Dice So Nice, show main roll animation before explosion dice for correct ordering
- Spell tier selection: force Standard/Overpowered choice at cast time, tier-specific aether cost, only chosen damage button shown
- Add +1/−1 luck and grit controls to Token HUD
- Fix inconsistent indentation, remove duplicate i18n key, remove unused includesShield return
2026-06-10 07:53:51 +02:00
uberwald f6fb0b68b8 Fix spell rolls again
Release Creation / build (release) Successful in 47s
2026-05-25 20:41:00 +02:00
uberwald e45edd60c4 FIx spell order and dual rollll for spell damages
Release Creation / build (release) Successful in 1m6s
2026-05-25 12:29:39 +02:00
uberwald c217490a5b Fix ranged attacks again
Release Creation / build (release) Has been cancelled
2026-05-24 09:41:06 +02:00
uberwald 38eb1a8d3d Add ranged actions for monsters
Release Creation / build (release) Successful in 54s
2026-05-23 19:10:10 +02:00
uberwald 2770774aa3 Various fixes for spell and ranged attacks 2026-05-23 00:11:58 +02:00
uberwald 9ccb0f90f0 Other fixes for damage buttons from chat 2026-05-20 10:53:22 +02:00
uberwald 96306623e5 UPdate and fixes for roll in combats
Release Creation / build (release) Successful in 43s
2026-05-18 20:26:39 +02:00
uberwald 7279cd752d Fix initiative again
Release Creation / build (release) Successful in 43s
2026-05-18 07:58:28 +02:00
uberwald db3e8b5d35 Improve init for monsters and some fixwes around shields
Release Creation / build (release) Successful in 48s
2026-05-17 13:22:29 +02:00
uberwald 54421e4a83 MAnage spell/miracle spending points and favor/disfavor for shield rolls
Release Creation / build (release) Successful in 43s
2026-05-10 17:49:53 +02:00
uberwald 55a040062a Fix ranged defense + HTH attacks
Release Creation / build (release) Successful in 1m19s
2026-05-01 23:55:29 +02:00
uberwald 55d1b41ca4 Fix ranged defense + HTH attacks 2026-05-01 23:32:53 +02:00
uberwald 841ed82277 Fix for ranged monsters attack
Release Creation / build (release) Successful in 1m2s
2026-05-01 01:12:56 +02:00
uberwald 59ff098fca Add ranged attacks for monsters 2026-04-29 20:27:20 +02:00
uberwald 343abc32e2 FIx init à 1 again
Release Creation / build (release) Successful in 50s
2026-04-12 11:08:19 +02:00
uberwald c37d92af25 Various initiative fixes + shield management messages
Release Creation / build (release) Successful in 46s
2026-04-12 01:07:58 +02:00
uberwald 1bf88bac06 ATtempt to fix init rolls 2026-04-07 20:43:15 +02:00
uberwald 3ad5681539 Fix inititiative rolls
Release Creation / build (release) Successful in 52s
2026-04-06 00:02:14 +02:00
uberwald 52877e3a68 New combat management and various improvments
Release Creation / build (release) Successful in 48s
2026-01-19 23:22:32 +01:00
uberwald 61ed1597e7 Add damage management and DR for monsters also
Release Creation / build (release) Successful in 1m48s
2025-12-19 15:41:27 +01:00
uberwald 96062c6fd9 Roll damages and so on
Release Creation / build (release) Successful in 56s
2025-12-14 21:18:00 +01:00
uberwald f6b35536de Manage DR and damage roll 2025-12-14 20:48:33 +01:00
uberwald 7d27562bb4 Fix DR and defense values
Release Creation / build (release) Successful in 1m7s
2025-12-08 11:54:36 +01:00
uberwald fa3054f24b Some granted dice/favor fixes
Release Creation / build (release) Successful in 2m48s
2025-10-01 17:17:33 +02:00
uberwald cb8bcfd9ea Ranged defense fixes again
Release Creation / build (release) Successful in 43s
2025-09-19 22:30:26 +02:00
uberwald eedce1a498 Latest fixes
Release Creation / build (release) Successful in 46s
2025-09-17 07:47:40 +02:00
uberwald 76a99fe33f Various fixes 2025-09-16 23:49:02 +02:00
uberwald 6eeb391d1a Move aiming to attacker
Release Creation / build (release) Successful in 1m9s
2025-09-05 23:26:11 +02:00
uberwald c7727076bf Various fixes and renamingé
Release Creation / build (release) Successful in 1m30s
2025-09-02 21:06:33 +02:00
uberwald d0411f9ec9 Various fixes and renamingé 2025-09-02 18:17:31 +02:00
uberwald e5653a4edc Latest modifications & changes
Release Creation / build (release) Successful in 1m47s
2025-08-31 11:28:52 +02:00
uberwald 527e33a805 Roll D12 for monsters, with enabled fields for attacks
Release Creation / build (release) Successful in 1m22s
2025-06-10 20:37:46 +02:00
uberwald b5857cb3b7 Various fixes for v13
Release Creation / build (release) Successful in 53s
2025-06-05 16:14:25 +02:00
uberwald b4d6616cb4 Foundry v13 migration
Release Creation / build (release) Successful in 58s
2025-05-14 10:02:08 +02:00
uberwald b7f13500a6 Update README.md 2025-05-03 08:26:22 +02:00
uberwald 791a7d6b67 Enhance rolls and fix dialog position 2025-04-25 21:28:02 +02:00
uberwald ebb7bfe3d6 Fix prayer roll
Release Creation / build (release) Successful in 45s
2025-04-23 16:05:01 +02:00
uberwald 16959dd52e 8 attcks for monster + fix lethargy
Release Creation / build (release) Successful in 46s
2025-04-22 23:44:04 +02:00
uberwald a2364e1252 Fix spells 2025-04-22 15:48:25 +02:00
uberwald d961e130e0 Fix actions again
Release Creation / build (release) Successful in 58s
2025-04-22 08:42:01 +02:00
uberwald 4b087fc9d8 Fix actions again
Release Creation / build (release) Successful in 58s
2025-04-21 17:40:43 +02:00
uberwald 87a90b73ce Implements actions management
Release Creation / build (release) Successful in 53s
2025-04-17 17:35:45 +02:00