Skip to content

Commit

Permalink
feat(content,port): port collapsible mop item (#5836)
Browse files Browse the repository at this point in the history
* port collapsible mop, add to item spawn & itemgroups where mop already was defined

* ran json formatter & add co-author

Co-authored-by: ZombieZilla <[email protected]>

* add space to fix build fail

---------

Co-authored-by: ZombieZilla <[email protected]>
  • Loading branch information
shmakota and ZombieZilla authored Dec 27, 2024
1 parent 099aeff commit b5f7b93
Show file tree
Hide file tree
Showing 8 changed files with 34 additions and 8 deletions.
3 changes: 2 additions & 1 deletion data/json/itemgroups/Locations_MapExtras/mansion.json
Original file line number Diff line number Diff line change
Expand Up @@ -1172,7 +1172,8 @@
"subtype": "distribution",
"items": [
[ "broom", 40 ],
[ "mop", 40 ],
[ "mop", 25 ],
[ "mop_folded", 15 ],
{ "item": "ammonia", "prob": 24, "charges-min": 1 },
[ "chem_hydrogen_peroxide", 20 ],
[ "boots_rubber", 20 ],
Expand Down
3 changes: 2 additions & 1 deletion data/json/itemgroups/supplies.json
Original file line number Diff line number Diff line change
Expand Up @@ -488,7 +488,8 @@
[ "laptop", 2 ],
[ "inhaler", 1 ],
[ "mbag", 2 ],
[ "mop", 5 ],
[ "mop", 3 ],
[ "mop_folded", 2 ],
[ "cell_phone", 1 ],
[ "smart_phone", 10 ],
[ "duct_tape", 5 ],
Expand Down
6 changes: 4 additions & 2 deletions data/json/itemgroups/tools.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
"subtype": "distribution",
"items": [
[ "broom", 25 ],
[ "mop", 25 ],
[ "mop", 15 ],
[ "mop_folded", 10 ],
[ "bucket", 10 ],
{ "item": "bag_plastic", "prob": 15, "count": [ 1, 5 ] },
{ "group": "tools_cleaning_small", "prob": 25 }
Expand Down Expand Up @@ -193,7 +194,8 @@
[ "crowbar", 10 ],
[ "pliers", 200 ],
[ "bucket", 50 ],
[ "mop", 100 ],
[ "mop", 60 ],
[ "mop_folded", 40 ],
[ "shovel", 40 ],
[ "hammer_sledge", 10 ],
[ "hammer_sledge_short", 20 ],
Expand Down
17 changes: 17 additions & 0 deletions data/json/items/tool/toiletries.json
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,23 @@
"techniques": [ "WBLOCK_1" ],
"use_action": "MOP"
},
{
"id": "mop_folded",
"type": "TOOL",
"name": { "str": "collapsible mop" },
"description": "A long unwieldy mop with a collapsible handle for convenient transportation. You may use it to clean up any 'mess' you have made.",
"weight": "730 g",
"volume": "760 ml",
"price": "15 USD",
"price_postapoc": "15 cent",
"to_hit": -2,
"bashing": 3,
"material": [ "plastic" ],
"symbol": "/",
"color": "light_gray",
"looks_like": "mop",
"use_action": [ "MOP" ]
},
{
"type": "GENERIC",
"category": "tools",
Expand Down
5 changes: 4 additions & 1 deletion data/json/mapgen/cs_internet_cafe.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@
"V": { "item": "ic_merch_vending", "chance": 100 },
"L": { "item": "cleaning", "chance": 100 }
},
"add": [ { "item": "mop", "x": [ 11, 12 ], "y": [ 17, 20 ], "chance": 2 } ],
"add": [
{ "item": "mop", "x": [ 11, 12 ], "y": [ 17, 20 ], "chance": 1 },
{ "item": "mop_folded", "x": [ 11, 12 ], "y": [ 17, 20 ], "chance": 1 }
],
"place_items": [
{ "item": "ic_merch_vending", "x": 3, "y": 7, "chance": 90 },
{ "item": "ic_merch_vending", "x": 3, "y": 7, "chance": 90 },
Expand Down
3 changes: 2 additions & 1 deletion data/json/mapgen/cs_sex_shop.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@
{ "item": "touristmap", "x": 4, "y": 6, "chance": 10 },
{ "item": "touristmap", "x": 6, "y": 6, "chance": 10 },
{ "item": "syringe", "x": 20, "y": 19, "chance": 5 },
{ "item": "mop", "x": [ 4, 5 ], "y": [ 7, 8 ], "chance": 2 },
{ "item": "mop", "x": [ 4, 5 ], "y": [ 7, 8 ], "chance": 1 },
{ "item": "mop_folded", "x": [ 4, 5 ], "y": [ 7, 8 ], "chance": 1 },
{ "item": "extinguisher", "x": 3, "y": 7, "chance": 5 },
{ "item": "television", "x": 6, "y": 13, "chance": 5 },
{ "item": "television", "x": 7, "y": 13, "chance": 5 }
Expand Down
2 changes: 1 addition & 1 deletion data/json/mapgen/farm_dairy_2.json
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@
{ "item": "human_cooked", "chance": 100 }
],
"?": { "item": "bottle_glass", "chance": 70, "repeat": 6 },
"^": [ { "item": "bucket", "chance": 100 }, { "item": "mop", "chance": 100 } ],
"^": [ { "item": "bucket", "chance": 100 }, { "item": "mop", "chance": 60 }, { "item": "mop_folded", "chance": 40 } ],
"8": { "item": "rennet", "chance": 50, "repeat": 5 },
"A": { "item": "wheel_wood", "chance": 100 },
"C": { "item": "bucket", "chance": 100 },
Expand Down
3 changes: 2 additions & 1 deletion data/json/mapgen/irradiator_1.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
{ "item": "towel", "prob": 20 },
{ "item": "saline", "prob": 20 },
{ "item": "detergent", "prob": 20 },
{ "item": "mop", "prob": 10 },
{ "item": "mop", "prob": 6 },
{ "item": "mop_folded", "prob": 4 },
{ "item": "boots_rubber", "prob": 10 },
{ "item": "gloves_rubber", "prob": 20 }
]
Expand Down

0 comments on commit b5f7b93

Please sign in to comment.