mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-11 18:53:06 +00:00
Splits circuit clothes IC interaction to ctrl-shift-click (#6968)
This commit is contained in:
@@ -265,9 +265,11 @@
|
|||||||
else if(istype(I, /obj/item/device/integrated_electronics/wirer) || istype(I, /obj/item/device/integrated_electronics/debugger) || I.is_screwdriver())
|
else if(istype(I, /obj/item/device/integrated_electronics/wirer) || istype(I, /obj/item/device/integrated_electronics/debugger) || I.is_screwdriver())
|
||||||
if(opened)
|
if(opened)
|
||||||
interact(user)
|
interact(user)
|
||||||
|
return TRUE
|
||||||
else
|
else
|
||||||
to_chat(user, "<span class='warning'>\The [src] isn't opened, so you can't fiddle with the internal components. \
|
to_chat(user, "<span class='warning'>\The [src] isn't opened, so you can't fiddle with the internal components. \
|
||||||
Try using a crowbar.</span>")
|
Try using a crowbar.</span>")
|
||||||
|
return FALSE
|
||||||
|
|
||||||
else if(istype(I, /obj/item/device/integrated_electronics/detailer))
|
else if(istype(I, /obj/item/device/integrated_electronics/detailer))
|
||||||
var/obj/item/device/integrated_electronics/detailer/D = I
|
var/obj/item/device/integrated_electronics/detailer/D = I
|
||||||
@@ -365,3 +367,7 @@
|
|||||||
/obj/item/device/electronic_assembly/proc/on_unanchored()
|
/obj/item/device/electronic_assembly/proc/on_unanchored()
|
||||||
for(var/obj/item/integrated_circuit/IC in contents)
|
for(var/obj/item/integrated_circuit/IC in contents)
|
||||||
IC.on_unanchored()
|
IC.on_unanchored()
|
||||||
|
|
||||||
|
// Returns TRUE if I is something that could/should have a valid interaction. Used to tell circuitclothes to hit the circuit with something instead of the clothes
|
||||||
|
/obj/item/device/electronic_assembly/proc/is_valid_tool(var/obj/item/I)
|
||||||
|
return I.is_crowbar() || I.is_screwdriver() || istype(I, /obj/item/integrated_circuit) || istype(I, /obj/item/weapon/cell/device) || istype(I, /obj/item/device/integrated_electronics)
|
||||||
@@ -51,13 +51,12 @@
|
|||||||
IC.examine(user)
|
IC.examine(user)
|
||||||
..()
|
..()
|
||||||
|
|
||||||
/obj/item/clothing/attackby(obj/item/I, mob/user)
|
/obj/item/clothing/CtrlShiftClick(mob/user)
|
||||||
if(IC)
|
var/turf/T = get_turf(src)
|
||||||
// This needs to be done in a better way...
|
if(!T.AdjacentQuick(user)) // So people aren't messing with these from across the room
|
||||||
if(I.is_crowbar() || I.is_screwdriver() || istype(I, /obj/item/integrated_circuit) || istype(I, /obj/item/weapon/cell/device) || istype(I, /obj/item/device/integrated_electronics) )
|
return FALSE
|
||||||
IC.attackby(I, user)
|
var/obj/item/I = user.get_active_hand() // ctrl-shift-click doesn't give us the item, we have to fetch it
|
||||||
else
|
return IC.attackby(I, user)
|
||||||
..()
|
|
||||||
|
|
||||||
/obj/item/clothing/attack_self(mob/user)
|
/obj/item/clothing/attack_self(mob/user)
|
||||||
if(IC)
|
if(IC)
|
||||||
@@ -105,6 +104,7 @@
|
|||||||
/obj/item/clothing/under/circuitry
|
/obj/item/clothing/under/circuitry
|
||||||
name = "electronic jumpsuit"
|
name = "electronic jumpsuit"
|
||||||
desc = "It's a wearable case for electronics. This on is a black jumpsuit with wiring weaved into the fabric."
|
desc = "It's a wearable case for electronics. This on is a black jumpsuit with wiring weaved into the fabric."
|
||||||
|
description_info = "Control-shift-click on this with an item in hand to use it on the integrated circuit."
|
||||||
icon_state = "circuitry"
|
icon_state = "circuitry"
|
||||||
worn_state = "circuitry"
|
worn_state = "circuitry"
|
||||||
|
|
||||||
@@ -118,6 +118,7 @@
|
|||||||
name = "electronic gloves"
|
name = "electronic gloves"
|
||||||
desc = "It's a wearable case for electronics. This one is a pair of black gloves, with wires woven into them. A small \
|
desc = "It's a wearable case for electronics. This one is a pair of black gloves, with wires woven into them. A small \
|
||||||
device with a screen is attached to the left glove."
|
device with a screen is attached to the left glove."
|
||||||
|
description_info = "Control-shift-click on this with an item in hand to use it on the integrated circuit."
|
||||||
icon_state = "circuitry"
|
icon_state = "circuitry"
|
||||||
item_state = "circuitry"
|
item_state = "circuitry"
|
||||||
|
|
||||||
@@ -131,6 +132,7 @@
|
|||||||
name = "electronic goggles"
|
name = "electronic goggles"
|
||||||
desc = "It's a wearable case for electronics. This one is a pair of goggles, with wiring sticking out. \
|
desc = "It's a wearable case for electronics. This one is a pair of goggles, with wiring sticking out. \
|
||||||
Could this augment your vision?" // Sadly it won't, or at least not yet.
|
Could this augment your vision?" // Sadly it won't, or at least not yet.
|
||||||
|
description_info = "Control-shift-click on this with an item in hand to use it on the integrated circuit."
|
||||||
icon_state = "circuitry"
|
icon_state = "circuitry"
|
||||||
item_state = "night" // The on-mob sprite would be identical anyways.
|
item_state = "night" // The on-mob sprite would be identical anyways.
|
||||||
|
|
||||||
@@ -143,6 +145,7 @@
|
|||||||
name = "electronic boots"
|
name = "electronic boots"
|
||||||
desc = "It's a wearable case for electronics. This one is a pair of boots, with wires attached to a small \
|
desc = "It's a wearable case for electronics. This one is a pair of boots, with wires attached to a small \
|
||||||
cover."
|
cover."
|
||||||
|
description_info = "Control-shift-click on this with an item in hand to use it on the integrated circuit."
|
||||||
icon_state = "circuitry"
|
icon_state = "circuitry"
|
||||||
item_state = "circuitry"
|
item_state = "circuitry"
|
||||||
|
|
||||||
@@ -155,6 +158,7 @@
|
|||||||
name = "electronic headwear"
|
name = "electronic headwear"
|
||||||
desc = "It's a wearable case for electronics. This one appears to be a very technical-looking piece that \
|
desc = "It's a wearable case for electronics. This one appears to be a very technical-looking piece that \
|
||||||
goes around the collar, with a heads-up-display attached on the right."
|
goes around the collar, with a heads-up-display attached on the right."
|
||||||
|
description_info = "Control-shift-click on this with an item in hand to use it on the integrated circuit."
|
||||||
icon_state = "circuitry"
|
icon_state = "circuitry"
|
||||||
item_state = "circuitry"
|
item_state = "circuitry"
|
||||||
|
|
||||||
@@ -166,6 +170,7 @@
|
|||||||
/obj/item/clothing/ears/circuitry
|
/obj/item/clothing/ears/circuitry
|
||||||
name = "electronic earwear"
|
name = "electronic earwear"
|
||||||
desc = "It's a wearable case for electronics. This one appears to be a technical-looking headset."
|
desc = "It's a wearable case for electronics. This one appears to be a technical-looking headset."
|
||||||
|
description_info = "Control-shift-click on this with an item in hand to use it on the integrated circuit."
|
||||||
icon = 'icons/obj/clothing/ears.dmi'
|
icon = 'icons/obj/clothing/ears.dmi'
|
||||||
icon_state = "circuitry"
|
icon_state = "circuitry"
|
||||||
item_state = "circuitry"
|
item_state = "circuitry"
|
||||||
@@ -179,6 +184,7 @@
|
|||||||
name = "electronic chestpiece"
|
name = "electronic chestpiece"
|
||||||
desc = "It's a wearable case for electronics. This one appears to be a very technical-looking vest, that \
|
desc = "It's a wearable case for electronics. This one appears to be a very technical-looking vest, that \
|
||||||
almost looks professionally made, however the wiring popping out betrays that idea."
|
almost looks professionally made, however the wiring popping out betrays that idea."
|
||||||
|
description_info = "Control-shift-click on this with an item in hand to use it on the integrated circuit."
|
||||||
icon_state = "circuitry"
|
icon_state = "circuitry"
|
||||||
item_state = "circuitry"
|
item_state = "circuitry"
|
||||||
|
|
||||||
|
|||||||
5
html/changelogs/atermonera_circuitpants_holstered.yml
Normal file
5
html/changelogs/atermonera_circuitpants_holstered.yml
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
author: Atermonera
|
||||||
|
delete-after: True
|
||||||
|
changes:
|
||||||
|
- bugfix: "Circuit clothes can have accessories attached."
|
||||||
|
- tweak: "Control-shift-click on circuit clothes to use items on the circuit."
|
||||||
Reference in New Issue
Block a user