{
if (event.button !== PRIMARY_MOUSE_BUTTON) return;
event.stopPropagation();
if (dead) {
useCombatStore.getState().lootMob(instanceId);
return;
}
usePartyStore.getState().clearSelection();
useCombatStore.getState().selectMob(instanceId);
}}
>
{model ? (
) : (
proxyBody
)}
{showAggroRanges && gameMode === "dungeon" && mob && !dead && !mob.engaged ? (
) : null}
{boss && !dead ? (
<>
>
) : null}
{selected && !dead ? (
) : null}
{showLabel && !dead ? (
{definition.name}
{boss ?
{definition.title}
: null}
) : null}
{lootable ? (
Loot {definition.name} ยท {mob?.pendingLoot.length ?? 0} item{mob?.pendingLoot.length === 1 ? "" : "s"}
) : null}
);
}
function MobHealthPlate({ instanceId, height, boss }: {
readonly instanceId: string;
readonly height: number;
readonly boss: boolean;
}) {
const plateRef = useRef