Refactor enemy state handling to change standing variants from ambushing to idle
Signed-off-by: Hans Kokx <hans.d.kokx@gmail.com>
This commit is contained in:
@@ -387,9 +387,9 @@ abstract class Enemy extends Entity {
|
||||
if (matchedType.mapData.isPatrol(normalizedId)) {
|
||||
spawnState = EntityState.patrolling;
|
||||
} else if (matchedType.mapData.isStatic(normalizedId)) {
|
||||
// Standing map placements are directional ambush actors in Wolf3D.
|
||||
// Using ambushing keeps wake-up behavior aligned with placed facing.
|
||||
spawnState = EntityState.ambushing;
|
||||
// Standing map placements face a specific direction but stand still
|
||||
// until the player enters their line of sight (handled by checkWakeUp).
|
||||
spawnState = EntityState.idle;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user