People keep chasing the guards even after touching the light
This commit is contained in:
@@ -393,7 +393,9 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
console.log(this.target);
|
console.log(this.target);
|
||||||
addState(this, STATE_RUNNINGTOLIGHT);
|
addState(this, STATE_RUNNINGTOLIGHT);
|
||||||
} else {
|
} else {
|
||||||
this.setAwarenessEffect(STATE_RELIEVED);
|
this.awareness_timer.stop();
|
||||||
|
this.awareness_change_enabled = true;
|
||||||
|
this.setAwarenessEffect(STATE_LOSTHIM);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user