From c19dd6dc4f7365585acc903fb869129a0b2942d8 Mon Sep 17 00:00:00 2001 From: Trilby Date: Sun, 24 Nov 2024 21:16:01 -0500 Subject: [PATCH] Fixes missing upgrade stats --- .../objects/items/weapons/tools/mods/_upgrades.dm | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/code/game/objects/items/weapons/tools/mods/_upgrades.dm b/code/game/objects/items/weapons/tools/mods/_upgrades.dm index aaf293fbe98..388d7974316 100644 --- a/code/game/objects/items/weapons/tools/mods/_upgrades.dm +++ b/code/game/objects/items/weapons/tools/mods/_upgrades.dm @@ -613,6 +613,20 @@ if(weapon_upgrades[GUN_UPGRADE_DAMAGE_BASE]) to_chat(user, SPAN_NOTICE("Increases projectile damage multiplier by [weapon_upgrades[GUN_UPGRADE_DAMAGE_BASE]]")) + if(weapon_upgrades[GUN_UPGRADE_MELEE_DAMAGE_ADDITIVE]) + var/amount = weapon_upgrades[GUN_UPGRADE_MELEE_DAMAGE_ADDITIVE] + if(amount > 0) + to_chat(user, SPAN_NOTICE("Increases melee damage by [amount]")) + else + to_chat(user, SPAN_NOTICE("Decreases melee damage by [abs(amount)]")) + + if(weapon_upgrades[GUN_UPGRADE_MELEEPENETRATION]) + var/amount = weapon_upgrades[GUN_UPGRADE_MELEEPENETRATION]-1 + if(amount > 0) + to_chat(user, SPAN_NOTICE("Increases melee damage by [amount*100]%")) + else + to_chat(user, SPAN_NOTICE("Decreases melee damage by [abs(amount*100)]%")) + if(weapon_upgrades[GUN_UPGRADE_PAIN_MULT]) var/amount = weapon_upgrades[GUN_UPGRADE_PAIN_MULT]-1