Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Expand Defense Mode and fix a bug #67960

Merged
merged 53 commits into from
Sep 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
7d2a174
Update recipe_deconstruction.json
MNG-cataclysm Jan 25, 2022
6f513d4
Update recipe_deconstruction.json
MNG-cataclysm Jan 25, 2022
8fec58b
Update recipe_deconstruction.json
MNG-cataclysm Jan 25, 2022
c3b6616
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Jan 25, 2022
73fd737
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 7, 2022
e96b17f
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 7, 2022
dd8028e
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 8, 2022
56bf91d
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 8, 2022
c23fda0
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 11, 2022
23b7e20
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 13, 2022
24bd3c2
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 15, 2022
6fdf923
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 17, 2022
b64c87d
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 21, 2022
aea1769
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 21, 2022
8177874
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Feb 22, 2022
d53965d
Merge branch 'CleverRaven:master' into master
MNG-cataclysm May 6, 2022
eebd212
Merge branch 'CleverRaven:master' into master
MNG-cataclysm May 13, 2022
a6ab903
Merge branch 'CleverRaven:master' into master
MNG-cataclysm May 19, 2022
a2fcb09
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Jul 16, 2022
589e8e8
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Jul 26, 2022
f60f034
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Aug 2, 2022
691b4d0
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Aug 5, 2022
77064fe
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Aug 9, 2022
05e3930
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Aug 24, 2022
dbd2ddf
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Aug 26, 2022
aff4fb4
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Aug 28, 2022
725531b
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Sep 4, 2022
46ac570
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Sep 15, 2022
39684ed
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Sep 18, 2022
c9c7783
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Sep 22, 2022
2e0f6e1
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Sep 27, 2022
61096b3
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Oct 19, 2022
dc3455e
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Oct 19, 2022
ff2940c
Add myself to comment commands list
MNG-cataclysm Oct 19, 2022
d5fc803
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Nov 30, 2022
f6de989
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Jan 20, 2023
8b11150
Merge branch 'CleverRaven:master' into master
MNG-cataclysm May 12, 2023
15cc159
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Aug 8, 2023
5a7b71c
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Aug 24, 2023
2906044
Merge branch 'CleverRaven:master' into master
MNG-cataclysm Sep 15, 2023
a6eda89
Add the stuff
MNG-cataclysm Aug 31, 2023
f0d7599
Update data/mods/Defense_Mode/mapgen/survivor_forest_camp.json
MNG-cataclysm Aug 31, 2023
864dc5f
Update data/mods/Defense_Mode/specials.json
MNG-cataclysm Aug 31, 2023
85c31cd
Bugfixer #1
MNG-cataclysm Aug 31, 2023
351f640
Add the overmap terrain entry
MNG-cataclysm Aug 31, 2023
4f65bcc
Update eocs.json
MNG-cataclysm Aug 31, 2023
8605f4c
Use more default start location IDs, some to fit.
MNG-cataclysm Sep 14, 2023
6122190
Fix an ID typo
MNG-cataclysm Sep 14, 2023
234e95a
Some om_special fixes
MNG-cataclysm Sep 16, 2023
726f869
More om_special fixes
MNG-cataclysm Sep 16, 2023
5e4b49d
Update data/json/npcs/missiondef.json
MNG-cataclysm Sep 16, 2023
281cbf6
Update data/json/npcs/other/NPC_pizzaiolo.json
MNG-cataclysm Sep 16, 2023
83a1cfb
Final bug fix
MNG-cataclysm Sep 16, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"difficulty": 2,
"value": 0,
"start": {
"assign_mission_target": { "om_terrain": "s_restaurant", "reveal_radius": 5, "search_range": 400 },
"assign_mission_target": { "om_terrain": "s_restaurant", "om_special": "restraunt", "reveal_radius": 5, "search_range": 400 },
"effect": { "u_add_var": "directions", "type": "BOSS", "context": "mission", "value": "chef" }
},
"origins": [ "ORIGIN_SECONDARY" ],
Expand Down
9 changes: 8 additions & 1 deletion data/json/npcs/missiondef.json
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,14 @@
"start": {
"update_mapgen": { "place_item": [ { "item": "safe_box", "x": [ 18, 21 ], "y": [ 4, 6 ], "amount": 1 } ] },
"effect": "follow_only",
"assign_mission_target": { "om_terrain": "bank", "om_terrain_match_type": "PREFIX", "search_range": 120, "random": true, "z": 0 }
"assign_mission_target": {
"om_terrain": "bank",
"om_terrain_match_type": "PREFIX",
"om_special": "bank",
"search_range": 120,
"random": true,
"z": 0
}
},
"end": {
"effect": [
Expand Down
2 changes: 1 addition & 1 deletion data/json/npcs/other/NPC_pizzaiolo.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@
"has_generic_rewards": false,
"start": {
"effect": [ "follow_only", { "npc_first_topic": "MISSION_PYROMANIAC" } ],
"assign_mission_target": { "om_terrain": "s_restaurant", "min_distance": 5, "z": 0 }
"assign_mission_target": { "om_terrain": "s_restaurant", "om_special": "restraunt", "min_distance": 5, "z": 0 }
},
"end": {
"effect": [
Expand Down
1 change: 1 addition & 0 deletions data/mods/Defense_Mode/eocs.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@
"type": "effect_on_condition",
"id": "DEFENSE_MODE_WAVE_CONTROL",
"recurrence": "1 day",
"global": true,
"effect": [
{ "arithmetic": [ { "global_val": "var", "var_name": "wave_number" }, "+=", { "const": 1 } ] },
{ "math": [ "wave_cash_number", "++" ] },
Expand Down
101 changes: 101 additions & 0 deletions data/mods/Defense_Mode/mapgen/survivor_forest_camp.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
[
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "dm_survivor_forest_camp" ],
"weight": 100,
"object": {
"fallback_predecessor_mapgen": "forest_thick",
"rows": [
" ",
" ",
" ",
" ,,,,,,, ,,,,,,, ",
" ,,===,, ,,===,, ",
" ,,===,, ,,===,, ",
" ,E,,,,, ,E,,,,, ",
" ,,,,,,,,,,,,,,M,,,,,, ",
" ,,,,,,,,,,,,,,B,,,,,, ",
" ,,,,,,,,,A@,,,C,,,,,, ",
" ,,,,,,,,,,O,,,S,,,,,, ",
" ,,,,,,,,,,@,,,,,,,,,, ",
" ,,,,,,,,E,,,,,,,,,,,, ",
" ,,,,,,,,,,, ",
" ,,,,,,,,,,, ",
" ,,,,,,,,,,, ",
" ,,,,,,,,,,, ",
" ,,,,,,,,,,, ",
" ,,,,@,,,,,, ",
" ----------- ",
" --~~~~~~~~~-- ",
" --~~~~~~~~~~~-- ",
" --~~~~~~~~~-- ",
" ----------- "
],
"flags": [ "ERASE_ALL_BEFORE_PLACING_TERRAIN" ],
"nested": { "E": { "chunks": [ [ "leather_tent_5x5_S", 100 ] ] }, "A": { "chunks": [ [ "survivor_corpse", 25 ] ] } },
"terrain": {
",": [ "t_region_groundcover" ],
"~": "t_water_dp",
"O": "t_region_soil",
"@": "t_region_groundcover",
"E": "t_region_groundcover",
"S": "t_region_soil",
"=": "t_dirtmound",
"-": "t_water_sh",
"C": "t_region_soil",
"B": "t_region_groundcover",
"A": "t_region_groundcover",
"M": "t_region_groundcover"
},
"furniture": {
"O": "f_firering",
"@": "f_logstool",
"S": "f_smoking_rack",
"C": "f_kiln_empty",
"B": "f_butcher_rack",
"M": "f_fiber_mat"
},
"place_traps": [
{ "trap": "tr_fur_rollmat", "x": 12, "y": 14 },
{ "trap": "tr_fur_rollmat", "x": [ 18, 20 ], "y": [ 7, 9 ] },
{ "trap": "tr_fur_rollmat", "x": [ 4, 6 ], "y": [ 7, 9 ] }
],
"place_furniture": [
{ "furn": "f_cattails", "x": [ 10, 16 ], "y": [ 21, 23 ], "repeat": [ 3, 7 ] },
{ "furn": "f_boulder_large", "x": [ 10, 16 ], "y": [ 21, 23 ], "repeat": [ 1, 3 ] }
],
"sealed_item": { "=": { "items": { "item": "farming_seeds", "chance": 100 }, "furniture": "f_plant_seedling" } },
"place_monster": [ { "group": "GROUP_POND_FISH_2", "x": 13, "y": 21, "chance": 100, "repeat": [ 4, 8 ] } ],
"place_items": [
{ "item": "book_survival_2", "x": 11, "y": 14, "chance": 100, "repeat": [ 1, 3 ] },
{ "item": "corpse_child_survival", "x": [ 18, 20 ], "y": [ 7, 9 ], "chance": 100 },
{ "item": "corpse_female_survival", "x": [ 18, 20 ], "y": [ 7, 9 ], "chance": 100 }
],
"place_fields": [ { "field": "fd_blood", "x": [ 18, 20 ], "y": [ 7, 9 ], "repeat": [ -1, 3 ] } ],
"place_loot": [
{ "item": "compositebow", "x": 5, "y": 7, "chance": 100 },
{ "item": "arrow_wood_heavy", "x": 5, "y": 7, "repeat": [ 1, 3 ], "chance": 100 },
{ "item": "quiver_birchbark", "x": 5, "y": 7, "chance": 100 },
{ "item": "childnote", "x": 19, "y": 7, "chance": 100 },
{ "item": "dry_meat", "x": 16, "y": 7, "chance": 100, "repeat": [ 5, 20 ] },
{ "item": "dry_fruit", "x": 16, "y": 7, "chance": 100, "repeat": [ 5, 20 ] },
{ "item": "makeshift_pillow", "x": 12, "y": 14, "chance": 100 },
{ "item": "needle_bone", "x": 11, "y": 13, "chance": 100 },
{ "item": "primitive_adze", "x": 11, "y": 13, "chance": 100 },
{ "item": "wicker_backpack", "x": 11, "y": 13, "chance": 100 },
{ "item": "primitive_hammer", "x": 11, "y": 13, "chance": 100 },
{ "item": "sickle_stone", "x": 11, "y": 13, "chance": 100 },
{ "item": "stone_chisel", "x": 11, "y": 13, "chance": 100 },
{ "item": "fire_drill_large", "x": 11, "y": 13, "chance": 100 },
{ "item": "oil_lamp_clay", "x": 11, "y": 13, "chance": 100 },
{ "item": "primitive_axe", "x": 11, "y": 9, "chance": 100 },
{ "item": "log", "x": 8, "y": 10, "chance": 100, "repeat": 3 },
{ "item": "clay_watercont", "x": 8, "y": 9, "chance": 100 },
{ "item": "clay_pot", "x": 13, "y": 18, "chance": 100 },
{ "item": "fish_bait", "x": 13, "y": 18, "chance": 100, "repeat": [ 1, 2 ] },
{ "item": "fishing_rod_basic", "x": 12, "y": 18, "chance": 100 }
]
}
}
]
9 changes: 9 additions & 0 deletions data/mods/Defense_Mode/overmap.json
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,14 @@
"sym": "W",
"color": "light_gray",
"see_cost": 5
},
{
"type": "overmap_terrain",
"id": [ "dm_survivor_forest_camp" ],
"name": "survivor forest camp",
"sym": "+",
"color": "green",
"see_cost": 5,
"flags": [ "REQUIRES_PREDECESSOR" ]
}
]
69 changes: 66 additions & 3 deletions data/mods/Defense_Mode/scenarios.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,22 @@
"name": "Fortified",
"points": 0,
"description": "You do not know who you are, nor do you know why you're here. All you know is that you must fight and defend yourself from the horde.",
"allowed_locs": [ "bar", "hospital", "public_works", "megastore", "mansion" ],
"allowed_locs": [
"sloc_bar",
"sloc_hospital",
"public_works",
"megastore",
"mansion",
"sloc_shelter_a",
"sloc_gun_store",
"survivor_camp",
"sloc_cabin",
"cave",
"sugar_house",
"sloc_bank",
"sloc_pawn_shop",
"sloc_restaurant"
],
"eoc": [ "scenario_defense_mode" ],
"forced_traits": [ "HAS_NEMESIS" ],
"flags": [ "LONE_START" ],
Expand All @@ -19,13 +34,13 @@
},
{
"type": "start_location",
"id": "bar",
"id": "sloc_bar",
"name": "Bar",
"terrain": [ "bar" ]
},
{
"type": "start_location",
"id": "hospital",
"id": "sloc_hospital",
"name": "Hospital",
"terrain": [ "dm_hospital_3" ]
},
Expand All @@ -46,5 +61,53 @@
"id": "mansion",
"name": "Mansion",
"terrain": [ "dm_mansion_e2" ]
},
{
"type": "start_location",
"id": "sloc_gun_store",
"name": "Gun Store",
"terrain": [ "s_gunstore_looted" ]
},
{
"type": "start_location",
"id": "survivor_camp",
"name": "Survivor Camp",
"terrain": [ "dm_survivor_forest_camp" ]
},
{
"type": "start_location",
"id": "cave",
"name": "Cave",
"terrain": [ "cave" ]
},
{
"type": "start_location",
"id": "sugar_house",
"name": "Sugar House",
"terrain": [ "sugar_house" ]
},
{
"type": "start_location",
"id": "motel",
"name": "Motel",
"terrain": [ "motel_twd_1" ]
},
{
"type": "start_location",
"id": "sloc_pawn_shop",
"name": "Pawn Shop",
"terrain": [ "pawn" ]
},
{
"type": "start_location",
"id": "sloc_restaurant",
"name": "Restaurant",
"terrain": [ "s_restaurant" ]
},
{
"type": "start_location",
"id": "sloc_bank",
"name": "Bank",
"terrain": [ "bank" ]
}
]
111 changes: 111 additions & 0 deletions data/mods/Defense_Mode/specials.json
Original file line number Diff line number Diff line change
Expand Up @@ -147,5 +147,116 @@
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "s_gunstore_looted",
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "s_gunstore_looted_north" },
{ "point": [ 0, 0, 1 ], "overmap": "s_gunstore_2ndfloor_north" },
{ "point": [ 0, 0, 2 ], "overmap": "s_gunstore_roof_north" }
],
"locations": [ "field" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "survivor_forest_camp",
"overmaps": [ { "point": [ 0, 0, 0 ], "overmap": "dm_survivor_forest_camp_north" } ],
"locations": [ "forest_center" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "Evac Shelter",
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "shelter_north" },
{ "point": [ 0, 0, -1 ], "overmap": "shelter_under_north" },
{ "point": [ 0, 0, 1 ], "overmap": "shelter_roof_north" }
],
"locations": [ "wilderness" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "Cabin",
"overmaps": [ { "point": [ 0, 0, 0 ], "overmap": "cabin_north" }, { "point": [ 0, 0, 1 ], "overmap": "cabin_roof_north" } ],
"locations": [ "forest" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "Cave",
"overmaps": [ { "point": [ 0, 0, 0 ], "overmap": "cave" }, { "point": [ 0, 0, -1 ], "overmap": "cave_underground" } ],
"locations": [ "forest" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "Sugar House",
"overmaps": [
{ "point": [ 0, -1, 0 ], "overmap": "sugar_house_parking_north" },
{ "point": [ 0, 0, 0 ], "overmap": "sugar_house_north" },
{ "point": [ 0, 0, 1 ], "overmap": "sugar_house_roof_north" }
],
"locations": [ "forest" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "motel-twd",
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "motel_twd_1_north" },
{ "point": [ 1, 0, 0 ], "overmap": "motel_twd_2_north" },
{ "point": [ 0, 0, 1 ], "overmap": "motel_twd_1_f1_north" },
{ "point": [ 1, 0, 1 ], "overmap": "motel_twd_2_f1_north" },
{ "point": [ 0, 0, 2 ], "overmap": "motel_twd_1_f2_north" }
],
"locations": [ "land" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "bank",
"overmaps": [ { "point": [ 0, 0, 0 ], "overmap": "bank_north" }, { "point": [ 0, 0, 1 ], "overmap": "bank_roof_north" } ],
"locations": [ "land" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "pawn_shop",
"overmaps": [ { "point": [ 0, 0, 0 ], "overmap": "pawn_north" }, { "point": [ 0, 0, 1 ], "overmap": "pawn_roof_north" } ],
"locations": [ "land" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
},
{
"type": "overmap_special",
"id": "restraunt",
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "s_restaurant_north" },
{ "point": [ 0, 0, 1 ], "overmap": "s_restaurant_roof_north" }
],
"locations": [ "land" ],
"city_distance": [ 40, -1 ],
"occurrences": [ 100, 100 ],
"flags": [ "DEFENSE_MODE", "GLOBALLY_UNIQUE" ]
}
]
Loading