Add PF2e encounter difficulty calculation alongside the existing D&D 5e/5.5e system. PF2e assigns XP to creatures based on their level relative to party level (not CR), then compares total XP against budget thresholds (Trivial/Low/Moderate/Severe/Extreme). Party level is auto-derived from existing PC levels (most common level, or average rounded). No encounter multiplier — just sum creature XP directly.
The existing difficulty indicator and breakdown panel adapt to show PF2e tiers and XP when PF2e is the active game system.
XP Reference
Creature level vs party: -4=10, -3=15, -2=20, -1=30, +0=40, +1=60, +2=80, +3=120, +4=160 XP.
Budgets (party of 4): Trivial=40, Low=60, Moderate=80, Severe=120, Extreme=160.
Per extra/fewer PC: ±10/15/20/30/40 per tier.
Acceptance Criteria
In PF2e mode, the difficulty indicator shows PF2e tiers (Trivial, Low, Moderate, Severe, Extreme) instead of D&D tiers
Creature XP is calculated from creature level minus party level using the standard PF2e XP table
Party level is auto-derived from the most common PC level (or average rounded if all differ)
Budget thresholds adjust for party size (each PC beyond 4 adds the per-tier adjustment, each fewer subtracts)
The difficulty breakdown panel shows creature levels and XP contributions (not CR)
Difficulty indicator is visible in PF2e mode (currently hidden — re-enable once calculation exists)
D&D difficulty calculation remains unchanged when in D&D mode
## Summary
Add PF2e encounter difficulty calculation alongside the existing D&D 5e/5.5e system. PF2e assigns XP to creatures based on their level relative to party level (not CR), then compares total XP against budget thresholds (Trivial/Low/Moderate/Severe/Extreme). Party level is auto-derived from existing PC levels (most common level, or average rounded). No encounter multiplier — just sum creature XP directly.
The existing difficulty indicator and breakdown panel adapt to show PF2e tiers and XP when PF2e is the active game system.
## XP Reference
Creature level vs party: -4=10, -3=15, -2=20, -1=30, +0=40, +1=60, +2=80, +3=120, +4=160 XP.
Budgets (party of 4): Trivial=40, Low=60, Moderate=80, Severe=120, Extreme=160.
Per extra/fewer PC: ±10/15/20/30/40 per tier.
## Acceptance Criteria
- [x] In PF2e mode, the difficulty indicator shows PF2e tiers (Trivial, Low, Moderate, Severe, Extreme) instead of D&D tiers
- [x] Creature XP is calculated from creature level minus party level using the standard PF2e XP table
- [x] Party level is auto-derived from the most common PC level (or average rounded if all differ)
- [x] Budget thresholds adjust for party size (each PC beyond 4 adds the per-tier adjustment, each fewer subtracts)
- [x] The difficulty breakdown panel shows creature levels and XP contributions (not CR)
- [x] Difficulty indicator is visible in PF2e mode (currently hidden — re-enable once calculation exists)
- [x] D&D difficulty calculation remains unchanged when in D&D mode
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 PF2e encounter difficulty calculation alongside the existing D&D 5e/5.5e system. PF2e assigns XP to creatures based on their level relative to party level (not CR), then compares total XP against budget thresholds (Trivial/Low/Moderate/Severe/Extreme). Party level is auto-derived from existing PC levels (most common level, or average rounded). No encounter multiplier — just sum creature XP directly.
The existing difficulty indicator and breakdown panel adapt to show PF2e tiers and XP when PF2e is the active game system.
XP Reference
Creature level vs party: -4=10, -3=15, -2=20, -1=30, +0=40, +1=60, +2=80, +3=120, +4=160 XP.
Budgets (party of 4): Trivial=40, Low=60, Moderate=80, Severe=120, Extreme=160.
Per extra/fewer PC: ±10/15/20/30/40 per tier.
Acceptance Criteria