mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-14 12:13:06 +00:00
Thrown sharp objects no longer always embed
This commit is contained in:
@@ -307,9 +307,8 @@ This function restores all organs.
|
|||||||
var/embed_threshold = sharp? 5*W.w_class : 15*W.w_class
|
var/embed_threshold = sharp? 5*W.w_class : 15*W.w_class
|
||||||
|
|
||||||
//Sharp objects will always embed if they do enough damage.
|
//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)))
|
//Thrown objects have some momentum already and have a small chance to embed even if the damage is below the threshold
|
||||||
organ.embed(W)
|
if((sharp && damage > (10*W.w_class)) || (sharp && !ismob(W.loc) && prob(damage/(10*W.w_class)*100)) || (damage > embed_threshold && prob(embed_chance)))
|
||||||
else if( (damage > (5*W.w_class)) && ((!ismob(W.loc) && !sharp)) || (prob((damage - 2)/W.w_class) ) )
|
|
||||||
organ.embed(W)
|
organ.embed(W)
|
||||||
|
|
||||||
return 1
|
return 1
|
||||||
|
|||||||
Reference in New Issue
Block a user