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:
@@ -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 ) {
|
||||
|
||||
Reference in New Issue
Block a user