Skip to content

Commit

Permalink
Adding a welding store (#77279)
Browse files Browse the repository at this point in the history
* First draft

* Add the store

* Make it spawn

* Final touches
  • Loading branch information
Milopetilo authored Oct 24, 2024
1 parent 2d90bfe commit 2d445e3
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 0 deletions.
75 changes: 75 additions & 0 deletions data/json/mapgen/store/s_weldingstore.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
[
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "s_weldingstore" ],
"weight": 300,
"object": {
"fill_ter": "t_concrete",
"rows": [
",____;____;____---ccccc$",
"%____;____;____---ccccc$",
",_Á__;_Á__;_Á__---ccccc$",
",____;____;____---ccccc$",
",____;____;____---ccccc$",
",____;____;____---ccccc$",
"%#oo###ooo##oo##*#cctcc$",
",#sssssfffssss #ccccc$",
",# #ccccc$",
",#= occccc$",
",of sss sss occccc$",
",#f s#s s#s #ccccc$",
",#f sss sss #ccccc$",
"%#f *ccccc$",
",of ddHdD#FFFcc$",
",# d h #FFFcc$",
",#pppp==SSSSd #$$$£$$",
",#||||||||||||||+#CCCcc$",
"[#l b|fffffrrrrr #CCccc$",
",#l b|fff== #Ccccc$",
",#l + *cccgg$",
",######oo####oo###$$$$$$",
",,,,,,,,%,,,[,4,,%,,,,,,",
"%,[,,%,,,,,,,,,[,,,,,,,,"
],
"palettes": [ "welding_store_palette", "parametrized_walls_palette" ],
"place_monster": [ { "monster": "mon_zombie_technician", "x": [ 10, 15 ], "y": [ 19, 20 ], "repeat": [ 1, 3 ] } ]
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "s_weldingstore_roof" ],
"weight": 300,
"object": {
"fill_ter": "t_flat_roof",
"rows": [
" ",
" ",
" ",
" ",
" ",
" ",
" -----------------------",
" -.....................-",
" -.....................-",
" -.....................-",
" -....1.........&......-",
" -.....................-",
" -.....................-",
" -.....................-",
" -.....................-",
" -.....................-",
" -.....................-",
" -....1................-",
" -.....................-",
" -.....................-",
" -.....................-",
" -------------5---------",
" ",
" "
],
"palettes": [ "roof_palette" ]
}
}
]
73 changes: 73 additions & 0 deletions data/json/mapgen_palettes/welding_store.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,73 @@
[
{
"type": "palette",
"id": "welding_store_palette",
"terrain": {
"_": "t_pavement",
";": "t_pavement_y",
"-": "t_sidewalk",
"c": "t_thconc_floor_no_roof",
"o": "t_window",
"s": "t_concrete",
"t": "t_thconc_floor_no_roof",
"4": "t_gutter_downspout",
"$": "t_privacy_fence",
"£": "t_privacy_fencegate_c",
"f": "t_concrete",
"Á": "t_pavement",
"F": "t_thconc_floor_no_roof",
"p": "t_concrete",
"S": "t_concrete",
"b": "t_concrete",
"l": "t_concrete",
"C": "t_thconc_floor_no_roof",
"g": "t_thconc_floor_no_roof",
"r": "t_concrete",
"*": [
[ "t_door_locked_peep", 2 ],
"t_door_locked_alarm",
[ "t_door_locked", 10 ],
[ "t_door_elocked_peep", 4 ],
"t_door_elocked_alarm",
[ "t_door_elocked", 15 ],
"t_door_c",
[ "t_door_o", 2 ]
],
"+": [ [ "t_door_c", 5 ], [ "t_door_o", 5 ], [ "t_door_locked_interior", 1 ] ],
",": "t_region_groundcover",
"%": [ "t_region_shrub", "t_region_shrub_fruit", "t_region_shrub_decorative" ],
"[": [ [ "t_region_tree_fruit", 2 ], [ "t_region_tree_nut", 2 ], "t_region_tree_shade" ]
},
"furniture": {
"b": "f_bench",
"d": "f_counter",
"g": "f_dumpster",
"h": "f_chair",
"l": "f_locker",
"p": "f_hd_compressor_unit",
"r": "f_rack",
"s": "f_rack",
"C": [ [ "f_crate_o", 1 ], [ "f_crate_c", 1 ] ],
"D": "f_counter_gate_c",
"H": "f_counter",
"S": "f_rack"
},
"item": {
"f": { "item": "weldtank", "chance": 65, "repeat": [ 0, 3 ] },
"F": { "item": "weldtank", "chance": 50, "repeat": [ 0, 3 ] }
},
"items": {
"H": { "item": "cash_register_random" },
"s": { "item": "SUS_welding_gear", "chance": 65, "repeat": [ 0, 4 ] },
"C": { "item": "SUS_welding_gear", "chance": 40, "repeat": [ 0, 8 ] },
"r": { "item": "SUS_welding_gear", "chance": 50, "repeat": [ 4, 7 ] },
"S": { "item": "tools_common_small", "chance": 65, "repeat": [ 0, 8 ] },
"l": { "item": "clothing_work_set", "chance": 45, "repeat": [ 0, 1 ] }
},
"vehicles": {
"=": { "vehicle": "welding_cart", "chance": 35, "rotation": 0 },
"t": { "vehicle": "extended_pickup", "chance": 35, "rotation": 270 },
"Á": { "vehicle": "suburban_home_compact", "chance": 35, "rotation": 270 }
}
}
]
9 changes: 9 additions & 0 deletions data/json/overmap/multitile_city_buildings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1585,6 +1585,15 @@
{ "point": [ 0, 0, 2 ], "overmap": "s_gun_roof_4_north" }
]
},
{
"type": "city_building",
"id": "s_weldingstore",
"locations": [ "land" ],
"overmaps": [
{ "point": [ 0, 0, 0 ], "overmap": "s_weldingstore_north" },
{ "point": [ 0, 0, 1 ], "overmap": "s_weldingstore_roof_north" }
]
},
{
"type": "city_building",
"id": "s_electronicstore",
Expand Down
14 changes: 14 additions & 0 deletions data/json/overmap/overmap_terrain/overmap_terrain_commercial.json
Original file line number Diff line number Diff line change
Expand Up @@ -294,6 +294,20 @@
"name": "hardware store roof",
"color": "cyan"
},
{
"type": "overmap_terrain",
"id": [ "s_weldingstore" ],
"copy-from": "generic_city_building",
"name": "welding store",
"color": "light_blue"
},
{
"type": "overmap_terrain",
"id": [ "s_weldingstore_roof" ],
"copy-from": "generic_city_building",
"name": "welding store roof",
"color": "light_blue"
},
{
"type": "overmap_terrain",
"id": [ "s_electronics", "s_electronics_1", "s_electronicstore" ],
Expand Down
1 change: 1 addition & 0 deletions data/json/regional_map_settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -1056,6 +1056,7 @@
"s_pizza_parlor_1": 400,
"bar": 400,
"bar_1": 400,
"s_weldingstore": 200,
"s_electronics": 400,
"s_electronics_1": 400,
"s_electronicstore": 400,
Expand Down

0 comments on commit 2d445e3

Please sign in to comment.