[High] [Bug] PactCost and signingCost mismatch for procedural guardians (Tiers 4-8) #361
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Severity: High
File:
src/lib/game/data/guardian-encounters.ts(lines 128, 175, 213, 253, 294) andsrc/lib/game/data/guardian-data.ts(line 24)Description:
The static
pactCosthelper computes:But all 5 procedural guardian generators (Tiers 4-8) use a reduced formula:
This is missing
power * 5,shield * 2, andhpVal * barrier * 0.3. Additionally,signingCost.manauses a different formula thanpactCost(e.g.,hpVal * 0.35for Tier 5), meaning the displayedpactCostdiffers from what the player actually pays.Impact: The
signingCostis whatprestigeStoreactually charges, sopactCostandsigningCost.manadiverge. In Tiers 5-8,signingCost.manais consistently higher thanpactCost, meaning players pay more than the displayed cost.Fix needed: Align the
pactCostformula in procedural generators with the static helper, and ensuresigningCost.manamatchespactCost.Starting work on fixing the PactCost/signingCost mismatch for procedural guardians (Tiers 4-8). Investigating guardian data and pact cost calculations.
Fixed. Aligned signingCost.mana with pactCost for all procedural guardian tiers (4-8). The signingCost.mana was missing the armor component (hpVal * armor * 0.5) and in Tier 5 had a different base rate. Now signingCost.mana === pactCost for all procedural guardians. All 1158 tests pass.