Add persistent damage support for PF2e mode. Persistent damage is displayed as compact condition tags showing a damage type icon and formula (e.g., 🔥 2d6, 🩸 1d4). Each damage type can only appear once per combatant (higher value overrides lower, per PF2e rules). Adding persistent damage uses a picker with a fixed dropdown of common PF2e damage types and a formula text input.
Acceptance Criteria
In PF2e mode, the condition picker includes a "Persistent Damage" entry that opens a sub-picker with a damage type dropdown (fire, bleed, acid, cold, electricity, poison, mental, etc.) and a formula text input (e.g., "2d6")
Adding persistent damage shows a compact tag on the combatant row with a damage type icon and formula (e.g., 🔥 2d6)
Multiple persistent damage types can be active simultaneously (e.g., persistent fire and persistent bleed)
Only one instance per damage type is allowed; adding the same type replaces the existing formula
Clicking a persistent damage tag on the row removes it
Hovering a persistent damage tag shows a tooltip with the full description ("Persistent Fire 2d6: Take damage at end of turn. DC 15 flat check to end.")
Persistent damage tags are not available in D&D mode
Persistent damage entries survive page reload
## Summary
Add persistent damage support for PF2e mode. Persistent damage is displayed as compact condition tags showing a damage type icon and formula (e.g., 🔥 2d6, 🩸 1d4). Each damage type can only appear once per combatant (higher value overrides lower, per PF2e rules). Adding persistent damage uses a picker with a fixed dropdown of common PF2e damage types and a formula text input.
## Acceptance Criteria
- [x] In PF2e mode, the condition picker includes a "Persistent Damage" entry that opens a sub-picker with a damage type dropdown (fire, bleed, acid, cold, electricity, poison, mental, etc.) and a formula text input (e.g., "2d6")
- [x] Adding persistent damage shows a compact tag on the combatant row with a damage type icon and formula (e.g., 🔥 2d6)
- [x] Multiple persistent damage types can be active simultaneously (e.g., persistent fire and persistent bleed)
- [x] Only one instance per damage type is allowed; adding the same type replaces the existing formula
- [x] Clicking a persistent damage tag on the row removes it
- [x] Hovering a persistent damage tag shows a tooltip with the full description ("Persistent Fire 2d6: Take damage at end of turn. DC 15 flat check to end.")
- [x] Persistent damage tags are not available in D&D mode
- [x] Persistent damage entries survive page reload
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Summary
Add persistent damage support for PF2e mode. Persistent damage is displayed as compact condition tags showing a damage type icon and formula (e.g., 🔥 2d6, 🩸 1d4). Each damage type can only appear once per combatant (higher value overrides lower, per PF2e rules). Adding persistent damage uses a picker with a fixed dropdown of common PF2e damage types and a formula text input.
Acceptance Criteria