[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 <rohesie@gmail.com>
This commit is contained in:
SkyratBot
2020-10-13 08:03:42 +02:00
committed by GitHub
co-authored by Rohesie
parent c43f43dec8
commit 2f7c9a65d0
2 changed files with 12 additions and 6 deletions
+5 -5
View File
@@ -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
+7 -1
View File
@@ -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)