Simplify legacy NPC targeting check by removing sequence dependency

This commit is contained in:
2026-05-11 21:34:38 +02:00
parent 19ee1b8c80
commit 3b4302c4a4

View File

@@ -5231,14 +5231,8 @@ function readProjectSequenceLibrary(
}; };
} }
function hasLegacyNpcTargetingInteractionLink( function hasLegacyNpcTargetingInteractionLink(link: InteractionLink): boolean {
link: InteractionLink, return link.trigger === "click";
sequences: ProjectSequenceLibrary
): boolean {
return (
link.trigger === "click" &&
getInteractionLinkImpulseSteps(link, sequences).length > 0
);
} }
function migrateLegacySceneNpcTargetability( function migrateLegacySceneNpcTargetability(