From 53879a52484b379e3c1c16e20943185d6cdc13a9 Mon Sep 17 00:00:00 2001 From: X0-11 Date: Sat, 8 Jun 2024 18:21:04 +0100 Subject: [PATCH] armor thickness now degrades --- code/modules/halo/clothing/armor_repair/clothing.dm | 4 +++- code/modules/mob/living/carbon/human/life.dm | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/code/modules/halo/clothing/armor_repair/clothing.dm b/code/modules/halo/clothing/armor_repair/clothing.dm index 7e81bbb88a043..6a5a2aea00150 100644 --- a/code/modules/halo/clothing/armor_repair/clothing.dm +++ b/code/modules/halo/clothing/armor_repair/clothing.dm @@ -16,7 +16,7 @@ damage /= 10 var/thickness_dam_cap = ARMOUR_THICKNESS_DAMAGE_CAP - var/new_thickness = round(armor_thickness - min(damage,thickness_dam_cap)) + var/new_thickness = armor_thickness - min(damage,thickness_dam_cap) new_thickness = max(0, new_thickness) var/mob/user = src.loc @@ -29,6 +29,8 @@ else if(istype(user)) to_chat(user, "Your [name]'s armor plating is [damage_type == BURN ? "scorched" : "damaged"]! ") next_warning_time = world.time + WARNING_DELAY + armor_thickness = new_thickness + update_damage_description() /obj/item/clothing/proc/update_damage_description(var/damage_type = BRUTE) var/desc_addition_to_apply = "Its armor plating is nominal." diff --git a/code/modules/mob/living/carbon/human/life.dm b/code/modules/mob/living/carbon/human/life.dm index e6dc4ffc2ab28..e5bf777c65225 100644 --- a/code/modules/mob/living/carbon/human/life.dm +++ b/code/modules/mob/living/carbon/human/life.dm @@ -1219,4 +1219,4 @@ var/obj/item/clothing/c = i if(istype(c)) if(c.armor_thickness < c.armor_thickness_max) - c.armor_thickness = min(c.armor_thickness + 0.1,c.armor_thickness_max) \ No newline at end of file + c.armor_thickness = min(c.armor_thickness + 0.05,c.armor_thickness_max) \ No newline at end of file