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
@@ -2,6 +2,7 @@ import { useEffect, useMemo, useState, type CSSProperties } from "react";
|
||||
import { useGameStore } from "../game/store";
|
||||
import { useMenuController, type MenuAction } from "../input/useMenuController";
|
||||
import { ControllerButton } from "./ControllerButton";
|
||||
import { AbilityTooltipTarget } from "./AbilityTooltip";
|
||||
|
||||
export interface SpellbookAbilityView {
|
||||
id: string;
|
||||
@@ -149,6 +150,10 @@ function SpellbookDialog({
|
||||
? "Learn in talents"
|
||||
: `Unlocks at level ${ability.level}`;
|
||||
return (
|
||||
<AbilityTooltipTarget key={ability.id} ability={{ ...ability,
|
||||
lockedUntilLevel: ability.level > playerLevel ? ability.level : undefined,
|
||||
talentLocked: ability.talentLocked && !ability.known,
|
||||
}}>
|
||||
<ControllerButton
|
||||
key={ability.id}
|
||||
controlId={`spell-${ability.id}`}
|
||||
@@ -184,6 +189,7 @@ function SpellbookDialog({
|
||||
? <em>{ability.talentLocked && !ability.known ? "Talent" : `Level ${ability.level}`}</em>
|
||||
: <em className="spellbook-ability__known">{ability.passive ? "Passive" : "Known"}</em>}
|
||||
</ControllerButton>
|
||||
</AbilityTooltipTarget>
|
||||
);
|
||||
})}
|
||||
{!visibleAbilities.length && (
|
||||
|
||||
Reference in new issue
Block a user