Permalink
Browse files

fixes some of my own shitcode

  • Loading branch information...
deathride58 committed Jan 11, 2018
1 parent 032f297 commit 3388f46756ca0b44c4d8a98546bf6a98bc13ca14
Showing with 6 additions and 3 deletions.
  1. +3 −3 code/game/objects/structures/safe.dm
  2. +3 −0 code/modules/mining/equipment/mining_tools.dm
@@ -48,6 +48,8 @@ FLOOR SAFES
/obj/structure/safe/proc/check_unlocked(mob/user, canhear)
if(lockbroken)
return TRUE
if(user && canhear)
if(tumbler_1_pos == tumbler_1_open)
to_chat(user, "<span class='italics'>You hear a [pick("tonk", "krunk", "plunk")] from [src].</span>")
@@ -57,8 +59,6 @@ FLOOR SAFES
if(user)
audible_message("<i><b>[pick("Spring", "Sprang", "Sproing", "Clunk", "Krunk")]!</b></i>")
return TRUE
else if(lockbroken)
return TRUE
return FALSE
@@ -186,7 +186,7 @@ FLOOR SAFES
/obj/structure/safe/miningdrill_act(mob/user, obj/item/tool)
if(!open && !lockbroken)
to_chat(user, "<span class='notice'>You begin drilling [src] open.</span>")
playsound(src, pick(digsound),50,1)
playsound(src, tool.usesound,50,1)
if(do_after(user, 1200 * tool.toolspeed, target = src))
to_chat(user, "<span class='notice'>You drilled [src] open.</span>")
lockbroken = TRUE
@@ -52,7 +52,9 @@
slot_flags = SLOT_BELT
tool_behaviour = TOOL_MININGDRILL
digspeed = 25 //available from roundstart, faster than a pickaxe.
toolspeed = 1
digsound = list('sound/weapons/drill.ogg')
usesound = 'sound/weapons/drill.ogg'
hitsound = 'sound/weapons/drill.ogg'
desc = "An electric mining drill for the especially scrawny."
@@ -81,6 +83,7 @@
digspeed = 5 //the epitome of powertools. extremely fast mining, laughs at puny walls
toolspeed = 0.65
digsound = list('sound/weapons/sonic_jackhammer.ogg')
usesound = 'sound/weapons/sonic_jackhammer.ogg'
hitsound = 'sound/weapons/sonic_jackhammer.ogg'
desc = "Cracks rocks with sonic blasts, and doubles as a demolition power tool for smashing walls."

0 comments on commit 3388f46

Please sign in to comment.