fix: bugs #238,#240,#244,#246 + docs #248 update
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m21s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m21s
- #238: Fix spire tab inconsistent state (Max Floor 1 but Floors Cleared 0) by not inflating maxFloorReached on enterSpireMode and preserving it on exitSpireMode - #240: Fix guardian armor display stray text by extracting stat formatters in SpireSummaryTab - #244: Improve discipline auto-pause UX with log messages and visual feedback on DisciplineCard - #246: Fix raw mana exceeding max cap by recomputing maxMana after discipline XP gains - #248: Update AGENTS.md (remove gitea_get_project_boards, add gitea_start_session, 22 mana types, 8 stores, updated guardian tiers) - #248: Update README.md (remove Prisma/SQLite refs, update mana types/guardian tiers/discipline counts) - #248: Update GAME_BRIEFING.md (8 stores, 22 mana types, 64 disciplines, 8-tier guardians, correct code architecture)
This commit is contained in:
@@ -218,6 +218,21 @@ export const useGameStore = create<GameCoordinatorStore>()(
|
||||
rawMana = disciplineResult.rawMana;
|
||||
elements = disciplineResult.elements;
|
||||
|
||||
// Log auto-paused disciplines for better UX feedback (fix #244)
|
||||
if (disciplineResult.autoPausedNames.length > 0) {
|
||||
const names = disciplineResult.autoPausedNames.join(', ');
|
||||
addLog('⏸️ Auto-paused (insufficient mana): ' + names);
|
||||
}
|
||||
|
||||
// Recompute maxMana after discipline XP gains so clamping uses updated value (fix #246)
|
||||
const updatedDisciplineEffects = computeDisciplineEffects();
|
||||
const updatedMaxMana = computeMaxMana(
|
||||
{ prestigeUpgrades: ctx.prestige.prestigeUpgrades },
|
||||
undefined,
|
||||
updatedDisciplineEffects,
|
||||
);
|
||||
rawMana = Math.min(rawMana, updatedMaxMana);
|
||||
|
||||
for (const [targetElem, conv] of Object.entries(disciplineEffects.conversions)) {
|
||||
const conversionAmount = conv.rate * HOURS_PER_TICK;
|
||||
let canConvert = true;
|
||||
|
||||
Reference in New Issue
Block a user