Makes ablative armor always have a chance to reflect lasers (#14662)

* Makes ablative armor always have a chance to reflect lasers

* Gives it a description that it can reflect lasers anywhere on the user
This commit is contained in:
Qwertytoforty
2020-10-21 18:06:01 -04:00
committed by GitHub
parent 62068a341a
commit 8afef30a4f
+2 -4
View File
@@ -236,7 +236,7 @@
/obj/item/clothing/suit/armor/laserproof
name = "Ablative Armor Vest"
desc = "A vest that excels in protecting the wearer against energy projectiles."
desc = "A vest that excels in protecting the wearer against energy projectiles. Projects an energy field arround the user, allowing a chance of energy projectile deflection no matter where on the user it would hit."
icon_state = "armor_reflec"
item_state = "armor_reflec"
blood_overlay_type = "armor"
@@ -244,9 +244,7 @@
resistance_flags = INDESTRUCTIBLE | LAVA_PROOF | FIRE_PROOF | ACID_PROOF
var/hit_reflect_chance = 40
/obj/item/clothing/suit/armor/laserproof/IsReflect(var/def_zone)
if(!(def_zone in list("chest", "groin"))) //If not shot where ablative is covering you, you don't get the reflection bonus!
return 0
/obj/item/clothing/suit/armor/laserproof/IsReflect()
if(prob(hit_reflect_chance))
return 1