Making townsfolk report you to a guard
This commit is contained in:
@@ -1064,7 +1064,7 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.path_tween_stop();
|
this.path_tween_stop();
|
||||||
this.path_purge();
|
this.path_purge();
|
||||||
var staticLights = game.state.states.game.staticLights;
|
var staticLights = game.state.states.game.staticLights;
|
||||||
this.target = nearestInGroup(staticLights);
|
this.target = nearestInGroup(this, staticLights);
|
||||||
chaseState = STATE_CONCERNED;
|
chaseState = STATE_CONCERNED;
|
||||||
}
|
}
|
||||||
this.chasetarget(this.target,
|
this.chasetarget(this.target,
|
||||||
|
|||||||
Reference in New Issue
Block a user