Skip to content

Commit 26b423d

Browse files
authored
Add craftable dry batteries (zinc-carbon dry cell) (#54287)
1 parent 0e70699 commit 26b423d

File tree

4 files changed

+190
-0
lines changed

4 files changed

+190
-0
lines changed

data/json/items/ammo.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -882,6 +882,21 @@
882882
"count": 50,
883883
"stack_size": 10
884884
},
885+
{
886+
"type": "AMMO",
887+
"id": "carbon_electrode",
888+
"category": "spare_parts",
889+
"name": { "str": "Carbon electrode rod" },
890+
"description": "This carbon electrode is basically made from wood and sugar, and it actually works.",
891+
"price_postapoc": 50,
892+
"material": [ "charcoal" ],
893+
"ammo_type": "charcoal",
894+
"symbol": "=",
895+
"color": "dark_gray",
896+
"phase": "solid",
897+
"volume": "30 ml",
898+
"weight": "50 g"
899+
},
885900
{
886901
"type": "AMMO",
887902
"id": "cac2powder",

data/json/items/battery.json

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,25 @@
157157
"flags": [ "NO_SALVAGE", "NO_UNLOAD", "NO_RELOAD", "BATTERY_LIGHT" ],
158158
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 300 } } ]
159159
},
160+
{
161+
"id": "light_dry_cell",
162+
"type": "MAGAZINE",
163+
"category": "spare_parts",
164+
"name": { "str": "light dry battery", "str_pl": "light dry batteries" },
165+
"description": "This is a light battery cell, universally compatible with all kinds of small devices. The battery's chemistry doesn't provides high energy capacity, and it cannot be recharged.",
166+
"weight": "20 g",
167+
"volume": "35 ml",
168+
"price_postapoc": 100,
169+
"material": [ "iron", "charcoal" ],
170+
"symbol": "=",
171+
"color": "yellow",
172+
"ammo_type": [ "battery" ],
173+
"count": 100,
174+
"capacity": 100,
175+
"looks_like": "battery",
176+
"flags": [ "NO_SALVAGE", "NO_UNLOAD", "NO_RELOAD", "BATTERY_LIGHT" ],
177+
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 100 } } ]
178+
},
160179
{
161180
"id": "medium_battery_cell",
162181
"type": "MAGAZINE",
@@ -237,6 +256,25 @@
237256
"flags": [ "NO_SALVAGE", "NO_UNLOAD", "NO_RELOAD", "BATTERY_MEDIUM" ],
238257
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 1200 } } ]
239258
},
259+
{
260+
"id": "medium_dry_cell",
261+
"type": "MAGAZINE",
262+
"category": "spare_parts",
263+
"name": { "str": "medium dry battery", "str_pl": "medium dry batteries" },
264+
"description": "This is a medium battery cell, universally compatible with all kinds of appliances and power tools. The battery's chemistry doesn't provides high energy capacity, and it cannot be recharged.",
265+
"weight": "350 g",
266+
"volume": "525 ml",
267+
"price_postapoc": 250,
268+
"material": [ "iron", "charcoal" ],
269+
"symbol": "=",
270+
"color": "yellow",
271+
"ammo_type": [ "battery" ],
272+
"count": 500,
273+
"capacity": 500,
274+
"looks_like": "battery",
275+
"flags": [ "NO_SALVAGE", "NO_UNLOAD", "NO_RELOAD", "BATTERY_MEDIUM" ],
276+
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 500 } } ]
277+
},
240278
{
241279
"id": "heavy_battery_cell",
242280
"type": "MAGAZINE",
@@ -336,5 +374,24 @@
336374
"looks_like": "battery",
337375
"flags": [ "NO_SALVAGE", "NO_UNLOAD", "NO_RELOAD", "BATTERY_HEAVY" ],
338376
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 2500 } } ]
377+
},
378+
{
379+
"id": "heavy_dry_cell",
380+
"type": "MAGAZINE",
381+
"category": "spare_parts",
382+
"name": { "str": "heavy dry battery", "str_pl": "heavy dry batteries" },
383+
"description": "This is a heavy battery cell, universally compatible with all kinds of industrial-grade equipment and large tools. The battery's chemistry doesn't provides high energy capacity, and it cannot be recharged.",
384+
"weight": "900 g",
385+
"volume": "1500 ml",
386+
"price_postapoc": 375,
387+
"material": [ "iron" ],
388+
"symbol": "=",
389+
"color": "yellow",
390+
"ammo_type": [ "battery", "charcoal" ],
391+
"count": 1000,
392+
"capacity": 1000,
393+
"looks_like": "battery",
394+
"flags": [ "NO_SALVAGE", "NO_UNLOAD", "NO_RELOAD", "BATTERY_HEAVY" ],
395+
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 1000 } } ]
339396
}
340397
]

data/json/items/chemicals_and_resources.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -523,6 +523,22 @@
523523
"container": "bottle_plastic_small",
524524
"count": 100
525525
},
526+
{
527+
"type": "AMMO",
528+
"id": "cathod_mix",
529+
"category": "chems",
530+
"price_postapoc": 100,
531+
"name": { "str_sp": "acidic electrolyte paste" },
532+
"symbol": "=",
533+
"color": "dark_gray",
534+
"description": "A moisturized mixture of zinc chloride and manganese dioxide, slightly acidic. It can be used in the production of zinc-carbon batteries.",
535+
"material": [ "powder_nonflam" ],
536+
"volume": "151 ml",
537+
"weight": "500 mg",
538+
"bashing": 1,
539+
"ammo_type": "components",
540+
"count": 1000
541+
},
526542
{
527543
"type": "AMMO",
528544
"id": "chem_potassium_chloride",

data/json/recipes/other/power_supplies.json

Lines changed: 102 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -588,6 +588,7 @@
588588
[ [ "chem_manganese_dioxide", 29 ] ],
589589
[ [ "zinc_metal", 2 ] ],
590590
[ [ "chem_potassium_hydroxide", 7 ] ],
591+
[ [ "duct_tape", 1 ] ],
591592
[ [ "water_clean", 1 ] ],
592593
[ [ "steel_chunk", 1 ], [ "scrap", 2 ] ]
593594
]
@@ -609,10 +610,32 @@
609610
[ [ "chem_manganese_dioxide", 87 ] ],
610611
[ [ "zinc_metal", 6 ] ],
611612
[ [ "chem_potassium_hydroxide", 20 ] ],
613+
[ [ "duct_tape", 5 ] ],
612614
[ [ "water_clean", 3 ] ],
613615
[ [ "steel_chunk", 3 ], [ "scrap", 6 ] ]
614616
]
615617
},
618+
{
619+
"type": "recipe",
620+
"activity_level": "MODERATE_EXERCISE",
621+
"result": "light_dry_cell",
622+
"category": "CC_ELECTRONIC",
623+
"subcategory": "CSC_ELECTRONIC_TOOLS",
624+
"skill_used": "chemistry",
625+
"skills_required": [ "electronics", 2 ],
626+
"difficulty": 3,
627+
"time": "1 h",
628+
"autolearn": true,
629+
"using": [ [ "blacksmithing_standard", 1 ] ],
630+
"tools": [ [ [ "crucible", -1 ], [ "crucible_clay", -1 ] ] ],
631+
"components": [
632+
[ [ "cathod_mix", 166 ] ],
633+
[ [ "zinc_metal", 6 ] ],
634+
[ [ "carbon_electrode", 1 ] ],
635+
[ [ "duct_tape", 5 ] ],
636+
[ [ "steel_chunk", 3 ], [ "scrap", 6 ] ]
637+
]
638+
},
616639
{
617640
"type": "recipe",
618641
"activity_level": "MODERATE_EXERCISE",
@@ -630,10 +653,32 @@
630653
[ [ "chem_manganese_dioxide", 348 ] ],
631654
[ [ "zinc_metal", 24 ] ],
632655
[ [ "chem_potassium_hydroxide", 82 ] ],
656+
[ [ "duct_tape", 20 ] ],
633657
[ [ "water_clean", 12 ] ],
634658
[ [ "steel_chunk", 12 ], [ "scrap", 24 ] ]
635659
]
636660
},
661+
{
662+
"type": "recipe",
663+
"activity_level": "MODERATE_EXERCISE",
664+
"result": "medium_dry_cell",
665+
"category": "CC_ELECTRONIC",
666+
"subcategory": "CSC_ELECTRONIC_TOOLS",
667+
"skill_used": "chemistry",
668+
"skills_required": [ "electronics", 2 ],
669+
"difficulty": 3,
670+
"time": "1 h 20 m",
671+
"autolearn": true,
672+
"using": [ [ "blacksmithing_standard", 1 ] ],
673+
"tools": [ [ [ "crucible", -1 ], [ "crucible_clay", -1 ] ] ],
674+
"components": [
675+
[ [ "cathod_mix", 664 ] ],
676+
[ [ "zinc_metal", 24 ] ],
677+
[ [ "carbon_electrode", 4 ] ],
678+
[ [ "duct_tape", 20 ] ],
679+
[ [ "steel_chunk", 12 ], [ "scrap", 24 ] ]
680+
]
681+
},
637682
{
638683
"type": "recipe",
639684
"activity_level": "MODERATE_EXERCISE",
@@ -651,8 +696,65 @@
651696
[ [ "chem_manganese_dioxide", 725 ] ],
652697
[ [ "zinc_metal", 50 ] ],
653698
[ [ "chem_potassium_hydroxide", 170 ] ],
699+
[ [ "duct_tape", 40 ] ],
654700
[ [ "water_clean", 25 ] ],
655701
[ [ "steel_chunk", 25 ], [ "scrap", 50 ] ]
656702
]
703+
},
704+
{
705+
"type": "recipe",
706+
"activity_level": "MODERATE_EXERCISE",
707+
"result": "heavy_dry_cell",
708+
"category": "CC_ELECTRONIC",
709+
"subcategory": "CSC_ELECTRONIC_TOOLS",
710+
"skill_used": "chemistry",
711+
"skills_required": [ "electronics", 2 ],
712+
"difficulty": 3,
713+
"time": "1 h 45 m",
714+
"autolearn": true,
715+
"using": [ [ "blacksmithing_standard", 1 ] ],
716+
"tools": [ [ [ "crucible", -1 ], [ "crucible_clay", -1 ] ] ],
717+
"components": [
718+
[ [ "cathod_mix", 1328 ] ],
719+
[ [ "zinc_metal", 50 ] ],
720+
[ [ "carbon_electrode", 8 ] ],
721+
[ [ "duct_tape", 40 ] ],
722+
[ [ "steel_chunk", 25 ], [ "scrap", 50 ] ]
723+
]
724+
},
725+
{
726+
"result": "carbon_electrode",
727+
"type": "recipe",
728+
"activity_level": "LIGHT_EXERCISE",
729+
"category": "CC_OTHER",
730+
"subcategory": "CSC_OTHER_MATERIALS",
731+
"skill_used": "fabrication",
732+
"difficulty": 2,
733+
"skills_required": [ "chemistry", 2 ],
734+
"time": "20 m",
735+
"autolearn": true,
736+
"tools": [
737+
[ [ "mortar_pestle", -1 ] ],
738+
[ [ "tongs", -1 ] ],
739+
[ [ "surface_heat", 10, "LIST" ] ],
740+
[ [ "paper", -1 ], [ "aluminum_foil", -1 ] ]
741+
],
742+
"qualities": [ { "id": "BOIL", "level": 2 }, { "id": "CONTAIN", "level": 1 } ],
743+
"components": [ [ [ "water_clean", 1 ] ], [ [ "sugar", 2 ] ], [ [ "charcoal", 3 ] ] ]
744+
},
745+
{
746+
"result": "cathod_mix",
747+
"type": "recipe",
748+
"activity_level": "LIGHT_EXERCISE",
749+
"category": "CC_OTHER",
750+
"subcategory": "CSC_OTHER_MATERIALS",
751+
"skill_used": "chemistry",
752+
"charges": 1000,
753+
"difficulty": 2,
754+
"time": "10 m",
755+
"autolearn": true,
756+
"tools": [ [ [ "mortar_pestle", -1 ] ] ],
757+
"qualities": [ { "id": "CONTAIN", "level": 1 } ],
758+
"components": [ [ [ "chem_muriatic_acid", 1 ] ], [ [ "chem_zinc_powder", 200 ] ], [ [ "chem_manganese_dioxide", 262 ] ] ]
657759
}
658760
]

0 commit comments

Comments
 (0)