forked from phenom/healer-man
Release Healer Man 0.1.5
This commit is contained in:
1 parent
f4c9cf356c
commit
55cfd43d66
62 files changed
+3030
-153
No files matched your search
@@ -23,6 +23,7 @@ import { equipmentItemsForOwner } from "../game/equipment";
|
||||
import type { CharacterCombatAnimationEvent } from "../game/combatAnimation";
|
||||
import { resolveDungeonAssets, resolveManastormStageAssets } from "../game/dungeonAssets";
|
||||
import { activeManastormStageAssetPackage } from "../game/manastormStageLoader";
|
||||
import { derivePartySpawnSlots } from "../game/manastormAdminConfig";
|
||||
import { requireDungeonDefinition } from "../game/dungeonRegistry";
|
||||
import type { DungeonBossObjective } from "../game/dungeonTypes";
|
||||
import { getMobPosition } from "../game/mobRuntimeRegistry";
|
||||
@@ -534,21 +535,13 @@ function PartyActors({
|
||||
|
||||
useEffect(() => {
|
||||
const game = useGameStore.getState();
|
||||
const spawnSlots = derivePartySpawnSlots(game.activeSpawn, members.length + 1);
|
||||
members.forEach((member, index) => {
|
||||
const position = positionsRef.current.get(member.id) ?? initialMemberPosition(index);
|
||||
if (game.gameMode === "manastorm" || stackAtEntrance) {
|
||||
position[0] = game.playerPosition[0];
|
||||
position[1] = game.playerPosition[1];
|
||||
position[2] = game.playerPosition[2];
|
||||
} else {
|
||||
setEntrancePosition(
|
||||
index,
|
||||
game.playerPosition,
|
||||
Math.sin(game.cameraYaw),
|
||||
Math.cos(game.cameraYaw),
|
||||
position,
|
||||
);
|
||||
}
|
||||
const slot = spawnSlots[index + 1] ?? spawnSlots[0];
|
||||
position[0] = slot.footPosition[0];
|
||||
position[1] = slot.footPosition[1];
|
||||
position[2] = slot.footPosition[2];
|
||||
const navigationSpawn = navigationGraphRef.current
|
||||
? findNearestPartyNavigationSurface(navigationGraphRef.current, position, 6)
|
||||
: null;
|
||||
|
||||
Reference in new issue
Block a user