mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-12 15:45:25 +01:00
Bad indentation causing robot modules to embed
Conflicts: code/modules/mob/living/carbon/human/human_damage.dm
This commit is contained in:
@@ -316,10 +316,12 @@ This function restores all organs.
|
||||
//blunt objects should really not be embedding in things unless a huge amount of force is involved
|
||||
var/embed_chance = sharp? damage/W.w_class : damage/(W.w_class*3)
|
||||
var/embed_threshold = sharp? 5*W.w_class : 15*W.w_class
|
||||
|
||||
|
||||
//Sharp objects will always embed if they do enough damage.
|
||||
if((sharp && damage > (10*W.w_class)) || (sharp && !ismob(W.loc)) || (damage > embed_threshold && prob(embed_chance)))
|
||||
organ.embed(W)
|
||||
else if( (damage > (5*W.w_class)) && ((!ismob(W.loc) && !sharp)) || (prob((damage - 2)/W.w_class) ) )
|
||||
organ.embed(W)
|
||||
|
||||
return 1
|
||||
|
||||
|
||||
Reference in New Issue
Block a user