fix: SkillsTab barrel export, equipment store reads, LabTab re-export, debug null guards, GrimoireTab loaded state, spire tab switching
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m48s
Build and Publish Mana Loop Docker Image / build-and-publish (push) Successful in 1m48s
This commit is contained in:
@@ -9,7 +9,7 @@ import { useAttunementStore } from '@/lib/game/stores';
|
||||
export function AttunementDebug() {
|
||||
const attunements = useAttunementStore((s) => s.attunements);
|
||||
const debugUnlockAttunement = useAttunementStore((s) => s.debugUnlockAttunement);
|
||||
const debugAddAttunementXP = useAttunementStore((s) => s.debugAddAttunementXP);
|
||||
const addAttunementXP = useAttunementStore((s) => s.addAttunementXP);
|
||||
|
||||
const handleUnlockAttunement = (id: string) => {
|
||||
if (debugUnlockAttunement) {
|
||||
@@ -18,8 +18,8 @@ export function AttunementDebug() {
|
||||
};
|
||||
|
||||
const handleAddAttunementXP = (id: string, amount: number) => {
|
||||
if (debugAddAttunementXP) {
|
||||
debugAddAttunementXP(id, amount);
|
||||
if (addAttunementXP) {
|
||||
addAttunementXP(id, amount);
|
||||
}
|
||||
};
|
||||
|
||||
@@ -32,7 +32,7 @@ export function AttunementDebug() {
|
||||
</CardTitle>
|
||||
</CardHeader>
|
||||
<CardContent className="space-y-3">
|
||||
{Object.entries(ATTUNEMENTS_DEF).map(([id, def]) => {
|
||||
{Object.entries(ATTUNEMENTS_DEF || {}).map(([id, def]) => {
|
||||
const isActive = attunements?.[id]?.active;
|
||||
const level = attunements?.[id]?.level || 1;
|
||||
const xp = attunements?.[id]?.experience || 0;
|
||||
|
||||
Reference in New Issue
Block a user