From 28b6de784349154c6301c80f36bace7315393ee6 Mon Sep 17 00:00:00 2001 From: PhantornRU Date: Sun, 21 Jan 2024 00:00:50 +1000 Subject: [PATCH] =?UTF-8?q?=D0=97=D0=B0=D0=BC=D0=B5=D0=B4=D0=BB=D1=8F?= =?UTF-8?q?=D0=B5=D0=BC=20=D0=BE=D1=82=D0=B6=D0=B8=D0=BC=D0=B0=D0=BD=D0=B8?= =?UTF-8?q?=D1=8F=20=D0=BA=D0=BE=D0=B3=D0=B4=D0=B0=20=D1=81=D0=B4=D0=B5?= =?UTF-8?q?=D0=BB=D0=B0=D0=BB=D0=B8=20=D0=B8=D1=85=20=D0=BC=D0=BD=D0=BE?= =?UTF-8?q?=D0=B3=D0=BE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- modular_ss220/ranks/code/exercise/pushup.dm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/modular_ss220/ranks/code/exercise/pushup.dm b/modular_ss220/ranks/code/exercise/pushup.dm index e2658e0879d6..468c311365ed 100644 --- a/modular_ss220/ranks/code/exercise/pushup.dm +++ b/modular_ss220/ranks/code/exercise/pushup.dm @@ -104,8 +104,8 @@ Verbs related to getting fucking jacked, bro return currentloss = L.getStaminaLoss() + L.getOxyLoss() pushup_value = calculate_valueloss_per_pushup(user, on_knees, one_arm, clap) - var/time_mod = 1 - round(L.getOxyLoss() / 300, 0.05) - if(!user.PushupAnimation(time_mod)) + var/time_div = 1 - round(L.getOxyLoss() / 300, 0.05) + if(!user.PushupAnimation(time_div)) user.visible_message(span_notice("[user] прекратил отжиматься."), span_notice("Вы прекратили отжиматься."), span_notice("Вы слишите шорох.")) return pushups_in_a_row++ @@ -140,11 +140,11 @@ Verbs related to getting fucking jacked, bro dir = WEST matrix.Turn(270) -/atom/proc/PushupAnimation(time_mod = 1) +/atom/proc/PushupAnimation(time_div = 1) var/target_y = -5 - var/delay = 0.6 SECONDS * time_mod - var/time_low = 0.2 SECONDS * time_mod - var/time_hight = 0.8 SECONDS * time_mod + var/delay = 0.6 SECONDS / time_div + var/time_low = 0.2 SECONDS / time_div + var/time_hight = 0.8 SECONDS / time_div animate(src, pixel_y = target_y, time = time_hight, easing = QUAD_EASING) //down to the floor if(!do_after(src, delay, TRUE)) animate(src, pixel_y = 0, time = time_low, easing = QUAD_EASING)