[priority: 3] tick() passes empty skill objects to computeMaxMana/computeRegen — skill bonuses ignored #77

Closed
opened 2026-05-19 09:11:17 +02:00 by Anexim · 2 comments
Owner

Severity: 3 — Medium
File: src/lib/game/stores/gameStore.ts, lines 76-84

Description:
Skills, skillUpgrades, and skillTiers are all passed as empty objects {}:

const maxMana = computeMaxMana(
  { skills: {}, prestigeUpgrades: prestigeState.prestigeUpgrades, skillUpgrades: {}, skillTiers: {} },
  undefined
);
const baseRegen = computeRegen(
  { skills: {}, prestigeUpgrades: prestigeState.prestigeUpgrades, skillUpgrades: {}, skillTiers: {}, attunement: {} },
  undefined
);

Skill-based mana and regen bonuses are completely ignored during the game tick. Only prestige upgrades affect max mana and regen.

Fix: Pass actual skill state from the appropriate store.

**Severity:** 3 — Medium **File:** `src/lib/game/stores/gameStore.ts`, lines 76-84 **Description:** Skills, skillUpgrades, and skillTiers are all passed as empty objects `{}`: ```ts const maxMana = computeMaxMana( { skills: {}, prestigeUpgrades: prestigeState.prestigeUpgrades, skillUpgrades: {}, skillTiers: {} }, undefined ); const baseRegen = computeRegen( { skills: {}, prestigeUpgrades: prestigeState.prestigeUpgrades, skillUpgrades: {}, skillTiers: {}, attunement: {} }, undefined ); ``` **Skill-based mana and regen bonuses are completely ignored during the game tick.** Only prestige upgrades affect max mana and regen. **Fix:** Pass actual skill state from the appropriate store.
Anexim added the ai:todo label 2026-05-19 09:11:17 +02:00
n8n-gitea was assigned by Anexim 2026-05-19 09:11:17 +02:00
Author
Owner

Starting work on Issue 77: tick() passes empty skill objects to computeMaxMana/computeRegen — skill bonuses ignored. Part of the same skill→discipline migration gap.

Starting work on Issue 77: tick() passes empty skill objects to computeMaxMana/computeRegen — skill bonuses ignored. Part of the same skill→discipline migration gap.
Author
Owner

Fixed: Updated tick() in gameStore.ts to pass discipline effects to computeMaxMana, computeRegen, and calcInsight. The raw-mastery discipline's maxManaBonus now contributes to max mana calculation. Also updated gameLoopActions.ts to pass discipline effects to calcInsight.

Fixed: Updated `tick()` in `gameStore.ts` to pass discipline effects to `computeMaxMana`, `computeRegen`, and `calcInsight`. The `raw-mastery` discipline's `maxManaBonus` now contributes to max mana calculation. Also updated `gameLoopActions.ts` to pass discipline effects to `calcInsight`.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Anexim/Mana-Loop#77