Remove crowbarring sound on blast doors and update the proc (#13282)

* Update pod door crowbarring

* remove crowbar volume on all door subtypes
This commit is contained in:
datlo
2020-05-17 18:42:51 -06:00
committed by GitHub
parent 2b5b44469e
commit 052eef544a
3 changed files with 13 additions and 3 deletions
+1 -1
View File
@@ -204,7 +204,7 @@
. = TRUE
if(operating)
return
if(!I.use_tool(src, user, 0, volume = I.tool_volume))
if(!I.use_tool(src, user, 0, volume = 0))
return
try_to_crowbar(user, I)
+11 -2
View File
@@ -59,9 +59,18 @@
/obj/machinery/door/poddoor/try_to_activate_door(mob/user)
return
/obj/machinery/door/poddoor/try_to_crowbar(obj/item/I, mob/user)
/obj/machinery/door/poddoor/try_to_crowbar(mob/user, obj/item/I)
if(!density)
return
if(!hasPower())
open()
to_chat(user, "<span class='notice'>You start forcing [src] open...</span>")
if(do_after(user, 50 * I.toolspeed, target = src))
if(!hasPower())
open()
else
to_chat(user, "<span class='warning'>[src] resists your efforts to force it!</span>")
else
to_chat(user, "<span class='warning'>[src] resists your efforts to force it!</span>")
// Whoever wrote the old code for multi-tile spesspod doors needs to burn in hell. - Unknown
// Wise words. - Bxil
@@ -179,6 +179,7 @@
slot_flags = SLOT_BACK
force_unwielded = 5
force_wielded = 24
toolspeed = 0.25
attack_verb = list("attacked", "chopped", "cleaved", "torn", "cut")
hitsound = 'sound/weapons/bladeslice.ogg'
usesound = 'sound/items/crowbar.ogg'