From 094d7bd13b42c07309efff59e1527291d226385c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=A1=D0=B8=D1=80=D0=BE=D1=82=D0=BA=D0=B0?= <114731039+ErdGinalD@users.noreply.github.com> Date: Mon, 27 May 2024 22:56:07 +0300 Subject: [PATCH] Fix undestrictible armor from attachable armor (#25608) * Fix undestrictible armor from ataacable armor * also fix ash hide comsumption --- code/game/objects/items/stacks/sheets/leather.dm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/code/game/objects/items/stacks/sheets/leather.dm b/code/game/objects/items/stacks/sheets/leather.dm index 8674f623330d..fda73ccf92b5 100644 --- a/code/game/objects/items/stacks/sheets/leather.dm +++ b/code/game/objects/items/stacks/sheets/leather.dm @@ -213,7 +213,7 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( to_chat(user, "You dont have enough [src] for this!") return D.hides++ - D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 25, 115)) + D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 10, 70)) D.armor = D.armor.setRating(bullet_value = min(D.armor.getRating(BULLET) + 7, 60)) D.armor = D.armor.setRating(laser_value = min(D.armor.getRating(LASER) + 7, 60)) to_chat(user, "You strengthen [target], improving its resistance against attacks.") @@ -256,7 +256,7 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( to_chat(user, "You dont have enough [src] for this!") return D.plates++ - D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 10, 70)) + D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 7, 60)) D.armor = D.armor.setRating(bullet_value = min(D.armor.getRating(BULLET) + 4, 50)) D.armor = D.armor.setRating(laser_value = min(D.armor.getRating(LASER) + 4, 50)) to_chat(user, "You strengthen [target], improving its resistance against attacks.") @@ -285,13 +285,13 @@ GLOBAL_LIST_INIT(sinew_recipes, list ( if(istype(target, /obj/mecha/working/ripley)) var/obj/mecha/working/ripley/D = target if(D.drake_hides < DRAKE_HIDES_COVERED_FULL && !D.hides && !D.plates) - if(!use(1)) + if(!use(3)) to_chat(user, "You dont have enough [src] for this!") return D.drake_hides++ D.max_integrity += 50 D.obj_integrity += 50 - D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 45, 175)) // 77.7% melee armor maximum + D.armor = D.armor.setRating(melee_value = min(D.armor.getRating(MELEE) + 13, 80)) D.armor = D.armor.setRating(bullet_value = min(D.armor.getRating(BULLET) + 7, 60)) D.armor = D.armor.setRating(laser_value = min(D.armor.getRating(LASER) + 7, 60)) to_chat(user, "You strengthen [target], improving its resistance against attacks.")