Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[READY] Battery overhaul 2 electric boogaloo #29651

Merged
Merged
Show file tree
Hide file tree
Changes from 46 commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
7c6ef21
Merge pull request #10 from CleverRaven/master
Inglonias Dec 27, 2018
76c1024
Merge pull request #11 from CleverRaven/master
Inglonias Dec 27, 2018
1862742
Merge pull request #12 from CleverRaven/master
Inglonias Jan 8, 2019
fd7f52d
Merge pull request #13 from CleverRaven/master
Inglonias Jan 9, 2019
0ec6e75
Merge pull request #14 from CleverRaven/master
Inglonias Feb 3, 2019
83fbb7e
Merge pull request #15 from CleverRaven/master
Inglonias Apr 13, 2019
ae73b57
Merge pull request #16 from CleverRaven/master
Inglonias Apr 15, 2019
5523226
Recreated what I did with the mod
Inglonias Apr 16, 2019
7387368
Added back the battery ammo entries
Inglonias Apr 16, 2019
66bef38
Finished altering base game files
Inglonias Apr 16, 2019
70298ac
Added mod to help existing games migrate
Inglonias Apr 16, 2019
cc4e0ff
Removed a stray curly brace from gear.json
Inglonias Apr 16, 2019
526bb2f
Fixed a typo with UPS in tools.json
Inglonias Apr 16, 2019
10e1296
Fixing some of the more egregious load errors
Inglonias Apr 16, 2019
f3ef676
Fixed remaining load errors
Inglonias Apr 16, 2019
4680183
Added categories to new battery cells
Inglonias Apr 16, 2019
b92c54f
Fixed lightstrip behavior (I hope)
Inglonias Apr 17, 2019
7e3421d
Lint ammo.json
Inglonias Apr 18, 2019
ff023e7
Merge branch 'battery_overhaul_2_electric_boogaloo' of https://github…
Inglonias Apr 18, 2019
8be66ab
Linted everything I swear
Inglonias Apr 18, 2019
e594741
Fixed lightstrips again
Inglonias Apr 18, 2019
71c761e
Removed NO_RELOAD flag from batteries
Inglonias Apr 18, 2019
7216d5d
Changed battery name back to "battery"
Inglonias Apr 18, 2019
f843e27
Ultra-light battery is now much smaller
Inglonias Apr 19, 2019
ecf09f8
Updated description on recharge_station
Inglonias Apr 19, 2019
e353fa6
Merge branch 'master' into battery_overhaul_2_electric_boogaloo
Inglonias Apr 19, 2019
be6e1e9
Re-removed stuff from item_groups.json
Inglonias Apr 19, 2019
9dbab58
Re-removed "plumber_gear" itemgroup
Inglonias Apr 19, 2019
91b5821
Removed "battery" replacing it with new itemgroups
Inglonias Apr 19, 2019
7cb22cd
Adjusted weight and volume of heavy battery cells
Inglonias Apr 19, 2019
15ddfb8
De-duplicated "mischw" and "hardware_bulk" groups
Inglonias Apr 19, 2019
bb27afd
Merge branch 'master' into battery_overhaul_2_electric_boogaloo
Inglonias Apr 19, 2019
89ec9ac
First attempt at fixing crafting tests
Inglonias Apr 21, 2019
e38c22f
Merge branch 'battery_overhaul_2_electric_boogaloo' of https://github…
Inglonias Apr 21, 2019
9fc948e
Merge branch 'master' into battery_overhaul_2_electric_boogaloo
Inglonias Apr 21, 2019
44658b5
Fixed broken syntax
Inglonias Apr 21, 2019
a8262fb
More syntax errors corrected
Inglonias Apr 21, 2019
ee14ebf
Revert crafting_test changes
Inglonias Apr 21, 2019
f8b6a77
Made recharge_station spawn more
Inglonias Apr 21, 2019
57a79f6
Fixed failing crafting_tests
Inglonias Apr 21, 2019
63866fa
Removed "initial_charges" from all battery powered tools, as it cause…
Inglonias Apr 21, 2019
e0fcbca
Decoupled initial charge from batteries
Inglonias Apr 21, 2019
3fb57e6
Recharge station stuff
Inglonias Apr 21, 2019
361464b
Linted tools.json
Inglonias Apr 21, 2019
aa63a4a
Linted itemgroups/ammo.json
Inglonias Apr 21, 2019
3eb2bd7
Adjusted a few more item groups
Inglonias Apr 21, 2019
d9e0686
Added more batteries to more tools in more places
Inglonias Apr 22, 2019
f705ad4
Adjusted cell phones
Inglonias Apr 22, 2019
5218f1e
Gave the mechanic a battery to start
Inglonias Apr 22, 2019
90e75c3
Updated included mods
Inglonias Apr 22, 2019
3769069
Update professions.json
Inglonias Apr 22, 2019
481a86b
Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA…
Inglonias Apr 22, 2019
cdb6b79
Whoops, missed a file!
Inglonias Apr 23, 2019
2e4d934
Linted item_groups.json
Inglonias Apr 23, 2019
5e0eb87
No really, linted item_groups.json
Inglonias Apr 23, 2019
7cec8f5
Linted professions.json
Inglonias Apr 23, 2019
2406546
Linted afs_weapons.json
Inglonias Apr 23, 2019
c886f1f
Fixed json issues in salvaged robots (my fault)
Inglonias Apr 23, 2019
9a20075
Fixed afs__recipes.json errors I made
Inglonias Apr 23, 2019
9b1956c
Made "battery" item weightless
Inglonias Apr 23, 2019
f0dccc2
TRADER_AVOID on battery item
Inglonias Apr 23, 2019
c58de15
Linted and fixed ALL the things
Inglonias Apr 23, 2019
4d0ed40
Merge branch 'master' of https://github.com/CleverRaven/Cataclysm-DDA…
Inglonias Apr 23, 2019
7feb323
Gave batteries their mass back
Inglonias Apr 23, 2019
71f3fb1
Merge branch 'master' into battery_overhaul_2_electric_boogaloo
Inglonias Apr 24, 2019
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
52 changes: 27 additions & 25 deletions data/json/item_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,8 @@
{
"type": "item_group",
"id": "livingroom",
"ammo": 50,
"magazine": 100,
"items": [
[ "rootbeer", 65 ],
[ "mag_computer", 35 ],
Expand Down Expand Up @@ -878,7 +880,7 @@
[ "banjo", 5 ],
[ "ukulele", 15 ],
[ "gobag", 5 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "bb", 8 ],
[ "bbgun", 10 ],
[ "fan", 10 ],
Expand Down Expand Up @@ -1514,7 +1516,7 @@
[ "ecig", 10 ],
[ "advanced_ecig", 8 ],
[ "nicotine_liquid", 8 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "l_enforcer_45", 4 ],
[ "l_sp_45", 3 ],
[ "l_mp_45", 2 ],
Expand Down Expand Up @@ -1915,7 +1917,7 @@
[ "amplifier", 8 ],
[ "mag_electronics", 15 ],
[ "antenna", 18 ],
[ "battery", 50 ],
{ "group": "ammo_any_batteries_full", "prob": 50 },
[ "soldering_iron", 70 ],
[ "solder_wire", 70 ],
[ "solar_cell", 5 ],
Expand Down Expand Up @@ -2698,6 +2700,8 @@
{
"type": "item_group",
"id": "winter",
"ammo": 50,
"magazine": 100,
"items": [
[ "coat_winter", 50 ],
[ "peacoat", 30 ],
Expand Down Expand Up @@ -3226,7 +3230,7 @@
[ "rope_6", 5 ],
[ "rope_30", 2 ],
[ "duct_tape", 10 ],
[ "battery", 15 ],
{ "group": "ammo_pocket_batteries_full", "prob": 15 },
[ "matches", 10 ],
[ "gum", 10 ],
[ "cable", 5 ],
Expand Down Expand Up @@ -3516,7 +3520,7 @@
[ "briefcase", 40 ],
[ "purse", 40 ],
[ "mbag", 20 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries", "prob": 50 },
[ "mag_news", 35 ],
[ "manual_business", 40 ],
[ "textbook_business", 12 ],
Expand Down Expand Up @@ -3595,7 +3599,7 @@
[ "briefcase", 40 ],
[ "purse", 40 ],
[ "mbag", 20 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries", "prob": 50 },
[ "mag_news", 35 ],
[ "manual_business", 40 ],
[ "textbook_business", 12 ],
Expand Down Expand Up @@ -3685,7 +3689,7 @@
[ "glasses_eye", 30 ],
[ "contacts", 30 ],
[ "radio", 100 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "umbrella", 50 ],
[ "teleumbrella", 20 ],
[ "mag_barter", 10 ],
Expand Down Expand Up @@ -3713,7 +3717,7 @@
[ "glasses_reading", 90 ],
[ "purse", 40 ],
[ "mbag", 20 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "mag_news", 35 ],
[ "file", 20 ],
[ "manual_computers", 20 ],
Expand Down Expand Up @@ -4567,7 +4571,7 @@
[ "backpack", 38 ],
[ "backpack_leather", 8 ],
[ "slingpack", 8 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "novel_scifi", 20 ],
[ "novel_drama", 40 ],
[ "mag_dodge", 20 ],
Expand Down Expand Up @@ -5062,14 +5066,13 @@
[ "mask_dust", 65 ],
[ "glasses_safety", 40 ],
[ "goggles_welding", 70 ],
[ "battery", 50 ],
{ "group": "ammo_any_batteries_full", "prob": 50 },
[ "plut_cell", 10 ],
[ "manual_electronics", 20 ],
[ "textbook_electronics", 6 ],
[ "radio_book", 16 ],
[ "advanced_electronics", 6 ],
[ "small_lcd_screen", 20 ],
[ "battery_compartment", 20 ],
[ "double_plutonium_core", 2 ],
[ "battery_ups", 15 ],
[ "cell_phone", 15 ],
Expand Down Expand Up @@ -5140,7 +5143,7 @@
[ "purse", 40 ],
[ "mbag", 20 ],
[ "fanny", 10 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "bb", 8 ],
[ "bbgun", 10 ],
[ "fan", 10 ],
Expand Down Expand Up @@ -6013,7 +6016,7 @@
[ "hat_hard_hooded", 25 ],
[ "wearable_light", 5 ],
[ "ear_plugs", 50 ],
[ "battery", 50 ],
{ "group": "ammo_any_batteries_full", "prob": 50 },
[ "flashlight", 40 ],
[ "boots_rubber", 20 ],
[ "toolbox", 1 ],
Expand Down Expand Up @@ -6061,7 +6064,7 @@
[ "slingpack", 19 ],
[ "briefcase", 20 ],
[ "backpack_leather", 18 ],
[ "battery", 50 ],
{ "group": "ammo_any_batteries", "prob": 50 },
[ "flashlight", 40 ],
[ "heavy_flashlight", 10 ],
[ "pickaxe", 1 ],
Expand Down Expand Up @@ -6134,7 +6137,7 @@
[ "camera_pro", 2 ],
[ "screwdriver", 40 ],
[ "screwdriver_set", 10 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "file", 30 ],
[ "mag_porn", 20 ],
[ "mag_tv", 40 ],
Expand Down Expand Up @@ -6538,7 +6541,7 @@
[ "kevlar_plate", 10 ],
[ "ceramic_armor", 15 ],
[ "motor", 2 ],
[ "battery", 50 ],
{ "group": "ammo_heavy_batteries_full", "prob": 50 },
[ "plut_cell", 10 ]
]
},
Expand Down Expand Up @@ -6684,7 +6687,7 @@
[ "mask_gas", 10 ],
[ "helmet_army", 40 ],
[ "helmet_liner", 10 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "plut_cell", 10 ],
[ "m249", 1 ],
[ "m240", 1 ],
Expand Down Expand Up @@ -6991,7 +6994,6 @@
[ "eyedrops", 20 ],
[ "adderall", 10 ],
[ "id_science", 2 ],
[ "battery_compartment", 5 ],
[ "double_plutonium_core", 1 ],
[ "cleansuit", 5 ],
[ "laptop", 10 ],
Expand Down Expand Up @@ -7315,7 +7317,7 @@
[ "crackpipe", 37 ],
[ "lsd", 10 ],
[ "chemistry_set", 50 ],
[ "battery", 70 ],
{ "group": "ammo_pocket_batteries_full", "prob": 70 },
[ "flashlight", 40 ],
[ "chem_acetone", 40 ],
[ "chem_hexamine", 15 ]
Expand Down Expand Up @@ -7417,7 +7419,7 @@
[ "mintpatties", 20 ],
[ "electrohack", 3 ],
[ "usb_drive", 5 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "file", 10 ],
[ "manual_computers", 20 ],
[ "textbook_computer", 8 ],
Expand Down Expand Up @@ -7587,7 +7589,7 @@
[ "UPS_off", 5 ],
[ "adv_UPS_off", 2 ],
[ "emer_blanket", 5 ],
[ "battery", 10 ],
{ "group": "ammo_pocket_batteries_full", "prob": 50 },
[ "tool_belt", 5 ],
[ "oxygen_tank", 15 ],
[ "fireman_belt", 15 ],
Expand Down Expand Up @@ -8485,7 +8487,7 @@
"items": [
[ "jumpsuit", 90 ],
[ "mask_filter", 10 ],
[ "battery", 10 ],
{ "group": "ammo_pocket_batteries_full", "prob": 10 },
{ "item": "radio", "prob": 10, "charges-min": 10, "charges-max": 95 },
[ "boots_combat", 20 ],
{ "item": "bandages", "prob": 10, "charges-min": 1, "charges-max": 3 },
Expand Down Expand Up @@ -8525,7 +8527,7 @@
[ "winter_jacket_army", 20 ],
[ "winter_gloves_army", 20 ],
[ "army_top", 70 ],
[ "battery", 40 ],
{ "group": "ammo_pocket_batteries_full", "prob": 40 },
{ "item": "radio", "prob": 10, "charges-min": 10, "charges-max": 95 },
[ "boots_combat", 50 ],
{ "item": "bandages", "prob": 10, "charges-min": 1, "charges-max": 3 },
Expand Down Expand Up @@ -9062,7 +9064,7 @@
"id": "recycle_battery",
"type": "item_group",
"items": [
{ "item": "battery", "prob": 70, "charges-min": 0, "charges-max": 30 },
{ "group": "ammo_any_batteries", "prob": 70 },
[ "storage_battery", 25 ],
[ "medium_storage_battery", 35 ],
[ "small_storage_battery", 45 ],
Expand Down Expand Up @@ -9206,7 +9208,7 @@
[ "duct_tape", 25 ],
[ "flashlight", 25 ],
[ "thread", 20 ],
[ "battery", 25 ],
{ "group": "ammo_pocket_batteries_full", "prob": 25 },
[ "superglue", 25 ],
[ "candle", 25 ],
[ "hammer", 20 ],
Expand Down
78 changes: 78 additions & 0 deletions data/json/itemgroups/ammo.json
Original file line number Diff line number Diff line change
Expand Up @@ -377,5 +377,83 @@
{ "item": "9x18mm_casing", "prob": 80, "count": 20 },
{ "item": "shot_hull", "prob": 100, "count": 20 }
]
},
{
"type": "item_group",
"id": "ammo_light_batteries",
"items": [
{ "item": "light_battery_cell", "prob": 50, "charges-min": 0, "charges-max": 100 },
{ "item": "light_minus_battery_cell", "prob": 30, "charges-min": 0, "charges-max": 50 },
{ "item": "light_plus_battery_cell", "prob": 20, "charges-min": 0, "charges-max": 150 }
]
},
{
"type": "item_group",
"id": "ammo_light_batteries_full",
"items": [
{ "item": "light_battery_cell", "prob": 50, "charges-min": 100, "charges-max": 100 },
{ "item": "light_minus_battery_cell", "prob": 30, "charges-min": 50, "charges-max": 50 },
{ "item": "light_plus_battery_cell", "prob": 20, "charges-min": 150, "charges-max": 150 }
]
},
{
"type": "item_group",
"id": "ammo_medium_batteries",
"items": [
{ "item": "medium_battery_cell", "prob": 80, "charges-min": 0, "charges-max": 500 },
{ "item": "medium_plus_battery_cell", "prob": 20, "charges-min": 0, "charges-max": 600 }
]
},
{
"type": "item_group",
"id": "ammo_medium_batteries_full",
"items": [
{ "item": "medium_battery_cell", "prob": 80, "charges-min": 500, "charges-max": 500 },
{ "item": "medium_plus_battery_cell", "prob": 20, "charges-min": 600, "charges-max": 600 }
]
},
{
"type": "item_group",
"id": "ammo_heavy_batteries",
"items": [
{ "item": "heavy_battery_cell", "prob": 80, "charges-min": 0, "charges-max": 1000 },
{ "item": "heavy_plus_battery_cell", "prob": 20, "charges-min": 0, "charges-max": 1250 }
]
},
{
"type": "item_group",
"id": "ammo_heavy_batteries_full",
"items": [
{ "item": "heavy_battery_cell", "prob": 80, "charges-min": 1000, "charges-max": 1000 },
{ "item": "heavy_plus_battery_cell", "prob": 20, "charges-min": 1250, "charges-max": 1250 }
]
},
{
"type": "item_group",
"id": "ammo_any_batteries_full",
"items": [
{ "group": "ammo_light_batteries_full", "prob": 5 },
{ "group": "ammo_medium_batteries_full", "prob": 5 },
{ "group": "ammo_heavy_batteries_full", "prob": 5 }
]
},
{
"type": "item_group",
"id": "ammo_any_batteries",
"items": [
{ "group": "ammo_light_batteries", "prob": 5 },
{ "group": "ammo_medium_batteries", "prob": 5 },
{ "group": "ammo_heavy_batteries", "prob": 5 }
]
},
{
"type": "item_group",
"id": "ammo_pocket_batteries",
"items": [ { "group": "ammo_light_batteries", "prob": 10 }, { "group": "ammo_medium_batteries", "prob": 1 } ]
},
{
"type": "item_group",
"id": "ammo_pocket_batteries_full",
"items": [ { "group": "ammo_light_batteries_full", "prob": 5 }, { "group": "ammo_medium_batteries_full", "prob": 5 } ]
}
]
2 changes: 2 additions & 0 deletions data/json/itemgroups/collections_domestic.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
{
"type": "item_group",
"id": "home_hw",
"ammo": 50,
"magazine": 100,
"items": [
{ "group": "tools_home", "prob": 150 },
{ "group": "tools_general", "prob": 30 },
Expand Down
2 changes: 1 addition & 1 deletion data/json/itemgroups/defense_mode.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@
{ "item": "hose" },
{ "item": "pot" },
{ "item": "2x4" },
{ "item": "battery" },
{ "group": "ammo_any_batteries_full" },
{ "item": "nail" },
{ "item": "gasoline" }
]
Expand Down
4 changes: 2 additions & 2 deletions data/json/itemgroups/gear.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
[ "portable_game", 50 ],
[ "vibrator", 5 ],
[ "gum", 50 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries", "prob": 50 },
[ "wrapper", 50 ],
[ "string_6", 50 ],
[ "pocket_firstaid", 5 ],
Expand Down Expand Up @@ -132,7 +132,7 @@
{ "group": "tools_lighting", "prob": 50 },
{ "group": "tools_survival", "prob": 100 },
{ "group": "tools_tailor", "prob": 20 },
[ "battery", 10 ],
{ "group": "ammo_pocket_batteries_full", "prob": 10 },
[ "duct_tape", 10 ],
[ "survivormap", 5 ]
]
Expand Down
4 changes: 2 additions & 2 deletions data/json/itemgroups/mall_item_groups.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
{
"id": "music_shop",
"type": "item_group",
"items": [ [ "battery", 30 ], [ "radio", 30 ], [ "mp3", 30 ] ]
"items": [ { "group": "ammo_any_batteries_full", "prob": 50 }, [ "radio", 30 ], [ "mp3", 30 ] ]
},
{
"id": "vitamin_shop",
Expand Down Expand Up @@ -203,7 +203,7 @@
"items": [
[ "portable_game", 20 ],
[ "antenna", 25 ],
[ "battery", 70 ],
{ "group": "ammo_any_batteries_full", "prob": 50 },
[ "mp3", 40 ],
[ "usb_drive", 10 ],
[ "manual_electronics", 20 ],
Expand Down
2 changes: 1 addition & 1 deletion data/json/itemgroups/mansion.json
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@
"items": [
[ "socks", 90 ],
[ "sneakers", 50 ],
[ "battery", 50 ],
{ "group": "ammo_pocket_batteries", "prob": 50 },
[ "sunglasses", 40 ],
[ "socks_wool", 40 ],
[ "towel", 40 ],
Expand Down
Loading