Skip to content

Commit 28c82de

Browse files
VmpOS2NHSkhkejA9Wrill
andauthored
Insulated technomancer helmet's icon can be swapped with a wrench (#8547)
* Update armor.dm * requested changes * reverse one requested change --------- Co-authored-by: Wrill <86113712+WrillWasTaken@users.noreply.github.com>
1 parent 744ba2f commit 28c82de

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

code/modules/clothing/head/armor.dm

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,7 @@
8181
/obj/item/clothing/head/armor/helmet/technomancer
8282
name = "insulated technomancer helmet"
8383
desc = "A piece of armor used in hostile work conditions to protect the head. Comes with a built-in flashlight."
84+
description_info = "The appearance of the visor can be changed with a wrench."
8485
body_parts_covered = HEAD|EARS|EYES|FACE
8586
item_flags = THICKMATERIAL
8687
flags_inv = BLOCKHEADHAIR|HIDEEARS|HIDEEYES|HIDEFACE
@@ -104,6 +105,18 @@
104105
. = ..()
105106
icon_state = pick(list("technohelmet_visor", "technohelmet_googles"))
106107

108+
/obj/item/clothing/head/armor/helmet/technomancer/attackby(obj/item/W, mob/user)
109+
if(QUALITY_BOLT_TURNING in W.tool_qualities)
110+
if(icon_state == "technohelmet_visor")
111+
icon_state = "technohelmet_googles"
112+
to_chat(usr, "You reconfigure the [src]'s visor to look like a pair of goggles.")
113+
return
114+
else
115+
icon_state = "technohelmet_visor"
116+
to_chat(usr, "You reconfigure the [src]'s goggles to look like a visor.")
117+
return
118+
. = ..()
119+
107120
/obj/item/clothing/head/armor/helmet/technomancer_old
108121
name = "reinforced technomancer helmet"
109122
desc = "Technomancer League's ballistic helmet. Comes with a built-in flashlight. The welder-proof visor hinders aim."

0 commit comments

Comments
 (0)