mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
[MIRROR] Makes uses of do_after sane (#11582)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
committed by
GitHub
parent
2c34c93e00
commit
1b8f394a14
@@ -105,7 +105,7 @@ GLOBAL_VAR(bomb_set)
|
||||
|
||||
user.visible_message("[user] starts cutting loose the anchoring bolt covers on [src].", "You start cutting loose the anchoring bolt covers with [O]...")
|
||||
|
||||
if(do_after(user,40 * WT.toolspeed))
|
||||
if(do_after(user, 4 SECONDS * WT.toolspeed, target = src))
|
||||
if(!src || !user || !WT.remove_fuel(5, user)) return
|
||||
user.visible_message("[user] cuts through the bolt covers on [src].", "You cut through the bolt cover.")
|
||||
removal_stage = 1
|
||||
@@ -116,7 +116,7 @@ GLOBAL_VAR(bomb_set)
|
||||
user.visible_message("[user] starts forcing open the bolt covers on [src].", "You start forcing open the anchoring bolt covers with [O]...")
|
||||
|
||||
playsound(src, O.usesound, 50, 1)
|
||||
if(do_after(user,15 * O.toolspeed))
|
||||
if(do_after(user,15 * O.toolspeed, target = src))
|
||||
if(!src || !user) return
|
||||
user.visible_message("[user] forces open the bolt covers on [src].", "You force open the bolt covers.")
|
||||
removal_stage = 2
|
||||
@@ -133,7 +133,7 @@ GLOBAL_VAR(bomb_set)
|
||||
|
||||
user.visible_message("[user] starts cutting apart the anchoring system sealant on [src].", "You start cutting apart the anchoring system's sealant with [O]...")
|
||||
playsound(src, WT.usesound, 50, 1)
|
||||
if(do_after(user,40 * WT.toolspeed))
|
||||
if(do_after(user, 4 SECONDS * WT.toolspeed, target = src))
|
||||
if(!src || !user || !WT.remove_fuel(5, user)) return
|
||||
user.visible_message("[user] cuts apart the anchoring system sealant on [src].", "You cut apart the anchoring system's sealant.")
|
||||
removal_stage = 3
|
||||
@@ -144,7 +144,7 @@ GLOBAL_VAR(bomb_set)
|
||||
|
||||
user.visible_message("[user] begins unwrenching the anchoring bolts on [src].", "You begin unwrenching the anchoring bolts...")
|
||||
playsound(src, O.usesound, 50, 1)
|
||||
if(do_after(user,50 * O.toolspeed))
|
||||
if(do_after(user, 5 SECONDS * O.toolspeed, target = src))
|
||||
if(!src || !user) return
|
||||
user.visible_message("[user] unwrenches the anchoring bolts on [src].", "You unwrench the anchoring bolts.")
|
||||
removal_stage = 4
|
||||
@@ -155,7 +155,7 @@ GLOBAL_VAR(bomb_set)
|
||||
|
||||
user.visible_message("[user] begins lifting [src] off of the anchors.", "You begin lifting the device off the anchors...")
|
||||
playsound(src, O.usesound, 50, 1)
|
||||
if(do_after(user,80 * O.toolspeed))
|
||||
if(do_after(user, 8 SECONDS * O.toolspeed, target = src))
|
||||
if(!src || !user) return
|
||||
user.visible_message("[user] crowbars [src] off of the anchors. It can now be moved.", "You jam the crowbar under the nuclear device and lift it off its anchors. You can now move it!")
|
||||
anchored = FALSE
|
||||
|
||||
Reference in New Issue
Block a user