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:
@@ -703,12 +703,11 @@ var AISprite = function(game, x, y, key, frame) {
|
|||||||
this.setAwarenessEffect = function(state) {
|
this.setAwarenessEffect = function(state) {
|
||||||
var animkey = "";
|
var animkey = "";
|
||||||
|
|
||||||
if ( (state == STATE_LOSTHIM) && (hasState(this, STATE_ALERTED) == false)) {
|
if ( hasState(this, state) == true ) {
|
||||||
return;
|
return;
|
||||||
} else if ( (state == STATE_ALERTED) && (hasState(this, STATE_ALERTED) == true) ) {
|
} else if ( (state == STATE_LOSTHIM) && (hasState(this, STATE_ALERTED) == 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