Update Healer Man server
This commit is contained in:
1 parent
246b4832b0
commit
3e30af4c98
8 files changed
+309
-119
No files matched your search
@@ -11,6 +11,7 @@ import {
|
||||
import { useGameStore } from "../game/store";
|
||||
import type { GameOverlay } from "../game/store";
|
||||
import { ACTION_CONTROLS } from "../game/actionBindings";
|
||||
import { specializationById, specializationIconUrl } from "../game/specializationCatalog";
|
||||
import {
|
||||
DUNGEON_CATALOG,
|
||||
DUNGEON_CATEGORIES,
|
||||
@@ -176,7 +177,12 @@ export function CompanionPanel({ snapshot, send, preferControllerBinds = false }
|
||||
<div className="companion-mini-roster" aria-label="Character quick select">
|
||||
{snapshot.characters.map((character) => (
|
||||
<button key={character.id} type="button" className={character.id === snapshot.selectedCharacterId ? "is-active" : ""} onClick={() => send({ name: "selectCharacter", characterId: character.id })}>
|
||||
<span>{raceById(character.raceId).sigil}</span><strong>{character.name}</strong><small>Lv {character.level}</small>
|
||||
<span
|
||||
className="companion-character-icon"
|
||||
title={`${specializationById(character.specializationId)?.displayName ?? classById(character.classId).name} icon`}
|
||||
>
|
||||
<img src={specializationIconUrl(character.classId, character.specializationId)} alt="" aria-hidden="true" />
|
||||
</span><strong>{character.name}</strong><small>Lv {character.level}</small>
|
||||
</button>
|
||||
))}
|
||||
{!snapshot.characters.length && <p>No characters saved yet.</p>}
|
||||
|
||||
Reference in new issue
Block a user