Impact Wrench Maptext & Soundfix (#11833)

This commit is contained in:
Geeves
2021-05-08 12:04:12 +02:00
committed by GitHub
parent 5fc5684ee5
commit b5fc9b937a
2 changed files with 16 additions and 3 deletions
+9 -3
View File
@@ -737,6 +737,7 @@
icon_state = "impact_wrench-screw"
item_state = "impact_wrench"
contained_sprite = TRUE
flags = HELDMAPTEXT
force = 8
attack_verb = list("gored", "drilled", "screwed", "punctured")
w_class = ITEMSIZE_SMALL
@@ -752,6 +753,9 @@
. = ..()
update_tool()
/obj/item/powerdrill/set_initial_maptext()
held_maptext = SMALL_FONTS(7, "S")
/obj/item/powerdrill/examine(var/mob/user)
. = ..()
if(. && tools.len)
@@ -778,11 +782,13 @@
/obj/item/powerdrill/proc/update_tool()
if(isscrewdriver())
usesound = 'sound/items/air_wrench.ogg'
icon_state = "impact_wrench-screw"
else if(iswrench())
usesound = 'sound/items/drill_use.ogg'
icon_state = "impact_wrench-screw"
check_maptext(SMALL_FONTS(7, "S"))
else if(iswrench())
usesound = 'sound/items/air_wrench.ogg'
icon_state = "impact_wrench-wrench"
check_maptext(SMALL_FONTS(7, "W"))
/obj/item/powerdrill/attack_self(var/mob/user)
if(++current_tool > tools.len)