This commit is contained in:
kevinz000
2020-01-19 22:58:20 -07:00
parent 55c0fffd69
commit fce8e18ccc
2 changed files with 4 additions and 5 deletions

View File

@@ -6,15 +6,15 @@
// override_stam = If this is set, does this amount of stamina damage.
/mob/living/proc/DefaultCombatKnockdown(amount, updating = TRUE, ignore_canknockdown = FALSE, override_hardstun, override_stamdmg)
if(!iscarbon(src))
return Paralyze(amount, updating, ignore_canstun)
return Paralyze(amount, updating, ignore_canknockdown)
if(istype(buckled, /obj/vehicle/ridden))
buckled.unbuckle_mob(src)
var/drop_items = amount > 80 //80 is cutoff for old item dropping behavior
var/stamdmg = isnull(override_stam)? (amount * 0.25) : override_stam
var/stamdmg = isnull(override_stamdmg)? (amount * 0.25) : override_stamdmg
KnockToFloor(drop_items, TRUE, updating)
adjustStaminaLoss(stamdmg)
if(!isnull(override_duration))
Paralyze(override_duration)
if(!isnull(override_hardstun))
Paralyze(override_hardstun)
////////////////////////////// STUN ////////////////////////////////////

View File

@@ -3100,7 +3100,6 @@
#include "modular_citadel\code\_onclick\hud\stamina.dm"
#include "modular_citadel\code\datums\components\souldeath.dm"
#include "modular_citadel\code\datums\status_effects\chems.dm"
#include "modular_citadel\code\datums\status_effects\debuffs.dm"
#include "modular_citadel\code\game\machinery\wishgranter.dm"
#include "modular_citadel\code\game\objects\cit_screenshake.dm"
#include "modular_citadel\code\game\objects\effects\temporary_visuals\souldeath.dm"