mirror of
https://github.com/Citadel-Station-13/Citadel-Station-13-RP.git
synced 2026-08-25 09:46:40 +01:00
Different semantics demand different defines. It's hard to tell what's being used where and for what reason right now. Staging for combat PR.
31 lines
838 B
Plaintext
31 lines
838 B
Plaintext
/** EXTERNAL ORGAN LOSS **/
|
|
/datum/wound/lost_limb
|
|
|
|
/datum/wound/lost_limb/New(var/obj/item/organ/external/lost_limb, var/losstype, var/clean)
|
|
var/damage_amt = lost_limb.max_damage
|
|
if(clean) damage_amt /= 2
|
|
|
|
switch(losstype)
|
|
if(DROPLIMB_EDGE, DROPLIMB_BLUNT)
|
|
wound_type = WOUND_TYPE_CUT
|
|
max_bleeding_stage = 3 //clotted stump and above can bleed.
|
|
stages = list(
|
|
"ripped stump" = damage_amt*1.3,
|
|
"bloody stump" = damage_amt,
|
|
"clotted stump" = damage_amt*0.5,
|
|
"scarred stump" = 0
|
|
)
|
|
if(DROPLIMB_BURN)
|
|
wound_type = WOUND_TYPE_BURN
|
|
stages = list(
|
|
"ripped charred stump" = damage_amt*1.3,
|
|
"charred stump" = damage_amt,
|
|
"scarred stump" = damage_amt*0.5,
|
|
"scarred stump" = 0
|
|
)
|
|
|
|
..(damage_amt)
|
|
|
|
/datum/wound/lost_limb/can_merge(var/datum/wound/other)
|
|
return FALSE //cannot be merged
|