From 2f7c9a65d0dbc202b020acbca7bee2daf8566aa8 Mon Sep 17 00:00:00 2001 From: SkyratBot <59378654+SkyratBot@users.noreply.github.com> Date: Tue, 13 Oct 2020 08:03:42 +0200 Subject: [PATCH] [MIRROR] Rebalances knockdowns due to the getting-up change (#1283) * Rebalances knockdowns due to the getting-up change (#54303) * Rebalances knockdowns due to the getting-up change Co-authored-by: Rohesie --- code/__DEFINES/combat.dm | 10 +++++----- code/modules/mob/living/living.dm | 8 +++++++- 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/code/__DEFINES/combat.dm b/code/__DEFINES/combat.dm index 066f3294bec..05c732f45dd 100644 --- a/code/__DEFINES/combat.dm +++ b/code/__DEFINES/combat.dm @@ -143,11 +143,11 @@ #define DEFAULT_MESSAGE_RANGE 7 //Shove knockdown lengths (deciseconds) -#define SHOVE_KNOCKDOWN_SOLID 30 -#define SHOVE_KNOCKDOWN_HUMAN 30 -#define SHOVE_KNOCKDOWN_TABLE 30 -#define SHOVE_KNOCKDOWN_COLLATERAL 10 -#define SHOVE_CHAIN_PARALYZE 40 +#define SHOVE_KNOCKDOWN_SOLID 20 +#define SHOVE_KNOCKDOWN_HUMAN 20 +#define SHOVE_KNOCKDOWN_TABLE 20 +#define SHOVE_KNOCKDOWN_COLLATERAL 1 +#define SHOVE_CHAIN_PARALYZE 30 //Shove slowdown #define SHOVE_SLOWDOWN_LENGTH 30 #define SHOVE_SLOWDOWN_STRENGTH 0.85 //multiplier diff --git a/code/modules/mob/living/living.dm b/code/modules/mob/living/living.dm index 8ab33c06b57..459185524dc 100644 --- a/code/modules/mob/living/living.dm +++ b/code/modules/mob/living/living.dm @@ -492,7 +492,7 @@ /mob/living/proc/get_up(instant = FALSE) set waitfor = FALSE var/static/datum/callback/rest_checks = CALLBACK(src, .proc/rest_checks_callback) - if(!instant && !do_mob(src, src, 2 SECONDS, uninterruptible = TRUE, extra_checks = rest_checks)) + if(!instant && !do_mob(src, src, 1 SECONDS, uninterruptible = TRUE, extra_checks = rest_checks)) return if(resting || body_position == STANDING_UP || HAS_TRAIT(src, TRAIT_FLOORED)) return @@ -631,6 +631,8 @@ set_suicide(FALSE) set_stat(UNCONSCIOUS) //the mob starts unconscious, updatehealth() //then we check if the mob should wake up. + if(admin_revive) + get_up(TRUE) update_sight() clear_alert("not_enough_oxy") reload_fullscreen() @@ -642,6 +644,10 @@ if(excess_healing) INVOKE_ASYNC(src, .proc/emote, "gasp") log_combat(src, src, "revived") + else if(admin_revive) + updatehealth() + get_up(TRUE) + /mob/living/proc/remove_CC() SetStun(0)