Skip to content

Commit

Permalink
small fixes in batteries (#76517)
Browse files Browse the repository at this point in the history
* small fixes in batteries

* fix i hope the only issue with itemgroups
  • Loading branch information
GuardianDll authored Sep 20, 2024
1 parent 4254b22 commit 03b8d34
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 71 deletions.
7 changes: 1 addition & 6 deletions data/json/items/tool/toiletries.json
Original file line number Diff line number Diff line change
Expand Up @@ -79,12 +79,7 @@
"charges_per_use": 1,
"use_action": { "type": "effect_on_conditions", "description": "Trim your hair", "effect_on_conditions": [ "barber_hair" ] },
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"rigid": true,
"flag_restriction": [ "BATTERY_ULTRA_LIGHT" ],
"default_magazine": "light_minus_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_MEDIUM" ], "default_magazine": "medium_battery_cell" }
],
"melee_damage": { "bash": 1 }
},
Expand Down
14 changes: 2 additions & 12 deletions data/json/items/tool/woodworking.json
Original file line number Diff line number Diff line change
Expand Up @@ -243,12 +243,7 @@
},
"flags": [ "NONCONDUCTIVE" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"magazine_well": "200 ml",
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_HEAVY" ], "default_magazine": "heavy_battery_cell" }
],
"melee_damage": { "bash": 2, "cut": 4 }
},
Expand Down Expand Up @@ -413,12 +408,7 @@
},
"flags": [ "NONCONDUCTIVE", "FRAGILE_MELEE" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"magazine_well": "200 ml",
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_HEAVY" ], "default_magazine": "heavy_battery_cell" }
],
"melee_damage": { "bash": 10 }
},
Expand Down
57 changes: 7 additions & 50 deletions data/json/items/tool/workshop.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,7 @@
"flags": [ "NONCONDUCTIVE", "WATER_BREAK" ],
"use_action": { "type": "link_up", "cable_length": 30, "charge_rate": "800 W" },
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"magazine_well": "200 ml",
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_HEAVY" ], "default_magazine": "heavy_battery_cell" }
],
"melee_damage": { "bash": 2, "cut": 2 }
},
Expand Down Expand Up @@ -298,12 +293,7 @@
"qualities": [ [ "SCREW", 1 ] ],
"charged_qualities": [ [ "DRILL", 3 ] ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"magazine_well": "200 ml",
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_HEAVY" ], "default_magazine": "heavy_battery_cell" }
],
"to_hit": { "grip": "solid", "length": "hand", "surface": "point", "balance": "uneven" },
"melee_damage": { "bash": 3, "cut": 1 }
Expand Down Expand Up @@ -351,12 +341,7 @@
"qualities": [ [ "WRENCH", 1 ] ],
"charged_qualities": [ [ "WRENCH", 2 ], [ "WHEEL_FAST", 1 ] ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"magazine_well": "200 ml",
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_HEAVY" ], "default_magazine": "heavy_battery_cell" }
],
"to_hit": { "grip": "solid", "length": "hand", "surface": "point", "balance": "uneven" },
"melee_damage": { "bash": 3, "cut": 1 }
Expand Down Expand Up @@ -675,12 +660,7 @@
],
"flags": [ "ALLOWS_REMOTE_USE" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"rigid": true,
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_HEAVY" ], "default_magazine": "heavy_battery_cell" }
],
"melee_damage": { "bash": 8 }
},
Expand Down Expand Up @@ -1006,12 +986,7 @@
"flags": [ "TRADER_AVOID", "WATER_BREAK" ],
"use_action": [ { "type": "link_up", "cable_length": 5, "charge_rate": "1600 W" } ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"rigid": true,
"flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
"default_magazine": "light_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_HEAVY" ], "default_magazine": "heavy_battery_cell" }
],
"to_hit": { "grip": "solid", "length": "hand", "surface": "any", "balance": "neutral" },
"melee_damage": { "bash": 6 }
Expand Down Expand Up @@ -1054,12 +1029,7 @@
"flags": [ "NONCONDUCTIVE", "WATER_BREAK" ],
"use_action": [ { "type": "link_up", "cable_length": 2, "charge_rate": "800 W" } ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"magazine_well": "200 ml",
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_HEAVY" ], "default_magazine": "heavy_battery_cell" }
],
"melee_damage": { "bash": 2, "cut": 2 }
},
Expand Down Expand Up @@ -1277,12 +1247,7 @@
}
],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"rigid": true,
"flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
"default_magazine": "light_battery_cell"
}
{ "pocket_type": "MAGAZINE_WELL", "flag_restriction": [ "BATTERY_MEDIUM" ], "default_magazine": "medium_battery_cell" }
],
"to_hit": { "grip": "solid", "length": "hand", "surface": "point", "balance": "neutral" },
"melee_damage": { "stab": 2 }
Expand Down Expand Up @@ -1641,14 +1606,6 @@
"color": "light_gray",
"ammo": [ "battery" ],
"use_action": [ { "type": "link_up", "cable_length": 2, "charge_rate": "1500 W" } ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"magazine_well": "200 ml",
"flag_restriction": [ "BATTERY_MEDIUM" ],
"default_magazine": "medium_battery_cell"
}
],
"melee_damage": { "bash": 7 }
},
{
Expand Down
4 changes: 1 addition & 3 deletions data/json/professions.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,9 +125,7 @@
"type": "item_group",
"subtype": "collection",
"id": "charged_soldering_iron",
"entries": [
{ "item": "light_battery_cell", "ammo-item": "battery", "charges": 150, "container-item": "soldering_iron_portable" }
]
"entries": [ { "item": "soldering_iron_portable", "charges": 150 } ]
},
{
"type": "item_group",
Expand Down

0 comments on commit 03b8d34

Please sign in to comment.