Skip to content

Commit 6cfc519

Browse files
Merge pull request #82637 from BalthazarArgall/OilPressAppliance
Turn the electric oil press into an appliance
1 parent 846b1fe commit 6cfc519

File tree

12 files changed

+129
-89
lines changed

12 files changed

+129
-89
lines changed

data/json/construction/appliances.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -899,5 +899,17 @@
899899
"pre_special": "check_empty",
900900
"post_special": "done_appliance",
901901
"activity_level": "LIGHT_EXERCISE"
902+
},
903+
{
904+
"type": "construction",
905+
"id": "app_oil_press_industrial",
906+
"group": "place_oil_press_industrial",
907+
"category": "APPLIANCE",
908+
"required_skills": [ [ "fabrication", 0 ] ],
909+
"time": "5 m",
910+
"components": [ [ [ "oil_press_electric", 1 ] ] ],
911+
"pre_special": "check_empty",
912+
"post_special": "done_appliance",
913+
"activity_level": "LIGHT_EXERCISE"
902914
}
903915
]

data/json/construction_group.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2124,5 +2124,10 @@
21242124
"type": "construction_group",
21252125
"id": "place_deep_fryer",
21262126
"name": "Place a deep fryer"
2127+
},
2128+
{
2129+
"type": "construction_group",
2130+
"id": "place_oil_press_industrial",
2131+
"name": "Place an industrial oil press"
21272132
}
21282133
]

data/json/furniture_and_terrain/appliances.json

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1141,5 +1141,35 @@
11411141
{ "item": "element", "count": [ 1, 2 ] },
11421142
{ "item": "cable", "charges": [ 1, 2 ] }
11431143
]
1144+
},
1145+
{
1146+
"id": "ap_oil_press_industrial",
1147+
"type": "vehicle_part",
1148+
"categories": [ "utility" ],
1149+
"name": "industrial oil press",
1150+
"description": "A heavy-duty press used to create vegetable oil from nuts or seeds.",
1151+
"looks_like": "f_machinery_light",
1152+
"variants": [ { "symbols": "Y", "symbols_broken": "#" } ],
1153+
"color": "green",
1154+
"flags": [ "OBSTACLE", "APPLIANCE" ],
1155+
"pseudo_tools": [ { "id": "fake_oil_press_industrial" } ],
1156+
"item": "oil_press_electric",
1157+
"damage_modifier": 10,
1158+
"damage_reduction": { "all": 30 },
1159+
"durability": 80,
1160+
"breaks_into": [
1161+
{ "item": "funnel", "count": [ 0, 1 ] },
1162+
{ "item": "frame", "count": [ 0, 1 ] },
1163+
{ "item": "sheet_metal", "count": [ 0, 2 ] },
1164+
{ "item": "element", "count": [ 0, 2 ] },
1165+
{ "item": "crude_heating_element", "count": [ 0, 3 ] },
1166+
{ "item": "motor_tiny", "count": [ 0, 1 ] },
1167+
{ "item": "cable", "count": [ 0, 10 ] },
1168+
{ "item": "power_supply", "count": [ 0, 1 ] },
1169+
{ "item": "pipe_fittings", "count": [ 0, 2 ] },
1170+
{ "item": "pipe", "count": [ 0, 2 ] },
1171+
{ "item": "wire_mesh", "count": [ 0, 1 ] },
1172+
{ "item": "metal_tank_little", "count": [ 0, 1 ] }
1173+
]
11441174
}
11451175
]

data/json/furniture_and_terrain/furniture-tools.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1690,5 +1690,29 @@
16901690
"items": [ { "item": "chain", "count": 1 }, { "item": "block_and_tackle", "count": 1 }, { "item": "nuts_bolts", "charges": 2 } ]
16911691
},
16921692
"crafting_pseudo_item": "fake_lift_heavy"
1693+
},
1694+
{
1695+
"type": "furniture",
1696+
"id": "f_oil_press_industrial",
1697+
"name": "industrial oil press",
1698+
"looks_like": "f_machinery_light",
1699+
"description": "A heavy-duty press used to create vegetable oil from nuts or seeds. You could take this down and use it for your own purposes if you wanted.",
1700+
"symbol": "Y",
1701+
"color": "green",
1702+
"move_cost_mod": -1,
1703+
"coverage": 40,
1704+
"required_str": 12,
1705+
"flags": [
1706+
"TRANSPARENT",
1707+
"FLAMMABLE_HARD",
1708+
"CONTAINER",
1709+
"PLACE_ITEM",
1710+
"BLOCKSDOOR",
1711+
"MOUNTABLE",
1712+
"LIQUIDCONT",
1713+
"EASY_DECONSTRUCT"
1714+
],
1715+
"examine_action": { "type": "appliance_convert", "furn_set": "f_null", "item": "oil_press_electric" },
1716+
"item": "oil_press_electric"
16931717
}
16941718
]

data/json/items/appliances.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,5 +417,21 @@
417417
"longest_side": "115 cm",
418418
"volume": "368 L",
419419
"weight": "86 kg"
420+
},
421+
{
422+
"type": "ITEM",
423+
"id": "oil_press_electric",
424+
"//": "based on YZS-68 oil press: http://www.oilpressmachine.com/6yl-68-oil-press.html",
425+
"name": { "str": "disconnected industrial oil press", "str_pl": "disconnected industrial oil presses" },
426+
"description": "A heavy-duty press used to create vegetable oil from nuts or seeds. Needs to be placed and plugged into a power source.",
427+
"looks_like": "f_machinery_light",
428+
"symbol": "Y",
429+
"color": "green",
430+
"material": [ "iron" ],
431+
"longest_side": "88 cm",
432+
"volume": "370 L",
433+
"weight": "140 kg",
434+
"price": "1 kUSD",
435+
"price_postapoc": "10 USD"
420436
}
421437
]

data/json/items/fake.json

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -527,5 +527,12 @@
527527
"type": "ITEM",
528528
"subtypes": [ "TOOL" ],
529529
"name": { "str": "deep fryer" }
530+
},
531+
{
532+
"id": "fake_oil_press_industrial",
533+
"copy-from": "fake_appliance_tool",
534+
"type": "ITEM",
535+
"subtypes": [ "TOOL" ],
536+
"name": { "str": "industrial oil press", "str_pl": "industrial oil presses" }
530537
}
531538
]

data/json/items/vehicle/utilities.json

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -228,24 +228,5 @@
228228
"price": "30 USD",
229229
"price_postapoc": "50 cent",
230230
"melee_damage": { "bash": 2 }
231-
},
232-
{
233-
"type": "ITEM",
234-
"subtypes": [ "TOOL" ],
235-
"id": "oil_press_electric",
236-
"name": { "str": "electric oil press", "str_pl": "electric oil presses" },
237-
"//": "based on YZS-68C oil press",
238-
"description": "A heavy-duty press used to create vegetable oil from nuts or seeds. It needs to be mounted on a vehicle due to its high power draw.",
239-
"weight": "140 kg",
240-
"volume": "370 L",
241-
"longest_side": "88 cm",
242-
"material": [ "lc_steel", "hc_steel" ],
243-
"category": "veh_parts",
244-
"color": "green",
245-
"symbol": "Y",
246-
"use_action": [ { "type": "link_up", "cable_length": 3, "charge_rate": "5500 W" } ],
247-
"price": "1 kUSD",
248-
"price_postapoc": "10 USD",
249-
"tool_ammo": "battery"
250231
}
251232
]

data/json/recipes/food/drink_other.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"//": "capacity: 50kg/hour * 40% efficiency = 20 L/hour -> 45s / 250 mL",
5454
"time": "45 s",
5555
"//2": "45 s * 5.5kW = 250 kJ",
56-
"tools": [ [ [ "oil_press_electric", 250 ] ] ],
56+
"tools": [ [ [ "fake_oil_press_industrial", 250 ] ] ],
5757
"autolearn": true,
5858
"qualities": [ { "id": "CONTAIN", "level": 1 }, { "id": "BOIL", "level": 1 } ],
5959
"proficiencies": [ { "proficiency": "prof_food_prep" } ],

data/json/recipes/recipe_appliance.json

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,5 +224,38 @@
224224
"qualities": [ { "id": "SCREW", "level": 1 } ],
225225
"proficiencies": [ { "proficiency": "prof_elec_soldering" }, { "proficiency": "prof_appliance_repair" } ],
226226
"components": [ [ [ "frame_wood", 1 ] ], [ [ "battery_charger", 1 ] ] ]
227+
},
228+
{
229+
"result": "oil_press_electric",
230+
"type": "recipe",
231+
"activity_level": "MODERATE_EXERCISE",
232+
"reversible": true,
233+
"skill_used": "fabrication",
234+
"difficulty": 4,
235+
"time": "90 m",
236+
"autolearn": true,
237+
"category": "CC_OTHER",
238+
"subcategory": "CSC_OTHER_PARTS",
239+
"skills_required": [ [ "electronics", 2 ] ],
240+
"using": [ [ "soldering_standard", 5 ] ],
241+
"qualities": [
242+
{ "id": "HAMMER", "level": 2 },
243+
{ "id": "SAW_M", "level": 1 },
244+
{ "id": "SCREW", "level": 1 },
245+
{ "id": "WRENCH", "level": 1 }
246+
],
247+
"components": [
248+
[ [ "funnel", 1 ], [ "metal_funnel", 1 ] ],
249+
[ [ "frame", 1 ] ],
250+
[ [ "sheet_metal", 4 ] ],
251+
[ [ "element", 4 ], [ "crude_heating_element", 6 ] ],
252+
[ [ "motor_tiny", 1 ] ],
253+
[ [ "cable", 10 ] ],
254+
[ [ "power_supply", 1 ] ],
255+
[ [ "pipe_fittings", 2 ] ],
256+
[ [ "pipe", 2 ] ],
257+
[ [ "wire_mesh", 1 ], [ "cotton_patchwork", 1 ] ],
258+
[ [ "metal_tank_little", 1 ], [ "jerrycan_big", 1 ], [ "jerrycan", 1 ] ]
259+
]
227260
}
228261
]

data/json/recipes/recipe_vehicle.json

Lines changed: 0 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1382,39 +1382,6 @@
13821382
],
13831383
"components": [ [ [ "seatbelt", 5 ] ], [ [ "nuts_bolts", 1 ] ] ]
13841384
},
1385-
{
1386-
"result": "oil_press_electric",
1387-
"type": "recipe",
1388-
"activity_level": "MODERATE_EXERCISE",
1389-
"reversible": true,
1390-
"skill_used": "fabrication",
1391-
"difficulty": 4,
1392-
"time": "90 m",
1393-
"autolearn": true,
1394-
"category": "CC_OTHER",
1395-
"subcategory": "CSC_OTHER_PARTS",
1396-
"skills_required": [ [ "electronics", 2 ] ],
1397-
"using": [ [ "soldering_standard", 5 ] ],
1398-
"qualities": [
1399-
{ "id": "HAMMER", "level": 2 },
1400-
{ "id": "SAW_M", "level": 1 },
1401-
{ "id": "SCREW", "level": 1 },
1402-
{ "id": "WRENCH", "level": 1 }
1403-
],
1404-
"components": [
1405-
[ [ "funnel", 1 ], [ "metal_funnel", 1 ] ],
1406-
[ [ "frame", 1 ] ],
1407-
[ [ "sheet_metal", 4 ] ],
1408-
[ [ "element", 4 ], [ "crude_heating_element", 6 ] ],
1409-
[ [ "motor_tiny", 1 ] ],
1410-
[ [ "cable", 10 ] ],
1411-
[ [ "power_supply", 1 ] ],
1412-
[ [ "pipe_fittings", 2 ] ],
1413-
[ [ "pipe", 2 ] ],
1414-
[ [ "wire_mesh", 1 ], [ "cotton_patchwork", 1 ] ],
1415-
[ [ "metal_tank_little", 1 ], [ "jerrycan_big", 1 ], [ "jerrycan", 1 ] ]
1416-
]
1417-
},
14181385
{
14191386
"type": "recipe",
14201387
"activity_level": "BRISK_EXERCISE",

0 commit comments

Comments
 (0)