Skip to content

Commit

Permalink
Fix overlook in #76290
Browse files Browse the repository at this point in the history
  • Loading branch information
osuphobia committed Sep 3, 2024
1 parent c0f8c04 commit 1003604
Show file tree
Hide file tree
Showing 3 changed files with 76 additions and 42 deletions.
22 changes: 11 additions & 11 deletions data/json/items/tool/electronics.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"symbol": ";",
"color": "yellow",
"ammo": [ "battery" ],
"flags": [ "WATER_BREAK_ACTIVE", "ELECTRONIC" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATER_BREAK_ACTIVE", "ELECTRONIC" ],
"charges_per_use": 1,
"use_action": [ "CAMERA" ],
"//": "swappable, but proprietary 80g Li-Ion battery",
Expand All @@ -34,7 +34,7 @@
"ammo": [ "battery" ],
"charges_per_use": 5,
"use_action": [ "CAMERA" ],
"flags": [ "CAMERA_PRO", "ALWAYS_TWOHAND", "WATER_BREAK_ACTIVE", "ELECTRONIC" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "CAMERA_PRO", "ALWAYS_TWOHAND", "WATER_BREAK_ACTIVE", "ELECTRONIC" ],
"//": "swappable, but proprietary 160g Li-Ion battery",
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 100 } } ],
"melee_damage": { "bash": 1 }
Expand Down Expand Up @@ -62,7 +62,7 @@
"need_charges_msg": "The cellphone's batteries need more charge.",
"type": "transform"
},
"flags": [ "WATCH", "ALARMCLOCK", "WATER_BREAK", "ELECTRONIC" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATCH", "ALARMCLOCK", "WATER_BREAK", "ELECTRONIC" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 17 } } ]
},
{
Expand All @@ -79,7 +79,7 @@
"menu_text": "Turn off",
"type": "transform"
},
"flags": [ "WATCH", "LIGHT_8", "CHARGEDIM", "TRADER_AVOID", "WATER_BREAK", "ELECTRONIC" ]
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATCH", "LIGHT_8", "CHARGEDIM", "TRADER_AVOID", "WATER_BREAK", "ELECTRONIC" ]
},
{
"id": "directional_antenna",
Expand Down Expand Up @@ -150,7 +150,7 @@
},
{ "type": "link_up", "cable_length": 4, "charge_rate": "10 W" }
],
"flags": [ "WATCH", "WATER_BREAK", "ELECTRONIC" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATCH", "WATER_BREAK", "ELECTRONIC" ],
"pocket_data": [
{ "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 85 } },
{
Expand Down Expand Up @@ -184,7 +184,7 @@
],
"tick_action": [ "EPIC_MUSIC" ],
"//": "LIGHT_10 is the bare minimum for reading without penalties",
"flags": [ "LIGHT_10", "TRADER_AVOID", "WATCH", "WATER_BREAK", "ELECTRONIC" ]
"flags": [ "NO_UNLOAD", "NO_RELOAD", "LIGHT_10", "TRADER_AVOID", "WATCH", "WATER_BREAK", "ELECTRONIC" ]
},
{
"id": "electrohack",
Expand Down Expand Up @@ -376,7 +376,7 @@
},
{ "type": "link_up", "cable_length": 5, "charge_rate": "140 W" }
],
"flags": [ "WATCH", "WATER_BREAK", "ELECTRONIC", "ALLOWS_REMOTE_USE" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATCH", "WATER_BREAK", "ELECTRONIC", "ALLOWS_REMOTE_USE" ],
"pocket_data": [
{ "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 200 } },
{
Expand Down Expand Up @@ -419,7 +419,7 @@
{ "type": "link_up", "cable_length": 5, "charge_rate": "140 W" }
],
"tick_action": [ "EPIC_MUSIC" ],
"flags": [ "WATCH", "LIGHT_10", "TRADER_AVOID", "WATER_BREAK", "ELECTRONIC", "ALLOWS_REMOTE_USE" ]
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATCH", "LIGHT_10", "TRADER_AVOID", "WATER_BREAK", "ELECTRONIC", "ALLOWS_REMOTE_USE" ]
},
{
"id": "mp3",
Expand All @@ -438,7 +438,7 @@
"ammo": [ "battery" ],
"use_action": [ "MP3", { "type": "link_up", "cable_length": 2, "charge_rate": "5 W" } ],
"charges_per_use": 1,
"flags": [ "WATER_BREAK_ACTIVE", "ELECTRONIC" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATER_BREAK_ACTIVE", "ELECTRONIC" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 50 } } ]
},
{
Expand All @@ -451,7 +451,7 @@
"revert_to": "mp3",
"tick_action": [ "MP3_ON" ],
"use_action": [ "MP3_DEACTIVATE", { "type": "link_up", "cable_length": 2, "charge_rate": "5 W" } ],
"flags": [ "TRADER_AVOID", "WATER_BREAK", "ELECTRONIC" ]
"flags": [ "NO_UNLOAD", "NO_RELOAD", "TRADER_AVOID", "WATER_BREAK", "ELECTRONIC" ]
},
{
"id": "noise_emitter",
Expand Down Expand Up @@ -573,7 +573,7 @@
"color": "light_gray",
"ammo": [ "battery" ],
"charges_per_use": 1,
"flags": [ "WATER_BREAK", "ELECTRONIC" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATER_BREAK", "ELECTRONIC" ],
"use_action": [ "PORTABLE_GAME", { "type": "link_up", "cable_length": 4, "charge_rate": "39 W" } ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 48 } } ]
},
Expand Down
60 changes: 49 additions & 11 deletions data/json/items/tool/lighting.json
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@
},
{ "type": "link_up", "cable_length": 2, "charge_rate": "20 W" }
],
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "ALLOWS_REMOTE_USE", "WATER_BREAK" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "RADIO_MODABLE", "RADIO_INVOKE_PROC", "ALLOWS_REMOTE_USE", "WATER_BREAK" ],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 58 } } ],
"melee_damage": { "bash": 1 }
},
Expand All @@ -175,7 +175,7 @@
},
{ "type": "link_up", "cable_length": 2, "charge_rate": "20 W" }
],
"flags": [ "RADIO_MODABLE", "RADIO_INVOKE_PROC", "LIGHT_15", "TRADER_AVOID", "ALLOWS_REMOTE_USE" ]
"flags": [ "NO_UNLOAD", "NO_RELOAD", "RADIO_MODABLE", "RADIO_INVOKE_PROC", "LIGHT_15", "TRADER_AVOID", "ALLOWS_REMOTE_USE" ]
},
{
"id": "flashlight",
Expand Down Expand Up @@ -348,7 +348,7 @@
"price_postapoc": "1 USD",
"charges_per_use": 1,
"ammo": [ "battery" ],
"flags": [ "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT", "WRIST_MOUNT_ATTACHMENT" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT", "WRIST_MOUNT_ATTACHMENT" ],
"use_action": [
{
"type": "transform",
Expand Down Expand Up @@ -393,7 +393,16 @@
"charge_rate": "20 W"
}
],
"flags": [ "LIGHT_500", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
"flags": [
"NO_UNLOAD",
"NO_RELOAD",
"LIGHT_500",
"CHARGEDIM",
"TRADER_AVOID",
"BELT_CLIP",
"HELMET_HEAD_ATTACHMENT",
"HEAD_STRAP_MOUNT"
]
},
{
"id": "diving_flashlight_variable_on_med",
Expand Down Expand Up @@ -423,7 +432,16 @@
"charge_rate": "20 W"
}
],
"flags": [ "LIGHT_200", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
"flags": [
"NO_UNLOAD",
"NO_RELOAD",
"LIGHT_200",
"CHARGEDIM",
"TRADER_AVOID",
"BELT_CLIP",
"HELMET_HEAD_ATTACHMENT",
"HEAD_STRAP_MOUNT"
]
},
{
"id": "diving_flashlight_variable_on_low",
Expand All @@ -450,7 +468,16 @@
"charge_rate": "20 W"
}
],
"flags": [ "LIGHT_80", "CHARGEDIM", "TRADER_AVOID", "BELT_CLIP", "HELMET_HEAD_ATTACHMENT", "HEAD_STRAP_MOUNT" ]
"flags": [
"NO_UNLOAD",
"NO_RELOAD",
"LIGHT_80",
"CHARGEDIM",
"TRADER_AVOID",
"BELT_CLIP",
"HELMET_HEAD_ATTACHMENT",
"HEAD_STRAP_MOUNT"
]
},
{
"id": "gasoline_lantern",
Expand Down Expand Up @@ -626,7 +653,7 @@
"armor_data": {
"armor": [ { "covers": [ "torso" ], "coverage": 5, "encumbrance": 2, "specifically_covers": [ "torso_hanging_front" ] } ]
},
"flags": [ "BELT_CLIP", "BELTED" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "BELT_CLIP", "BELTED" ],
"use_action": [
{
"type": "transform",
Expand Down Expand Up @@ -658,7 +685,7 @@
},
{ "type": "link_up", "cable_length": 3, "charge_rate": "20 W" }
],
"flags": [ "LIGHT_500", "CHARGEDIM", "BELT_CLIP", "BELTED" ]
"flags": [ "NO_UNLOAD", "NO_RELOAD", "LIGHT_500", "CHARGEDIM", "BELT_CLIP", "BELTED" ]
},
{
"id": "lightstrip",
Expand Down Expand Up @@ -847,7 +874,7 @@
"material": [ "plastic", "aluminum" ],
"symbol": ";",
"color": "white",
"flags": [ "WATER_BREAK" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATER_BREAK" ],
"ammo": [ "battery" ],
"charges_per_use": 1,
"use_action": {
Expand Down Expand Up @@ -875,7 +902,7 @@
"menu_text": "Turn off",
"type": "transform"
},
"flags": [ "LIGHT_15", "CHARGEDIM" ]
"flags": [ "NO_UNLOAD", "NO_RELOAD", "WATER_BREAK", "LIGHT_15", "CHARGEDIM" ]
},
{
"id": "smart_lamp",
Expand Down Expand Up @@ -905,7 +932,16 @@
{ "type": "link_up", "cable_length": 3, "charge_rate": "6 W" }
],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 33 } } ],
"flags": [ "ALLOWS_REMOTE_USE", "RADIO_ACTIVATION", "RADIO_INVOKE_PROC", "RADIOSIGNAL_2", "WATER_BREAK", "ELECTRONIC" ],
"flags": [
"NO_UNLOAD",
"NO_RELOAD",
"ALLOWS_REMOTE_USE",
"RADIO_ACTIVATION",
"RADIO_INVOKE_PROC",
"RADIOSIGNAL_2",
"WATER_BREAK",
"ELECTRONIC"
],
"melee_damage": { "bash": 1 }
},
{
Expand All @@ -924,6 +960,8 @@
"type": "transform"
},
"flags": [
"NO_UNLOAD",
"NO_RELOAD",
"ALLOWS_REMOTE_USE",
"RADIO_ACTIVATION",
"RADIO_INVOKE_PROC",
Expand Down
36 changes: 16 additions & 20 deletions data/json/items/tool_armor.json
Original file line number Diff line number Diff line change
Expand Up @@ -918,20 +918,13 @@
"price": "200 USD",
"price_postapoc": "50 cent",
"material": [ "plastic", "steel" ],
"flags": [ "OVERSIZE", "BELTED", "ALLOWS_NATURAL_ATTACKS", "WATER_BREAK", "ELECTRONIC" ],
"flags": [ "NO_UNLOAD", "NO_RELOAD", "OVERSIZE", "BELTED", "ALLOWS_NATURAL_ATTACKS", "WATER_BREAK", "ELECTRONIC" ],
"weight": "520 g",
"volume": "500 ml",
"charges_per_use": 5,
"charges_per_use": 1,
"ammo": "battery",
"use_action": [ "CAMERA" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"rigid": true,
"flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
"default_magazine": "light_battery_cell"
}
],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 50 } } ],
"armor": [ { "encumbrance": 2, "coverage": 15, "covers": [ "torso" ], "specifically_covers": [ "torso_hanging_front" ] } ],
"melee_damage": { "bash": 1 }
},
Expand All @@ -946,20 +939,23 @@
"price": "8 kUSD",
"price_postapoc": "1 USD",
"material": [ "plastic", "steel" ],
"flags": [ "CAMERA_PRO", "ALWAYS_TWOHAND", "OVERSIZE", "BELTED", "ALLOWS_NATURAL_ATTACKS", "WATER_BREAK", "ELECTRONIC" ],
"flags": [
"NO_UNLOAD",
"NO_RELOAD",
"CAMERA_PRO",
"ALWAYS_TWOHAND",
"OVERSIZE",
"BELTED",
"ALLOWS_NATURAL_ATTACKS",
"WATER_BREAK",
"ELECTRONIC"
],
"weight": "520 g",
"volume": "500 ml",
"charges_per_use": 5,
"charges_per_use": 1,
"ammo": "battery",
"use_action": [ "CAMERA" ],
"pocket_data": [
{
"pocket_type": "MAGAZINE_WELL",
"rigid": true,
"flag_restriction": [ "BATTERY_LIGHT", "BATTERY_ULTRA_LIGHT" ],
"default_magazine": "light_battery_cell"
}
],
"pocket_data": [ { "pocket_type": "MAGAZINE", "rigid": true, "ammo_restriction": { "battery": 100 } } ],
"armor": [ { "encumbrance": 2, "coverage": 15, "covers": [ "torso" ], "specifically_covers": [ "torso_hanging_front" ] } ],
"melee_damage": { "bash": 1 }
},
Expand Down

0 comments on commit 1003604

Please sign in to comment.