Skip to content

Commit 7e61a5c

Browse files
authored
Merge pull request #80613 from RenechCDDA/scenario_initial_visibility
Update scenarios to use distance_initial_visibility
2 parents 36799ff + 16fccba commit 7e61a5c

File tree

2 files changed

+48
-13
lines changed

2 files changed

+48
-13
lines changed

data/json/scenarios.json

Lines changed: 24 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,7 @@
490490
"forbidden_traits": [ "FASTREADER", "SLOWREADER" ],
491491
"requirement": "achievement_witnessed_portal_storm",
492492
"reveal_locale": false,
493+
"distance_initial_visibility": 0,
493494
"flags": [ "CHALLENGE", "LONE_START" ]
494495
},
495496
{
@@ -544,6 +545,7 @@
544545
],
545546
"requirement": "achievement_reach_lab_finale",
546547
"reveal_locale": false,
548+
"distance_initial_visibility": 0,
547549
"flags": [ "CHALLENGE", "CITY_START", "LONE_START" ]
548550
},
549551
{
@@ -604,6 +606,7 @@
604606
"start_of_game": { "hour": 8, "day": 1, "season": "winter", "year": 1 },
605607
"add_professions": true,
606608
"professions": [ "sheltered_survivor", "sheltered_militia", "winter_scavenger", "winter_army" ],
609+
"distance_initial_visibility": 0,
607610
"requirement": "achievement_survive_91_days"
608611
},
609612
{
@@ -631,6 +634,7 @@
631634
"start_of_game": { "hour": 8, "day": 1, "season": "summer", "year": 2 },
632635
"add_professions": true,
633636
"professions": [ "sheltered_survivor", "sheltered_militia", "winter_scavenger", "winter_army" ],
637+
"distance_initial_visibility": 50,
634638
"requirement": "achievement_survive_91_days"
635639
},
636640
{
@@ -647,6 +651,7 @@
647651
"professions": [ "sheltered_survivor", "sheltered_militia", "winter_scavenger", "winter_army" ],
648652
"requirement": "achievement_survive_91_days",
649653
"eoc": [ "faction_camp_start" ],
654+
"distance_initial_visibility": 50,
650655
"flags": [ "CITY_START", "LONE_START" ]
651656
},
652657
{
@@ -660,6 +665,7 @@
660665
"flags": [ "LONE_START" ],
661666
"start_of_cataclysm": { "hour": 0, "day": 61, "season": "spring", "year": 1 },
662667
"start_of_game": { "hour": 8, "day": 1, "season": "winter", "year": 1 },
668+
"distance_initial_visibility": 0,
663669
"professions": [ "sheltered_militia", "sheltered_survivor", "unemployed" ]
664670
},
665671
{
@@ -674,6 +680,7 @@
674680
"forbidden_traits": [ "TOUGH", "DISRESISTANT" ],
675681
"professions": [ "unemployed", "patient", "veteran" ],
676682
"requirement": "achievement_reach_hospital",
683+
"distance_initial_visibility": 0,
677684
"flags": [ "CHALLENGE", "CITY_START", "LONE_START" ]
678685
},
679686
{
@@ -696,6 +703,7 @@
696703
"k9_cop",
697704
"cop"
698705
],
706+
"distance_initial_visibility": 0,
699707
"flags": [ "CITY_START", "LONE_START" ]
700708
},
701709
{
@@ -720,6 +728,7 @@
720728
],
721729
"requirement": "achievement_reach_island_prison",
722730
"reveal_locale": false,
731+
"distance_initial_visibility": 0,
723732
"flags": [ "LONE_START", "CHALLENGE" ]
724733
},
725734
{
@@ -733,6 +742,7 @@
733742
"professions": [ "captive", "rescuer" ],
734743
"requirement": "achievement_reach_mi-Go_encampment",
735744
"reveal_locale": false,
745+
"distance_initial_visibility": 0,
736746
"flags": [ "LONE_START", "CHALLENGE" ],
737747
"start_of_cataclysm": { "hour": 0, "day": 61, "season": "spring", "year": 1 },
738748
"start_of_game": { "hour": 8, "day": 1, "season": "winter", "year": 1 }
@@ -786,6 +796,7 @@
786796
"ELECTRORECEPTORS"
787797
],
788798
"reveal_locale": false,
799+
"distance_initial_visibility": 0,
789800
"flags": [ "LONE_START" ]
790801
},
791802
{
@@ -833,6 +844,8 @@
833844
"description": "You find yourself among trees. The screaming and moaning is fainter this far from civilization, but you'd better know what you're doing out here.",
834845
"start_name": "Wilderness",
835846
"allowed_locs": [ "sloc_field", "sloc_forest", "sloc_campsite", "sloc_campground", "sloc_desert_island", "sloc_river" ],
847+
"reveal_locale": false,
848+
"distance_initial_visibility": 0,
836849
"flags": [ "LONE_START" ]
837850
},
838851
{
@@ -866,6 +879,7 @@
866879
"combat-engineer"
867880
],
868881
"map_extra": "mx_helicopter",
882+
"distance_initial_visibility": 0,
869883
"flags": [ "HELI_CRASH", "LONE_START" ],
870884
"missions": [ "MISSION_HELICOPTER_CRASH" ]
871885
},
@@ -912,6 +926,7 @@
912926
"combat-engineer"
913927
],
914928
"requirement": "achievement_reach_military_base",
929+
"distance_initial_visibility": 25,
915930
"flags": [ "CHALLENGE", "LONE_START" ]
916931
},
917932
{
@@ -963,6 +978,7 @@
963978
"allowed_locs": [ "sloc_road" ],
964979
"start_name": "Crash Site",
965980
"map_extra": "mx_mayhem_crash_start",
981+
"distance_initial_visibility": 0,
966982
"flags": [ "CHALLENGE", "HELI_CRASH", "LONE_START" ]
967983
},
968984
{
@@ -1014,6 +1030,7 @@
10141030
"allowed_locs": [ "sloc_field", "sloc_forest", "sloc_desert_island" ],
10151031
"eoc": [ "scenario_strong_portal_storm", "scenario_portal_dependent" ],
10161032
"requirement": "achievement_reach_lab_finale",
1033+
"distance_initial_visibility": 0,
10171034
"reveal_locale": false,
10181035
"professions": [
10191036
"portal_traveler",
@@ -1117,6 +1134,7 @@
11171134
],
11181135
"requirement": "achievement_reach_aircraft_carrier",
11191136
"reveal_locale": false,
1137+
"distance_initial_visibility": 0,
11201138
"flags": [ "CHALLENGE", "LONE_START" ]
11211139
},
11221140
{
@@ -1331,6 +1349,7 @@
13311349
"start_name": "Outside Town",
13321350
"allowed_locs": [ "sloc_mobile_home", "sloc_motel" ],
13331351
"eoc": [ "EOC_scenario_drunk" ],
1352+
"distance_initial_visibility": 6,
13341353
"flags": [ "LONE_START" ]
13351354
},
13361355
{
@@ -1341,6 +1360,7 @@
13411360
"description": "When FEMA camps ran out of space the authorities used what was left of their manpower to round up people at gunpoint. The stadiums they forced everyone into did nothing to slow down the madness and it spread like wildfire. You managed to slip away from the worst violence but you are now surrounded and need to escape quickly!",
13421361
"start_name": "Stadium",
13431362
"allowed_locs": [ "sloc_stadium" ],
1363+
"distance_initial_visibility": 0,
13441364
"map_extra": "mx_corpses"
13451365
},
13461366
{
@@ -1351,7 +1371,8 @@
13511371
"description": "During your escape you got lost and ended up at the wrong location. Get your bearings and make a plan. You'll need it.",
13521372
"start_name": "Middle of Nowhere",
13531373
"allowed_locs": [ "sloc_middle_of_nowhere" ],
1354-
"reveal_locale": false
1374+
"reveal_locale": false,
1375+
"distance_initial_visibility": 0
13551376
},
13561377
{
13571378
"type": "scenario",
@@ -1361,7 +1382,8 @@
13611382
"description": "When the riots came to your home, you ran underground and hid. Now days later you are lost and hear movement echoing in the dark.",
13621383
"start_name": "Underground",
13631384
"allowed_locs": [ "sloc_sewer" ],
1364-
"reveal_locale": false
1385+
"reveal_locale": false,
1386+
"distance_initial_visibility": 0
13651387
},
13661388
{
13671389
"type": "scenario",

data/mods/innawood/scenarios.json

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,8 @@
3737
"bricklayer"
3838
],
3939
"flags": [ ],
40-
"reveal_locale": false
40+
"reveal_locale": false,
41+
"distance_initial_visibility": 0
4142
},
4243
{
4344
"type": "scenario",
@@ -76,7 +77,8 @@
7677
"carpenter",
7778
"bricklayer"
7879
],
79-
"reveal_locale": false
80+
"reveal_locale": false,
81+
"distance_initial_visibility": 0
8082
},
8183
{
8284
"type": "scenario",
@@ -116,7 +118,8 @@
116118
"carpenter",
117119
"bricklayer"
118120
],
119-
"reveal_locale": false
121+
"reveal_locale": false,
122+
"distance_initial_visibility": 0
120123
},
121124
{
122125
"type": "scenario",
@@ -157,7 +160,8 @@
157160
"carpenter",
158161
"bricklayer"
159162
],
160-
"reveal_locale": false
163+
"reveal_locale": false,
164+
"distance_initial_visibility": 0
161165
},
162166
{
163167
"type": "scenario",
@@ -197,7 +201,8 @@
197201
"carpenter",
198202
"bricklayer"
199203
],
200-
"reveal_locale": false
204+
"reveal_locale": false,
205+
"distance_initial_visibility": 0
201206
},
202207
{
203208
"type": "scenario",
@@ -210,7 +215,8 @@
210215
"professions": [ "svictim", "naked", "unemployed", "homeless", "hitchhiker", "musician" ],
211216
"eoc": [ "scenario_infected", "scenario_bad_day" ],
212217
"flags": [ "FIRE_START", "CHALLENGE", "LONE_START" ],
213-
"reveal_locale": false
218+
"reveal_locale": false,
219+
"distance_initial_visibility": 0
214220
},
215221
{
216222
"type": "scenario",
@@ -249,7 +255,8 @@
249255
"carpenter",
250256
"bricklayer"
251257
],
252-
"reveal_locale": false
258+
"reveal_locale": false,
259+
"distance_initial_visibility": 0
253260
},
254261
{
255262
"type": "scenario",
@@ -291,7 +298,8 @@
291298
"carpenter",
292299
"bricklayer"
293300
],
294-
"reveal_locale": false
301+
"reveal_locale": false,
302+
"distance_initial_visibility": 0
295303
},
296304
{
297305
"type": "scenario",
@@ -346,7 +354,8 @@
346354
"vehicle": "2seater2_scenario",
347355
"professions": [ "heli_pilot" ],
348356
"flags": [ "LONE_START" ],
349-
"reveal_locale": false
357+
"reveal_locale": false,
358+
"distance_initial_visibility": 0
350359
},
351360
{
352361
"type": "scenario",
@@ -385,7 +394,8 @@
385394
"carpenter",
386395
"bricklayer"
387396
],
388-
"reveal_locale": false
397+
"reveal_locale": false,
398+
"distance_initial_visibility": 0
389399
},
390400
{
391401
"type": "scenario",
@@ -398,7 +408,8 @@
398408
"start_name": "Crash Site",
399409
"map_extra": "mx_mayhem",
400410
"flags": [ "CHALLENGE", "HELI_CRASH", "LONE_START" ],
401-
"reveal_locale": false
411+
"reveal_locale": false,
412+
"distance_initial_visibility": 0
402413
},
403414
{
404415
"type": "scenario",
@@ -413,6 +424,7 @@
413424
"allowed_locs": [ "sloc_field", "sloc_forest", "sloc_desert_island" ],
414425
"eoc": [ "scenario_strong_portal_storm", "scenario_portal_dependent" ],
415426
"requirement": "achievement_witnessed_portal_storm",
427+
"distance_initial_visibility": 0,
416428
"reveal_locale": false,
417429
"professions": [
418430
"portal_traveler",
@@ -440,6 +452,7 @@
440452
"forced_traits": [ "ILLITERATE", "ANTIJUNK", "STRONGSTOMACH", "SPIRITUAL" ],
441453
"forbidden_traits": [ "FASTREADER", "SLOWREADER" ],
442454
"flags": [ "CHALLENGE", "LONE_START" ],
455+
"distance_initial_visibility": 0,
443456
"reveal_locale": false
444457
}
445458
]

0 commit comments

Comments
 (0)