mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-27 23:27:34 +01:00
More armor touchups. I think I found all the relevant calls, but... mob code.
This commit is contained in:
@@ -172,7 +172,7 @@ emp_act
|
||||
"<span class='userdanger'>[src] has been attacked in the [hit_area] with [I] by [user]!</span>")
|
||||
|
||||
var/armor = run_armor_check(affecting, "melee", "<span class='warning'>Your armour has protected your [hit_area].</span>", "<span class='warning'>Your armour has softened a hit to your [hit_area].</span>")
|
||||
if(armor >= 2) return 0
|
||||
if(armor <= 0) return 0
|
||||
if(!I.force) return 0
|
||||
var/Iforce = I.force //to avoid runtimes on the forcesay checks at the bottom. Some items might delete themselves if you drop them. (stunning yourself, ninja swords)
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
else
|
||||
src << "<span class='userdanger'>Your armor absorbs the blow!</span>"
|
||||
else if(armor < 1)
|
||||
if(absorb_text)
|
||||
if(soften_text)
|
||||
src << "<span class='userdanger'>[soften_text]</span>"
|
||||
else
|
||||
src << "<span class='userdanger'>Your armor softens the blow!</span>"
|
||||
|
||||
Reference in New Issue
Block a user