forked from phenom/healer-man
Release Healer Man 0.1.43
This commit is contained in:
1 parent
c7e8163790
commit
ccc01396cd
86 files changed
+2951
-198
No files matched your search
@@ -20,9 +20,10 @@ function visibleGroup(ability: AbilityDefinition, primaryClassId: string): (type
|
||||
return "primary";
|
||||
}
|
||||
|
||||
export function RomSkillsPanel() {
|
||||
const open = useGameStore((state) => state.overlay === "talents");
|
||||
const close = useGameStore((state) => state.closeOverlay);
|
||||
export function RomSkillsPanel({ open, onClose }: { open?: boolean; onClose?: () => void } = {}) {
|
||||
const storeOpen = useGameStore((state) => state.overlay === "talents");
|
||||
const closeOverlay = useGameStore((state) => state.closeOverlay);
|
||||
const close = onClose ?? closeOverlay;
|
||||
const classId = useCombatStore((state) => state.classId);
|
||||
const secondaryClassId = useCombatStore((state) => state.secondaryClassId);
|
||||
const level = useCombatStore((state) => state.level);
|
||||
@@ -32,7 +33,7 @@ export function RomSkillsPanel() {
|
||||
{ id: "rom-skills-close", run: close },
|
||||
], [abilities, close]);
|
||||
const controller = useMenuController(actions, { initialId: abilities[0] ? `rom-skill-${abilities[0].id}` : "rom-skills-close", onBack: close });
|
||||
if (!open) return null;
|
||||
if (!(open ?? storeOpen)) return null;
|
||||
|
||||
const primary = classById(classId);
|
||||
const secondary = secondaryClassId ? classById(secondaryClassId) : null;
|
||||
|
||||
Reference in new issue
Block a user