Increase view size when alerted, go concerned instead of alerted when player is below the light threshold but within view

This commit is contained in:
2014-06-15 15:27:21 -07:00
parent 1423b923d4
commit c7ae91fd15

View File

@@ -705,9 +705,12 @@ var AISprite = function(game, x, y, key, frame) {
if ( hasState(this, state) == true ) {
return;
} else if ( (state == STATE_LOSTHIM) && (hasState(this, STATE_ALERTED) == false)) {
} else if ( (state == STATE_LOSTHIM) &&
(hasState(this, STATE_ALERTED) == false) &&
(hasState(this, STATE_CONCERNED) == false) ) {
return;
}
setAwarenessState(this, state);
if ( this.awareness_effect !== null ) {