Commit Graph
9 Commits
Author SHA1 Message Date
tevans c09de0b476 feat: move STATUS to GM scene controls, fix PopOut module for v14 (v1.6.3) 2026-06-10 17:31:42 +01:00
tevans 25250dc98a feat: Showing Off mechanic (v1.6.2)
Every roll dialog now has a gold SHOWING OFF button:
- Each click posts a big gold fanfare chat message + plays a WebAudio arpeggio
- Reduces the dice pool by 1 per click (floor: 1d6)
- Total dice display turns gold and shows the penalty
- Immediately increments actor system.details.showingOff tally
- At exactly 20 pts: public milestone broadcast with GM alert
- Finance tab: gold SHOWING OFF hero panel shows career total (editable)
- Hourly PC Status Report now includes Showing Off tally (yellow at >0, orange at 10+, red at 20+)
- template.json: showingOff: 0 added to character.details
- _playShowingOffFanfare(): ascending C-major arpeggio via WebAudio API
2026-06-04 00:02:51 +01:00
tevans 27bc43cea6 fix+feat: button overrun, natural weapon rolls, Wraith Teeth & Claw (v1.6.1)
CSS: morph-shift-btn now flex: 0 0 auto; max-width: 110px
     specialty-name gets flex: 1; min-width: 0 so it takes remaining space
     flex-wrap on specialty-name-row prevents overflow

Natural weapons:
- template.json: isNaturalWeapon/naturalWeaponDamage/AP/ROF fields on specialty
- Morphic Strike: ROF 2, isNaturalWeapon: true
- Wraith Teeth & Claw added to wraithraider racial abilities (DMG 2, AP 1, ROF 2)
- _ensureRacialAbilities patches existing items with missing natural weapon fields
- _onNaturalWeaponRoll: STR + Melee roll through full weapon chat card pipeline
- STRIKE button appears on any specialty with isNaturalWeapon: true
- All condition/drug/armor/racial mods applied to natural weapon rolls
2026-06-03 23:50:05 +01:00
tevans 2033f50a57 feat: LAD Account, condition fixes, hourly PC status report
- LAD Account checkbox (bio tab) adds locked 50c/week to Finances
- Active conditions now show dice penalty text inline on the sheet
- _applyStatusCondition() helper: toggleStatusEffect with ActiveEffect fallback
  so panic/crit/instability conditions always land reliably
- Condition-clear button also falls back to direct ActiveEffect delete
- _broadcastPCConditions(): whispered GM report of all PC HP/Resolve/Stress/conditions
- STATUS button (GM-only) on vitals row triggers report on demand
- Hourly setInterval fires the report automatically while Foundry is running
- Version bump 1.5.9
2026-06-03 22:45:00 +01:00
tevans c79fedc343 feat: Health and Resolve rollable saves
Click the Health or Resolve label to roll a save using the current
value as the dice pool (plain d6, no stress, no dialog). Zero successes
adds +1 Stress. Chat card uses standard yze-die styling.
2026-06-03 18:18:01 +00:00
tevans b744b91354 fix: prevent duplicate credits submission causing NaN corruption
The non-Mk2 sheet had two inputs named system.details.credits (header
+ finances tab). Foundry concatenates duplicate names as "500,500"
which is not a valid number, causing the field to show blank/grey
after saving.

Fix: finances tab input made readonly with no name attribute — header
is now the sole authoritative credits field.

Also: on-boot sanitization now covers credits, fixing any actors
already storing the corrupted comma-string value.
2026-06-03 00:01:46 +01:00
tevans 02d7177122 feat: Player Character flag + GM Finance Ledger
- Add isPlayerCharacter field to template.json (character.details)
- Bio tab: checkbox 'Player Character' bound to system.details.isPlayerCharacter
- SLAGMFinanceTool Application: GM-only window listing all PC-flagged
  actors with current balance, weekly income, weekly expenses, net
  weekly income, and a Calculate button per character
- Calculate button: applies netWeekly to credits (credits += net)
- Calculate All button: applies week to every listed PC at once
- Actor Directory: GM-only 'Finance Ledger' button opens the tool
- CSS: styled PC flag row and full GM Finance Ledger table
- Version bump: 1.4.5 → 1.4.6
2026-06-02 22:09:34 +00:00
tevans 049273fbc6 fix: bullet tax balance + expenses total (v1.4.5)
Three bugs:
1. weeklyExpenses total omitted bulletTax from the sum (both getData paths)
   Fix: add (_exp.bulletTax||0) to the calculation
2. _applyBulletTax read undefined credits as 0 (actors created before the
   credits field existed have null/undefined, not zero)
   Fix: fallback to 500 (template default) only when value is null/undefined
3. Finances tab CURRENT BALANCE showed just C because input had no placeholder
   Fix: add placeholder=500 min=0 to the credits input in character-sheet.hbs
2026-06-02 22:53:00 +01:00
tevans 2ebd5803fc Initial commit — full system source + zero-engine-state.md reference 2026-06-01 23:19:46 +01:00