Skip to content

Commit 80e19ff

Browse files
committed
Merge remote-tracking branch 'BGforge_RPU/master' into 2.4_Lite
# Conflicts: # data/maps/arcaves.map
2 parents c24e245 + a29e19f commit 80e19ff

File tree

1 file changed

+14
-11
lines changed

1 file changed

+14
-11
lines changed

scripts_src/sierra/wiscrtdr.ssl

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -50,16 +50,19 @@ end
5050
create_object(WALL_BLOCKING_HEX,self_tile,self_elevation)
5151

5252
procedure map_update_p_proc begin
53-
if sierra_security_on then begin
54-
if ((self_elevation == 0) and (map_var(MVAR_Security_Level_1) == 1))
55-
or ((self_elevation == 1) and (map_var(MVAR_Security_Level_2) == 1))
56-
or ( (self_elevation == 2)
57-
and (global_var(GVAR_SIERRA_BASE_ENEMY) == 1) or (map_var(MVAR_Security_Level_3) == 1) )
58-
or ((cur_map_index == MAP_SIERRA_4) and (map_var(MVAR_Security_Level_4) == 1))
59-
then begin
53+
// If Robobrain is in party, he disables the alert almost immediately.
54+
// Party check prevents guard bots from walking out in the "almost" time.
55+
if sierra_security_on and not Robobrain_In_Party then begin
56+
if ((self_elevation == 0) and (map_var(MVAR_Security_Level_1) == 1))
57+
or ((self_elevation == 1) and (map_var(MVAR_Security_Level_2) == 1))
58+
or ( (self_elevation == 2)
59+
and (global_var(GVAR_SIERRA_BASE_ENEMY) == 1) or (map_var(MVAR_Security_Level_3) == 1)
60+
)
61+
or ((cur_map_index == MAP_SIERRA_4) and (map_var(MVAR_Security_Level_4) == 1))
62+
then begin
6063
release_bots;
61-
end
62-
end else begin
63-
contain_bots;
64-
end
64+
end
65+
end else begin
66+
contain_bots;
67+
end
6568
end

0 commit comments

Comments
 (0)