[MIRROR] You can now remove embedded objects directly with a hemostat (#3097)

* You can now remove embedded objects directly with a hemostat (#56637)

* You can now remove embedded objects directly with a hemostat

Co-authored-by: Ryll Ryll <3589655+Ryll-Ryll@users.noreply.github.com>
This commit is contained in:
SkyratBot
2021-02-05 21:19:35 +00:00
committed by GitHub
co-authored by Ryll Ryll
parent 81c8c4a86f
commit b5f101661d
7 changed files with 73 additions and 21 deletions
+3
View File
@@ -75,6 +75,9 @@
var/actual_chance = embed_chance
if(throwingdatum?.speed > weapon.throw_speed)
actual_chance += (throwingdatum.speed - weapon.throw_speed) * EMBED_CHANCE_SPEED_BONUS
if(!weapon.isEmbedHarmless()) // all the armor in the world won't save you from a kick me sign
var/armor = max(victim.run_armor_check(hit_zone, BULLET, silent=TRUE), victim.run_armor_check(hit_zone, BOMB, silent=TRUE)) * 0.5 // we'll be nice and take the better of bullet and bomb armor, halved