Root cause of the toggle cycle bug: the theme set display:flex on
#pause.dg2-pause unconditionally, out-specificity-ing core's hidden
(unpaused) state. After unpausing, the pause element stayed visible and
showed Foundry's default GAME PAUSED markup (the overlay injector
correctly skips unpaused renders). Scope the flex layout to
#pause.dg2-pause.paused and explicitly hide :not(.paused).
Verified three full pause/unpause cycles: paused = radar scope visible,
unpaused = element hidden. (Earlier tests misread visibility via
offsetParent, which is always null for position:fixed elements.)
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Pause: replace the stock spinner with an animated DG2 radar scope (centre-
swept beam, phosphor trail, range rings, glinting blips) captioned MISSION
PAUSED / ALL STATIONS HOLD.
Home rule (criticalEvents automation setting, default on): when an Agent
rolls a natural 01 on a percentile test, roll 1d6 on the PROVIDENCE table
(1 = recover 1D4 SAN ... 6 = the whole cell gains +20%/1 WP); a natural 00
rolls on the CALAMITY table (1 = equipment failure ... 6 = everyone in the
scene loses SAN as something notices the cell). Events post as dramatic
gold/red dossier chat cards with the d6 attached (themed 3D dice); the
Handler applies effects. Verified both paths end-to-end in isolated Foundry.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Chat rework:
- Roll cards are now dark 'Eyes Only' dossier cards with a classification
strip (FIELD OPERATION / THE UNNATURAL / LETHAL FORCE), roll name, and a
target chip. Message frame is colour-accented per roll variant via a
deltagreen2.variant flag set in DGRoll.toMessage and styled on
renderChatMessageHTML. Flavor lines dropped in favour of the card header.
Field Equipment compendium:
- New packs/field-equipment with 60 modern DG gear items across
surveillance, counter-surveillance, forensics, hazmat/protective,
breaching/restraint, non-lethal, and support. Each uses a bundled
white-on-black icon, carries flavourful descriptions with mechanical
bonus notes, and an Agent's Handbook expense tier. Registered in the
Delta Green pack folder.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- New characterSheetStyle option 'tactical' (default), css/dg2-tactical.css.
- Dark federal-dossier design: charcoal surfaces, olive accent, Public
Sans throughout, uppercase letterspaced name plate and section headers.
- Color-coded HP (olive) / WP (steel) / SAN (red) resource cards.
- Modern underline tab navigation; skill rows as hoverable panels with
dimmed untrained skills and olive value badges; restyled item lists,
inputs, and buttons.
- Item sheets (AppV1) carry the theme class and get matching dark styling.
- Fix: CSS selectors still targeted .deltagreen after the system-id
rename, leaving most stock sheet styling dead - renamed to .deltagreen2.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Percentile roll cards: outcome banners (crit/success/failure) with icons
and margin-of-success text instead of color-only inline styles.
- Damage and lethality cards: Apply Damage / Apply Lethality buttons that
hit targeted or selected tokens, auto-subtracting equipped armor
protection reduced by the weapon's armor-piercing value.
- Sanity damage cards: apply buttons for success/failure loss with GM
whispers for temporary insanity (5+), breaking point crossings, and 0 SAN.
- Ammo: weapon ammo is now numeric with a magazine capacity; attack rolls
expend a round (ammoTracking setting, default on), gear tab shows an
ammo column with a reload control, compendium weapons carry capacities.
- CSS: drop live Google Fonts imports (offline reliability); DG2 styles
with dark-theme support.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>