From a205b47acb7283a80adb64283470519cb6505246 Mon Sep 17 00:00:00 2001 From: quotefox Date: Fri, 9 Sep 2022 02:21:16 +0100 Subject: [PATCH] Barber fixes do_mob() --- hyperstation/code/modules/salon/barber.dm | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/hyperstation/code/modules/salon/barber.dm b/hyperstation/code/modules/salon/barber.dm index 6f4ab4f31..4ffa7631c 100644 --- a/hyperstation/code/modules/salon/barber.dm +++ b/hyperstation/code/modules/salon/barber.dm @@ -104,7 +104,7 @@ if(human_target.is_mouth_covered(head_only = 1)) to_chat(usr, "You can't brush [human_target]'s hair while [human_target.p_their()] head is covered!") return - if(!do_after(user, brush_speed, human_target)) + if(!do_mob(user, human_target,brush_speed)) return // Do 1 brute to their head if they're bald. Should've been more careful. @@ -182,7 +182,7 @@ visible_message("[user] starts to masterfully paint [target_human]!") - if(do_after(user, 20 SECONDS, target_human)) + if(do_mob(user, target_human,20 SECONDS)) switch(selected_mutant_color) if("One") target_human.dna.features["mcolor"] = selected_color @@ -235,7 +235,7 @@ visible_message("[user] starts to masterfully paint [target_human]!") - if(do_after(user, 20 SECONDS, target_human)) + if(do_mob(user, target_human,20 SECONDS)) current_markings[selected_marking_area][selected_marking_id] = selected_color target_human.dna.body_markings = current_markings.Copy() @@ -273,7 +273,7 @@ playsound(src, 'hyperstation/sound/salon/drying.ogg', 50) add_fingerprint(user) busy = TRUE - if(do_after(user, 4 SECONDS, src)) + if(do_mob(user, src,4 SECONDS)) busy = FALSE user.visible_message("[user] dried their hands using \the [src].") else @@ -333,7 +333,7 @@ return visible_message("[user] begins to do [target]'s lips with \the [src].","You begin to apply \the [src] on [target]'s lips...") - if(!do_after(user, 2 SECONDS, target = target)) + if(!do_mob(user, target = target,2 SECONDS)) return visible_message("[user] does [target]'s lips with \the [src].","You apply \the [src] on [target]'s lips.") target.lip_style = "lipstick" @@ -388,7 +388,7 @@ var/self_shaving = target_human == user // Shaving yourself? visible_message("[user] starts to shave [self_shaving ? user.p_their() : "[target_human]'s"] hair with [src].","You take a moment to shave [self_shaving ? "your" : "[target_human]'s" ] hair with [src]...") - if(do_after(user, shaving_time, target = target_human)) + if(do_mob(user, target = target_human,shaving_time)) visible_message("[user] shaves [self_shaving ? user.p_their() : "[target_human]'s"] hair clean with [src].","You finish shaving [self_shaving ? "your" : " [target_human]'s"] hair with [src]. Fast and clean!") shave(target_human, location) @@ -405,7 +405,7 @@ var/self_shaving = target_human == user // Shaving yourself? visible_message("[user] starts to shave [self_shaving ? user.p_their() : "[target_human]'s"] hair with [src].","You take a moment to shave [self_shaving ? "your" : "[target_human]'s" ] hair with [src]...") - if(do_after(user, shaving_time, target = target_human)) + if(do_mob(user, target = target_human,shaving_time)) visible_message("[user] shaves [self_shaving ? user.p_their() : "[target_human]'s"] hair clean with [src].","You finish shaving [self_shaving ? "your" : " [target_human]'s"] hair with [src]. Fast and clean!") shave(target_human, location) else