mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2026-08-25 14:16:58 +01:00
[MIRROR] Axes do_mob and replaces with do_after (#11938)
Co-authored-by: Cameron Lennox <killer65311@gmail.com>
This commit is contained in:
co-authored by
Cameron Lennox
parent
9645b165d5
commit
e61bebfbb3
@@ -117,7 +117,7 @@
|
||||
continue
|
||||
if(used == amount)
|
||||
break
|
||||
if(!do_mob(user, M, W.damage/3, exclusive = TRUE))
|
||||
if(!do_after(user, W.damage/3, affecting))
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
|
||||
@@ -186,7 +186,7 @@
|
||||
continue
|
||||
if(used == amount)
|
||||
break
|
||||
if(!do_mob(user, M, W.damage/5, exclusive = TRUE))
|
||||
if(!do_after(user, W.damage/5, affecting))
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
|
||||
@@ -251,7 +251,7 @@
|
||||
else
|
||||
user.balloon_alert_visible("\the [user] starts salving wounds on [M]'s [affecting.name].", \
|
||||
"salving the wounds on [M]'s [affecting.name]." )
|
||||
if(!do_mob(user, M, 10, exclusive = TRUE))
|
||||
if(!do_after(user, 1 SECOND, affecting))
|
||||
balloon_alert(user, "stand still to salve wounds.")
|
||||
return 1
|
||||
if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
@@ -305,7 +305,7 @@
|
||||
continue
|
||||
//if(used == amount)
|
||||
// break
|
||||
if(!do_mob(user, M, W.damage/5, exclusive = TRUE))
|
||||
if(!do_after(user, W.damage/5, affecting))
|
||||
balloon_alert(user, "stand still to bandage wounds.")
|
||||
break
|
||||
if(affecting.is_bandaged() && affecting.is_disinfected()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
@@ -365,7 +365,7 @@
|
||||
else
|
||||
user.balloon_alert_visible("\the [user] starts salving wounds on [M]'s [affecting.name].", \
|
||||
"salving the wounds on [M]'s [affecting.name]." )
|
||||
if(!do_mob(user, M, 10, exclusive = TRUE))
|
||||
if(!do_after(user, 1 SECOND, affecting))
|
||||
balloon_alert(user, "stand still to salve wounds.")
|
||||
return 1
|
||||
if(affecting.is_salved()) // We do a second check after the delay, in case it was bandaged after the first check.
|
||||
@@ -413,7 +413,7 @@
|
||||
balloon_alert(user, "you can't apply a splint to the arm you're using!")
|
||||
return
|
||||
user.balloon_alert_visible("[user] starts to apply \the [src] to their [limb].", "applying \the [src] to your [limb].", "You hear something being wrapped.")
|
||||
if(do_after(user, 5 SECONDS, target = M))
|
||||
if(do_after(user, 5 SECONDS, affecting))
|
||||
if(affecting.splinted)
|
||||
balloon_alert(user, "[M]'s [limb] is already splinted!")
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user