Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/master' into recipe-realism
Browse files Browse the repository at this point in the history
  • Loading branch information
ashGlaw committed Feb 12, 2020
2 parents 4467848 + ab75d68 commit 54cc2f5
Show file tree
Hide file tree
Showing 25 changed files with 500 additions and 232 deletions.
203 changes: 143 additions & 60 deletions data/changelog.txt

Large diffs are not rendered by default.

19 changes: 8 additions & 11 deletions data/json/items/ammo.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"ammo_type": "battery",
"count": 100,
"//2": "1 battery is 1 kJ of energy. 40 batteries is an alkaline C-cell.",
"fuel": { "energy": 1.0 }
"fuel": { "energy": 1 }
},
{
"type": "TOOL",
Expand Down Expand Up @@ -221,7 +221,7 @@
"ammo_type": "plutonium",
"count": 5,
"effects": [ "COOKOFF", "NEVER_MISFIRES" ],
"fuel": { "energy": 10.0 }
"fuel": { "energy": 10 }
},
{
"type": "AMMO",
Expand Down Expand Up @@ -472,8 +472,8 @@
"flags": [ "UNRECOVERABLE" ],
"fuel": {
"//": "Compressed gaseous hydrogen has 9.2 MJ/L. This stuff has a very high energy density but is also bulky and explosive.",
"energy": 4000.0,
"explosion_data": { "chance_hot": 2, "chance_cold": 2, "factor": 1.0, "fiery": true, "size_factor": 0.15 }
"energy": 4000,
"explosion_data": { "chance_hot": 2, "chance_cold": 2, "factor": 1, "fiery": true, "size_factor": 0.15 }
}
},
{
Expand Down Expand Up @@ -856,7 +856,7 @@
"ammo_type": "charcoal",
"count": 250,
"stack_size": 10,
"fuel": { "energy": 30.0 }
"fuel": { "energy": 30 }
},
{
"type": "AMMO",
Expand Down Expand Up @@ -1001,8 +1001,7 @@
"category": "spare_parts",
"price": 12000,
"//": "This seems like the larger medical tank, not an instant-use model with mask attached",
"name": "oxygen",
"name_plural": "oxygen",
"name": { "str": "oxygen", "str_pl": "oxygen" },
"symbol": "=",
"color": "light_gray",
"description": "A canister of oxygen.",
Expand Down Expand Up @@ -1117,8 +1116,7 @@
"id": "nitrox",
"category": "chems",
"price": 500,
"name": "nitrox",
"name_plural": "nitrox",
"name": { "str": "nitrox", "str_pl": "nitrox" },
"symbol": "=",
"color": "white",
"container": "bottle_plastic",
Expand Down Expand Up @@ -1172,8 +1170,7 @@
"type": "AMMO",
"id": "metal_RPG_die",
"price": 50,
"name": "metal RPG die",
"name_plural": "metal RPG dice",
"name": { "str": "metal RPG die", "str_pl": "metal RPG dice" },
"symbol": "=",
"color": "light_gray",
"looks_like": "marble",
Expand Down
15 changes: 5 additions & 10 deletions data/json/items/chemicals_and_resources.json
Original file line number Diff line number Diff line change
Expand Up @@ -72,8 +72,7 @@
"id": "material_limestone",
"category": "spare_parts",
"price": 50,
"name": "limestone",
"name_plural": "limestone",
"name": { "str": "limestone", "str_pl": "limestone" },
"symbol": "=",
"color": "dark_gray",
"description": "A handful of small chunks of limestone. Useful for experiments at science fairs, but pretty useless as ammo. Maybe something could be crafted from this stuff…",
Expand Down Expand Up @@ -519,8 +518,7 @@
"id": "chem_manganese_dioxide",
"category": "chems",
"price": 600,
"name": "manganese dioxide",
"name_plural": "manganese dioxide",
"name": { "str": "manganese dioxide", "str_pl": "manganese dioxide" },
"symbol": "=",
"color": "white",
"description": "A handful of manganese dioxide powder. Occurring naturally in the mineral pyrolusite, it is used commercially in the production of alkaline and zinc-carbon batteries.",
Expand Down Expand Up @@ -631,8 +629,7 @@
"id": "chem_nitric_acid",
"category": "chems",
"price": 300,
"name": "nitric acid",
"name_plural": "nitric acid",
"name": { "str": "nitric acid", "str_pl": "nitric acid" },
"symbol": "=",
"color": "white",
"flags": [ "DROP_ACTION_ONLY_IF_LIQUID" ],
Expand Down Expand Up @@ -755,8 +752,7 @@
"id": "material_niter",
"category": "spare_parts",
"price": 75,
"name": "niter",
"name_plural": "niter",
"name": { "str": "niter", "str_pl": "niter" },
"symbol": "*",
"color": "white",
"description": "A large crystal of niter, the mineral form of potassium nitrate. It can be processed into saltpeter.",
Expand Down Expand Up @@ -873,8 +869,7 @@
"id": "chem_match_head_powder",
"category": "chems",
"price": 50,
"name": "match head powder",
"name_plural": "match head powder",
"name": { "str": "match head powder", "str_pl": "match head powder" },
"symbol": "=",
"color": "light_red",
"description": "Some match head powder from match heads, similar to black gunpowder but a bit weaker. It can be used in crafting explosives and fuses when other more suitable candidates are less available.",
Expand Down
9 changes: 3 additions & 6 deletions data/json/items/fuel.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,7 @@
{
"id": "lamp_oil",
"type": "AMMO",
"name": "lamp oil",
"name_plural": "lamp oil",
"name": { "str": "lamp oil", "str_pl": "lamp oil" },
"description": "A thin and clean-burning oil made for use in oil lamps.",
"category": "fuel",
"weight": "1 g",
Expand Down Expand Up @@ -141,8 +140,7 @@
{
"id": "motor_oil",
"type": "AMMO",
"name": "motor oil",
"name_plural": "motor oil",
"name": { "str": "motor oil", "str_pl": "motor oil" },
"description": "An oil made for use in car engines.",
"category": "fuel",
"weight": "1 g",
Expand Down Expand Up @@ -170,8 +168,7 @@
{
"id": "napalm",
"type": "AMMO",
"name": "napalm",
"name_plural": "napalm",
"name": { "str": "napalm", "str_pl": "napalm" },
"description": "This is gasoline mixed with some other components to make it stick to the surface and increase burning temperature, meant to be used with a flamethrower.",
"category": "fuel",
"weight": "1 g",
Expand Down
6 changes: 2 additions & 4 deletions data/json/items/resources/metal.json
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,7 @@
"id": "lead",
"type": "AMMO",
"category": "spare_parts",
"name": "lead",
"name_plural": "lead",
"name": { "str": "lead", "str_pl": "lead" },
"description": "A soft dull metal known since ancient times. Due to its malleability it has a wide variety of uses including the manufacture of ammunition.",
"weight": "3 g",
"//": "Density 11.34g/cm³ ~ 2.8kg/250ml @ stack 1000 = 3g/unit",
Expand All @@ -179,8 +178,7 @@
"id": "magnesium",
"type": "AMMO",
"category": "spare_parts",
"name": "magnesium powder",
"name_plural": "magnesium powder",
"name": { "str": "magnesium powder", "str_pl": "magnesium powder" },
"description": "A gray powder composed of the highly flammable alkaline earth metal magnesium. Useful for constructing flares and similar items.",
"weight": "1120 mg",
"//": "Weight should be 1.12g because magnesium is 64% less dense than aluminum (1.74g/cm³ vs 2.70g/cm³), at 250ml aluminium powder has a weight of ~0.176kg at 250ml, assuming same particle size => magnesium powder has a weight of ~0.112kg at 250ml",
Expand Down
9 changes: 3 additions & 6 deletions data/json/items/resources/tailoring.json
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,7 @@
"id": "scrap_leather",
"copy-from": "scrap_cotton",
"type": "AMMO",
"name": "leather scraps",
"name_plural": "leather scraps",
"name": { "str": "leather scraps", "str_pl": "leather scraps" },
"description": "Oddly-shaped smallish bits of leather, waste material from tailoring projects. Not useful for much and usually disposed of.",
"price": 0,
"material": "leather"
Expand All @@ -63,8 +62,7 @@
"id": "scrap_lycra",
"copy-from": "scrap_cotton",
"type": "AMMO",
"name": "lycra scraps",
"name_plural": "lycra scraps",
"name": { "str": "lycra scraps", "str_pl": "lycra scraps" },
"description": "Oddly-shaped smallish bits of lycra, waste material from tailoring projects. Not useful for much and usually disposed of.",
"price": 0,
"material": "lycra"
Expand All @@ -73,8 +71,7 @@
"id": "scrap_neoprene",
"copy-from": "scrap_cotton",
"type": "AMMO",
"name": "neoprene scraps",
"name_plural": "neoprene scraps",
"name": { "str": "neoprene scraps", "str_pl": "neoprene scraps" },
"description": "Oddly-shaped smallish bits of neoprene, waste material from tailoring projects. Not useful for much and usually disposed of.",
"price": 0,
"material": "neoprene"
Expand Down
163 changes: 82 additions & 81 deletions data/json/mapgen/basement/basement_bionic.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,31 +8,32 @@
"fill_ter": "t_rock_floor",
"rows": [
" ",
" ",
" ",
" ",
" ",
" ",
" |---------- ",
" |?..i|..LL| ",
" |/...+L...| ",
" |.ccc|L...| ",
"|-------------+---------",
"|{{{{{|bbbbbb|...rrccrr|",
"|.....|s....b|ff.......|",
"|___..|s.t..b|...cccccc|",
"|.....|a....b|.........|",
"|^..!.............s.t..|",
"|.................s.t..|",
"|%..@.............s.t..|",
"|................|-----|",
"|......|+-|++|...|&...i|",
"|......|.W|..|...+....C|",
"|..}...|.F|.<|...|.cc.*|",
"------------------------",
" |----------| ",
" |...___....| ",
" |..........| ",
" |..~~~~~~..| ",
" |---------|..~~~~~~..| ",
" |...__..i|L..~~~~~~..| ",
" |?.......|...~~~~~~..| ",
" |/.......+L..........| ",
" |.ccc.ccc|LL...___...| ",
" |------------+-------| ",
" |{{{{|bbbbbb|...rrccr| ",
" |....|s....b|ff......| ",
" |__..|s.t..b|...ccccc| ",
" |....|a....b|........| ",
" |^.!.............s..t| ",
" |................s..t| ",
" |%[email protected]..t| ",
" |...............|----| ",
" |.....|+-|++|...|&..i| ",
" |.....|.W|..|...+...C| ",
" |.}...|.F|.<|...|.cc*| ",
" ---------------------- ",
" "
],
"palettes": [ "basement_game" ],
"terrain": { "~": "t_water_pool" },
"furniture": {
"}": "f_pinball_machine",
"*": "f_shower",
Expand All @@ -51,64 +52,64 @@
},
"liquids": { "W": { "liquid": "water_clean", "amount": [ 0, 100 ] } },
"place_loot": [
{ "group": "alcohol", "x": [ 14, 15 ], "y": 6, "chance": 96, "repeat": [ 1, 2 ] },
{ "group": "fridgesnacks", "x": [ 14, 15 ], "y": 6, "chance": 80, "repeat": [ 1, 2 ] },
{ "group": "homebooks", "x": [ 7, 12 ], "y": 5, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "homebooks", "x": 12, "y": [ 6, 8 ], "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "magazines", "x": 20, "y": [ 10, 12 ], "chance": 30 },
{ "group": "magazines", "x": 9, "y": 7, "chance": 30 },
{ "group": "snacks", "x": [ 17, 22 ], "y": 5, "chance": 40, "repeat": [ 1, 2 ] },
{ "group": "snacks", "x": [ 17, 22 ], "y": 7, "chance": 40, "repeat": [ 1, 2 ] },
{ "group": "softdrugs", "x": 22, "y": 14, "chance": 75, "repeat": [ 1, 2 ] },
{ "group": "cleaning", "x": 11, "y": [ 2, 3 ], "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "cleaning", "x": [ 13, 14 ], "y": 1, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "surgery", "x": [ 8, 9 ], "y": 3, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "bionics_common", "x": 7, "y": 3 },
{ "item": "anesthetic_kit", "x": 7, "y": 3 },
{ "item": "television", "x": 22, "y": 10, "chance": 95 },
{ "item": "soap", "x": 19, "y": 15, "chance": 80 },
{ "item": "towel", "x": 20, "y": 15, "chance": 80 },
{ "item": "towel", "x": 2, "y": 7, "chance": 60 },
{ "item": "stereo", "x": 1, "y": 7, "chance": 50 }
{ "group": "alcohol", "x": [ 14, 15 ], "y": 12, "chance": 96, "repeat": [ 1, 2 ] },
{ "group": "fridgesnacks", "x": [ 14, 15 ], "y": 12, "chance": 80, "repeat": [ 1, 2 ] },
{ "group": "homebooks", "x": [ 7, 12 ], "y": 11, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "homebooks", "x": 12, "y": [ 12, 14 ], "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "magazines", "x": 21, "y": [ 15, 17 ], "chance": 30 },
{ "group": "magazines", "x": 9, "y": 12, "chance": 30 },
{ "group": "snacks", "x": [ 16, 21 ], "y": 11, "chance": 40, "repeat": [ 1, 2 ] },
{ "group": "snacks", "x": [ 16, 21 ], "y": 13, "chance": 40, "repeat": [ 1, 2 ] },
{ "group": "softdrugs", "x": 21, "y": 20, "chance": 75, "repeat": [ 1, 2 ] },
{ "group": "cleaning", "x": 11, "y": 5, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "cleaning", "x": [ 11, 12 ], "y": 8, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "surgery", "x": [ 8, 9 ], "y": 9, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "bionics_common", "x": 7, "y": 9 },
{ "item": "anesthetic_kit", "x": 7, "y": 9 },
{ "item": "television", "x": 21, "y": 16, "chance": 95 },
{ "item": "soap", "x": 19, "y": 21, "chance": 80 },
{ "item": "towel", "x": 20, "y": 21, "chance": 80 },
{ "item": "towel", "x": 3, "y": 13, "chance": 60 },
{ "item": "stereo", "x": 2, "y": 13, "chance": 50 }
],
"place_monster": [ { "monster": "mon_broken_cyborg", "x": 14, "y": 3, "chance": 100 } ]
}
},
{
"type": "mapgen",
"method": "json",
"om_terrain": [ "basement" ],
"om_terrain": [ "basement_bionic_decoy" ],
"weight": 100,
"object": {
"rotation": [ 0, 3 ],
"fill_ter": "t_rock_floor",
"rows": [
" ",
" ",
" ",
" ",
" ",
" ",
" ------ ",
" |..LL| ",
" |L...| ",
" |L...| ",
"|-------------+---------",
"|{{{{{|bbbbbb|...rrccrr|",
"|.....|s....b|ff.......|",
"|___..|s.t..b|...cccccc|",
"|.....|a....b|.........|",
"|^..!.............s.t..|",
"|.................s.t..|",
"|%..@.............s.t..|",
"|................|-----|",
"|......|+-|++|...|&...i|",
"|......|.W|..|...+....C|",
"|..}...|.F|<<|...|.cc.*|",
"------------------------",
" |----------| ",
" |...___....| ",
" |..........| ",
" |..~~~~~~..| ",
" |---------|..~~~~~~..| ",
" |*|*|*|cc|L..~~~~~~..| ",
" |+|+|+|..|L..~~~~~~..| ",
" |........+...........| ",
" |cc&c&c&c|LL...___...| ",
" |------------+-------| ",
" |{{{{|bbbbbb|...rrccr| ",
" |....|s....b|ff......| ",
" |__..|s.t..b|...ccccc| ",
" |....|a....b|........| ",
" |^.!.............s..t| ",
" |................s..t| ",
" |%[email protected]..t| ",
" |...............|----| ",
" |.....|+-|++|...|&..i| ",
" |.....|.W|..|...+...C| ",
" |.}...|.F|.<|...|.cc*| ",
" ---------------------- ",
" "
],
"palettes": [ "basement_game" ],
"terrain": { "~": "t_water_pool" },
"furniture": {
"}": "f_pinball_machine",
"*": "f_shower",
Expand All @@ -125,22 +126,22 @@
},
"liquids": { "W": { "liquid": "water_clean", "amount": [ 0, 100 ] } },
"place_loot": [
{ "group": "alcohol", "x": [ 14, 15 ], "y": 6, "chance": 96, "repeat": [ 1, 2 ] },
{ "group": "fridgesnacks", "x": [ 14, 15 ], "y": 6, "chance": 80, "repeat": [ 1, 2 ] },
{ "group": "homebooks", "x": [ 7, 12 ], "y": 5, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "homebooks", "x": 12, "y": [ 6, 8 ], "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "magazines", "x": 20, "y": [ 10, 12 ], "chance": 30 },
{ "group": "magazines", "x": 9, "y": 7, "chance": 30 },
{ "group": "snacks", "x": [ 17, 22 ], "y": 5, "chance": 40, "repeat": [ 1, 2 ] },
{ "group": "snacks", "x": [ 17, 22 ], "y": 7, "chance": 40, "repeat": [ 1, 2 ] },
{ "group": "softdrugs", "x": 22, "y": 14, "chance": 75, "repeat": [ 1, 2 ] },
{ "group": "cleaning", "x": 11, "y": [ 2, 3 ], "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "cleaning", "x": [ 13, 14 ], "y": 1, "chance": 70, "repeat": [ 1, 2 ] },
{ "item": "television", "x": 22, "y": 10, "chance": 95 },
{ "item": "soap", "x": 19, "y": 15, "chance": 80 },
{ "item": "towel", "x": 20, "y": 15, "chance": 80 },
{ "item": "towel", "x": 2, "y": 7, "chance": 60 },
{ "item": "stereo", "x": 1, "y": 7, "chance": 50 }
{ "group": "alcohol", "x": [ 14, 15 ], "y": 12, "chance": 96, "repeat": [ 1, 2 ] },
{ "group": "fridgesnacks", "x": [ 14, 15 ], "y": 12, "chance": 80, "repeat": [ 1, 2 ] },
{ "group": "homebooks", "x": [ 7, 12 ], "y": 11, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "homebooks", "x": 12, "y": [ 12, 14 ], "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "magazines", "x": 21, "y": [ 15, 17 ], "chance": 30 },
{ "group": "magazines", "x": 9, "y": 12, "chance": 30 },
{ "group": "snacks", "x": [ 16, 21 ], "y": 11, "chance": 40, "repeat": [ 1, 2 ] },
{ "group": "snacks", "x": [ 16, 21 ], "y": 13, "chance": 40, "repeat": [ 1, 2 ] },
{ "group": "softdrugs", "x": 21, "y": 20, "chance": 75, "repeat": [ 1, 2 ] },
{ "group": "cleaning", "x": 11, "y": 5, "chance": 70, "repeat": [ 1, 2 ] },
{ "group": "cleaning", "x": [ 11, 12 ], "y": 8, "chance": 70, "repeat": [ 1, 2 ] },
{ "item": "television", "x": 21, "y": 16, "chance": 95 },
{ "item": "soap", "x": 19, "y": 21, "chance": 80 },
{ "item": "towel", "x": 20, "y": 21, "chance": 80 },
{ "item": "towel", "x": 3, "y": 13, "chance": 60 },
{ "item": "stereo", "x": 2, "y": 13, "chance": 50 }
],
"place_monsters": [ { "monster": "GROUP_ZOMBIE", "x": [ 5, 17 ], "y": [ 9, 11 ], "chance": 2 } ]
}
Expand Down
Loading

0 comments on commit 54cc2f5

Please sign in to comment.