Skip to content

Commit

Permalink
supplydrop bulk crate (#40216)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jerimee authored May 8, 2020
1 parent 153807b commit b04994b
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
19 changes: 19 additions & 0 deletions data/json/itemgroups/military.json
Original file line number Diff line number Diff line change
Expand Up @@ -402,6 +402,25 @@
{ "item": "20x66_inc", "prob": 2 }
]
},
{
"type": "item_group",
"id": "mil_bulk",
"//": "A bulk of uniform goods all of the same type likely found in a shipping crate",
"subtype": "distribution",
"entries": [
{ "item": "mil_mess_kit", "prob": 10, "count": 32 },
{ "item": "voltmeter", "prob": 10, "count": 32 },
{ "item": "drivebelt", "prob": 10, "count": 64 },
{ "item": "grapnel", "prob": 10, "count": 32 },
{ "item": "string_floss", "prob": 5, "count": 128 },
{ "item": "toothbrush_plain", "prob": 5, "count": 128 },
{ "item": "sm_extinguisher", "prob": 5, "count": 16 },
{ "item": "fire_ax", "prob": 5, "count": 16 },
{ "item": "manual_stabbing", "prob": 5, "count": 64 },
{ "item": "manual_rifle", "prob": 5, "count": 64 },
{ "item": "m17", "prob": 3, "count": 32 }
]
},
{
"type": "item_group",
"id": "mil_food",
Expand Down
1 change: 1 addition & 0 deletions data/json/items/generic/bathroom_house.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"name": { "str": "dental floss", "str_pl": "rolls of dental floss" },
"type": "GENERIC",
"description": "Twenty-five yards of finely waxed thread wound up inside a plastic container. Perfect for picking bits of smoked meat out of your teeth. Disassemble to use the thread for something else.",
"weight": "28 g",
"copy-from": "base_toiletries",
"symbol": "~",
"material": [ "plastic", "cotton" ]
Expand Down
2 changes: 2 additions & 0 deletions src/map_extras.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -930,6 +930,8 @@ static bool mx_supplydrop( map &m, const tripoint &/*abs_sub*/ )
std::string item_group;
switch( rng( 1, 10 ) ) {
case 1:
item_group = "mil_bulk";
break;
case 2:
case 3:
case 4:
Expand Down

0 comments on commit b04994b

Please sign in to comment.