forked from phenom/healer-man
Release Healer Man 0.1.14
This commit is contained in:
1 parent
67d7a8ebe7
commit
7b41b102fa
147 files changed
+169892
-1342
No files matched your search
@@ -84,6 +84,7 @@ import { useManastormStore } from "../game/manastormStore";
|
||||
import { registerCombatSpatialProvider } from "../game/combatSpatial";
|
||||
import { PLAYER_AGGRO_ID } from "../game/aggro";
|
||||
import { hasDungeonLineOfSight } from "./dungeonLineOfSight";
|
||||
import { registerCombatEffectAnchor } from "./combatEffectAnchorRegistry";
|
||||
|
||||
const PARTY_MOVE_SPEED = 5.25;
|
||||
const PARTY_CATCH_UP_SPEED = 7.5;
|
||||
@@ -563,7 +564,13 @@ function PartyActors({
|
||||
}
|
||||
if (!lastHealthRef.current.has(member.id)) lastHealthRef.current.set(member.id, member.health);
|
||||
actorRefs.current[index]?.position.set(position[0], position[1], position[2]);
|
||||
return registerPartyRuntimePosition(member.id, position);
|
||||
const runtimeCleanup = registerPartyRuntimePosition(member.id, position);
|
||||
const actor = actorRefs.current[index];
|
||||
const anchorCleanup = actor ? registerCombatEffectAnchor(member.id, actor) : undefined;
|
||||
return () => {
|
||||
runtimeCleanup();
|
||||
anchorCleanup?.();
|
||||
};
|
||||
});
|
||||
// Make the initial facing agree with the player instead of flashing at yaw zero.
|
||||
for (const actor of actorRefs.current) {
|
||||
|
||||
Reference in new issue
Block a user