mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-08-25 22:12:58 +01:00
Impact Wrench Maptext & Soundfix (#11833)
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user