Skip to content

Commit 1173f6a

Browse files
committed
fix balthazar bunker trying to update yet to be generated map
1 parent 55c0c49 commit 1173f6a

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

data/json/effects_on_condition/npc_eocs/balthazar_fac_eocs.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,21 @@
2424
"type": "effect_on_condition",
2525
"id": "EOC_BALTHAZAR_CHECK_PROGRESS",
2626
"global": true,
27+
"condition": {
28+
"and": [
29+
{ "u_near_om_location": "balthazar_bunker_02", "range": 30 },
30+
{ "not": { "u_near_om_location": "balthazar_bunker_02", "range": 4 } },
31+
{ "math": [ "balthazar_destroyed != 1" ] }
32+
]
33+
},
2734
"effect": [
2835
{ "if": { "math": [ "balthazar_power <= 0" ] }, "then": { "run_eocs": "EOC_BALTHAZAR_GONE" } },
2936
{
3037
"if": { "and": [ { "math": [ "balthazar_solar_power != 1" ] }, { "math": [ "balthazar_power >= 50" ] } ] },
3138
"then": { "run_eocs": "EOC_BALTHAZAR_SET_UP_SOLAR" }
3239
}
33-
]
40+
],
41+
"deactivate_condition": { "math": [ "balthazar_destroyed == 1" ] }
3442
},
3543
{
3644
"type": "effect_on_condition",
@@ -51,6 +59,7 @@
5159
"effect": [
5260
{ "mapgen_update": "remove_balthazar_intercom", "om_terrain": "balthazar_bunker_01" },
5361
{ "math": [ "balthazar_power = 0" ] },
62+
{ "math": [ "balthazar_destroyed = 1" ] },
5463
{ "math": [ "balthazar_daily_power_gain = 0" ] }
5564
]
5665
},

0 commit comments

Comments
 (0)