NPCs will now go to neutral mode when interacted with

This commit is contained in:
Collin Smith
2019-03-20 01:16:01 -07:00
parent c160d4d76b
commit 6da8268c4a

View File

@ -56,6 +56,7 @@ public class Npc extends AI {
actionTimer = Float.POSITIVE_INFINITY;
actionPerformed = false;
entity.setMode(Monster.MODE_NU);
entity.target().set(entity.position());
entity.lookAt(gameScreen.player);
entity.update(0);