mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-27 05:57:24 +01:00
Sharp burn weapons can now disember (#20043)
* Sharp burn weapons can now disember * Update code/modules/surgery/organs/organ_external.dm Co-authored-by: Farie82 <farie82@users.noreply.github.com> Co-authored-by: Farie82 <farie82@users.noreply.github.com>
This commit is contained in:
@@ -262,10 +262,11 @@
|
||||
var/mob/living/carbon/owner_old = owner //Need to update health, but need a reference in case the below check cuts off a limb.
|
||||
//If limb took enough damage, try to cut or tear it off
|
||||
if(owner)
|
||||
if(!(limb_flags & CANNOT_DISMEMBER) && brute_dam >= max_damage)
|
||||
if(prob(brute / 2))
|
||||
if(sharp)
|
||||
droplimb(0, DROPLIMB_SHARP)
|
||||
if(sharp && !(limb_flags & CANNOT_DISMEMBER))
|
||||
if(brute_dam >= max_damage && prob(brute / 2))
|
||||
droplimb(0, DROPLIMB_SHARP)
|
||||
if(burn_dam >= max_damage && prob(burn / 2))
|
||||
droplimb(0, DROPLIMB_BURN)
|
||||
|
||||
if(owner_old)
|
||||
owner_old.updatehealth("limb receive damage")
|
||||
@@ -493,6 +494,8 @@ Note that amputating the affected organ does in fact remove the infection from t
|
||||
|
||||
if(!disintegrate)
|
||||
disintegrate = DROPLIMB_SHARP
|
||||
if(disintegrate == DROPLIMB_BURN && istype(src, /obj/item/organ/external/head))
|
||||
disintegrate = DROPLIMB_SHARP //Lets not make sharp burn weapons delete brains.
|
||||
|
||||
switch(disintegrate)
|
||||
if(DROPLIMB_SHARP)
|
||||
|
||||
Reference in New Issue
Block a user