mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-19 20:15:47 +01:00
fixes harmless embeds doing jostle messages
This commit is contained in:
@@ -149,7 +149,7 @@
|
||||
if(victim.m_intent == MOVE_INTENT_WALK || victim.lying)
|
||||
chance *= 0.5
|
||||
|
||||
if(prob(chance))
|
||||
if(harmful && prob(chance))
|
||||
var/damage = weapon.w_class * jostle_pain_mult
|
||||
L.receive_damage(brute=(1-pain_stam_pct) * damage, stamina=pain_stam_pct * damage)
|
||||
to_chat(victim, "<span class='userdanger'>[weapon] embedded in your [L.name] jostles and stings!</span>")
|
||||
@@ -223,7 +223,7 @@
|
||||
if(victim.stat == DEAD)
|
||||
return
|
||||
|
||||
if(harmful && prob(pain_chance))
|
||||
if(harmful && prob(pain_chance))
|
||||
var/damage = weapon.w_class * pain_mult
|
||||
L.receive_damage(brute=(1-pain_stam_pct) * damage, stamina=pain_stam_pct * damage)
|
||||
to_chat(victim, "<span class='userdanger'>[weapon] embedded in your [L.name] hurts!</span>")
|
||||
|
||||
Reference in New Issue
Block a user