[priority: 3] Mana Tide pulse factor incorrect — ranges 0.5x-1.0x instead of 0.5x-1.5x #83
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: 3 — Medium
File:
src/lib/game/effects/dynamic-compute.ts, lines 68-71Description:
pulseFactorranges from 0 to 1. Thenregen *= (0.5 + pulseFactor * 0.5)means regen is multiplied by 0.5 to 1.0. The comment says "Regen pulses ±50%" which should range from 0.5x to 1.5x. The current formula only pulses -50% to 0%.Fix: Change to
regen *= (1.0 + 0.5 * Math.sin(Date.now() / 10000))to get 0.5x to 1.5x.Starting work on Mana Tide pulse factor fix.
✅ Fixed. Changed
regen *= (0.5 + pulseFactor * 0.5)toregen *= (1.0 + 0.5 * Math.sin(Date.now() / 10000))insrc/lib/game/effects/dynamic-compute.ts. Pulse now correctly ranges 0.5x-1.5x. Regression tests added.