Skip to content

Commit 38de542

Browse files
Aftershock: Ruins of Orion I (#82770)
* Ruins of orion * Apply suggestions from code review Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Update mapgen.cpp Revert "Update mapgen.cpp" This reverts commit 6ed38aa. Update mapgen.cpp * Update src/mapgen.cpp Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> * Fix json omissions --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
1 parent 9d4c7f3 commit 38de542

File tree

11 files changed

+292
-35
lines changed

11 files changed

+292
-35
lines changed

data/mods/aftershock_exoplanet/itemgroups/loot_corpse_groups.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,25 @@
2121
{ "group": "afs_any_hand_grenade", "prob": 1 }
2222
]
2323
},
24+
{
25+
"id": "afs_ancient_corpse",
26+
"type": "item_group",
27+
"subtype": "collection",
28+
"//": "Someone who died concurrently with the Discontinuity or very shortly after. No survival gear.",
29+
"entries": [
30+
{
31+
"distribution": [
32+
{ "item": "afs_corpse_old", "prob": 70 },
33+
{
34+
"collection": [ { "item": "bone_human", "count": [ 5, 8 ], "prob": 100 }, { "item": "skull_human", "prob": 95 } ],
35+
"prob": 30
36+
}
37+
]
38+
},
39+
{ "item": "afs_tattered_garment", "prob": 90 },
40+
{ "item": "afs_glass_AR_device", "prob": 5 }
41+
]
42+
},
2443
{
2544
"type": "item_group",
2645
"id": "afs_survivor_weapon_set",

data/mods/aftershock_exoplanet/itemgroups/weapons/armories.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,24 @@
1010
{ "group": "afs_grenade_armory", "prob": 1 }
1111
]
1212
},
13+
{
14+
"id": "afs_ruin_armory",
15+
"type": "item_group",
16+
"subtype": "distribution",
17+
"//": "For ruins open to the elements, replaces some weapons with broken versions.",
18+
"items": [
19+
{ "group": "afs_general_armory", "prob": 2 },
20+
{
21+
"distribution": [
22+
{ "item": "afs_ruined_laser_pistol", "prob": 10 },
23+
{ "item": "afs_ruined_laser_rifle", "prob": 10 },
24+
{ "item": "afs_ruined_rifle", "prob": 15 },
25+
{ "item": "afs_ruined_magazine", "prob": 5 }
26+
],
27+
"prob": 3
28+
}
29+
]
30+
},
1331
{
1432
"//": "A group for Aftershock gun vendors.",
1533
"id": "afs_civilian_armory",

data/mods/aftershock_exoplanet/items/items.json

Lines changed: 70 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,12 +47,22 @@
4747
"category": "other",
4848
"description": "Time and the elements have reduced them to a mound of filthy ribbons.",
4949
"weight": "1175 g",
50-
"volume": "3 L",
50+
"volume": "30 L",
5151
"price": "0 cent",
5252
"price_postapoc": "0 cent",
5353
"to_hit": -1,
5454
"material": [ "cotton" ],
5555
"symbol": "[",
56+
"pocket_data": [
57+
{
58+
"pocket_type": "CONTAINER",
59+
"rigid": true,
60+
"open_container": true,
61+
"max_contains_volume": "10 L",
62+
"max_contains_weight": "20 kg",
63+
"moves": 400
64+
}
65+
],
5666
"looks_like": "cotton_patchwork",
5767
"color": "brown"
5868
},
@@ -264,6 +274,65 @@
264274
"material": [ "copper", "lead", "steel" ],
265275
"category": "spare_parts"
266276
},
277+
{
278+
"id": "afs_ruined_laser_pistol",
279+
"type": "ITEM",
280+
"name": { "str": "ruined energy pistol" },
281+
"description": "A mass of corroded metal and plastic, identifiable as a pistol only due to its general shape. Some of its components might still be salvageable.",
282+
"weight": "380 g",
283+
"volume": "750 ml",
284+
"price": "7 USD",
285+
"price_postapoc": "7 USD",
286+
"material": [ "qt_steel", "plastic" ],
287+
"symbol": "(",
288+
"color": "light_gray",
289+
"category": "spare_parts"
290+
},
291+
{
292+
"id": "afs_ruined_laser_rifle",
293+
"type": "ITEM",
294+
"name": { "str": "ruined energy rifle" },
295+
"description": "Pitted and corroded, this weapon is barely recognizable as a rifle. Some of its components might still be salvageable.",
296+
"weight": "2640 g",
297+
"volume": "3817 ml",
298+
"longest_side": "511 mm",
299+
"price": "7 USD",
300+
"price_postapoc": "7 USD",
301+
"material": [ "qt_steel", "plastic" ],
302+
"symbol": "(",
303+
"color": "light_gray",
304+
"category": "spare_parts"
305+
},
306+
{
307+
"id": "afs_ruined_rifle",
308+
"type": "ITEM",
309+
"name": { "str": "ruined long gun" },
310+
"description": "Not much of this weapon remains, at most it could be used to bar a door.",
311+
"weight": "2640 g",
312+
"volume": "3817 ml",
313+
"longest_side": "511 mm",
314+
"price": "7 USD",
315+
"price_postapoc": "7 USD",
316+
"material": [ "qt_steel", "plastic" ],
317+
"symbol": "(",
318+
"color": "light_gray",
319+
"category": "spare_parts"
320+
},
321+
{
322+
"id": "afs_ruined_magazine",
323+
"type": "ITEM",
324+
"name": { "str": "ruined magazine" },
325+
"description": "A small box of heavily corroded metal. Its more fragile internal components wasted away long ago.",
326+
"weight": "2640 g",
327+
"volume": "3817 ml",
328+
"longest_side": "511 mm",
329+
"price": "7 USD",
330+
"price_postapoc": "7 USD",
331+
"material": [ "qt_steel", "plastic" ],
332+
"symbol": "(",
333+
"color": "light_gray",
334+
"category": "spare_parts"
335+
},
267336
{
268337
"id": "afs_glass_device",
269338
"type": "ITEM",

data/mods/aftershock_exoplanet/maps/furniture_and_terrain/terrain_groundxeno.json

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@
3636
"move_cost": 2,
3737
"flags": [ "TRANSPARENT", "DIGGABLE", "SNOW_SOURCE", "FLAT", "ROUGH" ],
3838
"bash": {
39-
"str_min": 50,
40-
"str_max": 100,
39+
"str_min": 800,
40+
"str_max": 1000,
4141
"sound": "splosh!",
4242
"sound_fail": "fweet!",
4343
"ter_set": "t_null",
@@ -183,7 +183,7 @@
183183
"str_max": 100,
184184
"sound": "splosh!",
185185
"sound_fail": "fweet!",
186-
"ter_set": "t_deaddirt",
186+
"ter_set": "t_ice",
187187
"str_min_supported": 100
188188
}
189189
},
@@ -202,7 +202,26 @@
202202
"str_max": 100,
203203
"sound": "splosh!",
204204
"sound_fail": "fweet!",
205-
"ter_set": "t_deaddirt",
205+
"ter_set": "t_ice",
206+
"str_min_supported": 100
207+
}
208+
},
209+
{
210+
"type": "terrain",
211+
"id": "t_snow_metal_floor",
212+
"name": "snow",
213+
"looks_like": "t_snow",
214+
"description": "A patch of thick snow, very cold.",
215+
"symbol": ".",
216+
"color": "light_blue",
217+
"move_cost": 2,
218+
"flags": [ "TRANSPARENT", "SNOW_SOURCE", "FLAT", "ROUGH" ],
219+
"bash": {
220+
"str_min": 8,
221+
"str_max": 100,
222+
"sound": "splosh!",
223+
"sound_fail": "fweet!",
224+
"ter_set": "t_metal_floor",
206225
"str_min_supported": 100
207226
}
208227
},

data/mods/aftershock_exoplanet/maps/mapgen/formless_ruins/aeolian_formless_ruin.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,10 @@
11
[
2+
{
3+
"type": "mapgen",
4+
"om_terrain": [ "afs_ruins_dynamic" ],
5+
"weight": 3,
6+
"object": { "predecessor_mapgen": "field" }
7+
},
28
{
39
"type": "mapgen",
410
"om_terrain": [ "afs_formless_ruins_aeolian" ],

data/mods/aftershock_exoplanet/maps/mapgen/formless_ruins/formless_ruins_dynamic.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -756,7 +756,7 @@
756756
"items": {
757757
"W": [
758758
{ "item": "afs_experimental_combat_gear", "chance": 10, "repeat": [ 1, 2 ] },
759-
{ "item": "afs_general_armory", "chance": 50, "repeat": [ 1, 2 ] }
759+
{ "item": "afs_ruin_armory", "chance": 50, "repeat": [ 3, 6 ] }
760760
],
761761
"C": [
762762
{ "item": "afs_robotics_scrapgroup", "chance": 20, "repeat": [ 1, 2 ] },
@@ -791,7 +791,7 @@
791791
"furniture": { "C": "f_counter", "W": "f_rack" },
792792
"items": {
793793
"W": [
794-
{ "item": "afs_general_armory", "chance": 80, "repeat": [ 1, 2 ] },
794+
{ "item": "afs_ruin_armory", "chance": 80, "repeat": [ 3, 6 ] },
795795
{ "item": "afs_any_energy_mag", "chance": 50, "repeat": [ 1, 2 ] }
796796
],
797797
"C": [

0 commit comments

Comments
 (0)