mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-30 15:37:36 +01:00
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:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user