Usurper Reborn - Alpha v0.4 Release Notes
Combat System Improvements
Monster Targeting AI Overhaul
- Monsters now intelligently select targets based on class roles, not just attacking the player
- Tank classes (Paladin, Barbarian, Warrior) draw significantly more aggro with higher threat weights
- Squishy classes (Magician, Sage, Assassin) draw less monster attention
- Factors considered: class role, armor rating, current HP percentage, and defending status
- Makes bringing tank companions/spouses into the dungeon tactically meaningful
Arcane Shield Spell Fix
- Fixed bug where buff spells like Arcane Shield would ask for an enemy target and deal damage instead of buffing
- Buff and Heal spells now correctly target the caster without prompting for enemy selection
- Spell system now properly routes through SpellSystem.CastSpell for correct effect application
Equipment & Inventory System
Dual-Wield Weapon Slot Selection
- When purchasing one-handed weapons, you can now choose which hand to equip them in
- Shows current equipment in both Main Hand and Off-Hand slots before choosing
- Option to cancel purchase if you change your mind
- Applies to both regular weapon purchases and "best available" weapon purchases
Shop Improvements
- Weapon Shop now properly prompts for slot selection on one-handed weapons
- Purchase cancellation now correctly refunds gold
- Auto-save triggers after equipment purchases
Party & Companion System Fixes
Team Composition Persistence
- Dungeon party (spouses, team members, lovers) now properly saves and restores when loading a game
- Previously, players had to re-add party members every time they loaded a save
- Both story companions (Lyris, Kael, Mira, Vex) and NPC teammates are now persisted
XP & Auto-Leveling Fix
- Fixed critical bug where companions and spouses would accumulate XP but never level up
- Root cause: Experience wasn't properly initialized when loading saves, causing level-up threshold checks to fail
- Companions and NPC teammates now correctly auto-level during combat when they reach XP thresholds
- Legacy saves are automatically migrated - existing characters will have their XP initialized correctly
Technical Improvements
- Added base stat initialization for NPCs on save restore (ensures stat recalculation works after level-ups)
- Improved save/load compatibility for older save files
- Added debug logging for XP initialization to help diagnose future issues
- Global quick commands now work consistently across all locations (Healer, Inn, Bank, Weapon Shop, etc.)