mirror of
https://github.com/collinsmith/riiablo.git
synced 2025-07-10 15:58:13 +07:00
NPCs will now go to neutral mode when interacted with
This commit is contained in:
@ -56,6 +56,7 @@ public class Npc extends AI {
|
|||||||
|
|
||||||
actionTimer = Float.POSITIVE_INFINITY;
|
actionTimer = Float.POSITIVE_INFINITY;
|
||||||
actionPerformed = false;
|
actionPerformed = false;
|
||||||
|
entity.setMode(Monster.MODE_NU);
|
||||||
entity.target().set(entity.position());
|
entity.target().set(entity.position());
|
||||||
entity.lookAt(gameScreen.player);
|
entity.lookAt(gameScreen.player);
|
||||||
entity.update(0);
|
entity.update(0);
|
||||||
|
Reference in New Issue
Block a user