fix: hydration mismatch, production Dockerfile, SSR localStorage guard, SpellsTab/SkillsTab/debug store migrations
Build and Publish Mana Loop Docker Image / build-and-publish (push) Has been cancelled
Build and Publish Mana Loop Docker Image / build-and-publish (push) Has been cancelled
This commit is contained in:
@@ -9,15 +9,15 @@ import { ELEMENTS } from '@/lib/game/constants';
|
||||
export function ElementDebug() {
|
||||
const elements = useManaStore((s) => s.elements);
|
||||
const unlockElement = useManaStore((s) => s.unlockElement);
|
||||
const debugAddElementalMana = useManaStore((s) => s.debugAddElementalMana);
|
||||
const addElementMana = useManaStore((s) => s.addElementMana);
|
||||
|
||||
const handleUnlockElement = (element: string) => {
|
||||
unlockElement(element, 500);
|
||||
};
|
||||
|
||||
const handleAddElementalMana = (element: string, amount: number) => {
|
||||
if (debugAddElementalMana) {
|
||||
debugAddElementalMana(element, amount);
|
||||
if (addElementMana) {
|
||||
addElementMana(element, amount);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user