Reporting townspeople should send the guard to the player's last known locatio n - more than once

This commit is contained in:
2014-06-22 16:37:32 -07:00
parent 16374a312b
commit a6fcc6f0c2

View File

@@ -409,8 +409,9 @@ var AISprite = function(game, x, y, key, frame) {
var aiSprites = game.state.states.game.aiSprites; var aiSprites = game.state.states.game.aiSprites;
this.target = nearestInGroup(this, aiSprites, "townsfolk-guard"); this.target = nearestInGroup(this, aiSprites, "townsfolk-guard");
} else if ( hasState(this, STATE_RUNNINGTOLIGHT) == false ) { } else if ( hasState(this, STATE_RUNNINGTOLIGHT) == false ) {
this.target.rotation_timer.stop();
this.target.setAwarenessEffect(STATE_ALERTED); this.target.setAwarenessEffect(STATE_ALERTED);
this.target.target = this.lastSawPlayerAt this.target.target = this.lastSawPlayerAt;
addState(this.target, STATE_RUNNINGTOREPORT); addState(this.target, STATE_RUNNINGTOREPORT);
this.path_tween_stop(); this.path_tween_stop();