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 ) {
|
if ( hasState(this, state) == true ) {
|
||||||
return;
|
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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
setAwarenessState(this, state);
|
setAwarenessState(this, state);
|
||||||
|
|
||||||
if ( this.awareness_effect !== null ) {
|
if ( this.awareness_effect !== null ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user