Skip to content

Commit

Permalink
Merge pull request #5876 from Trilbyspaceclone/knife_fix
Browse files Browse the repository at this point in the history
Fixes missing upgrade stats
  • Loading branch information
Trilbyspaceclone authored Nov 25, 2024
2 parents b87caaa + c19dd6d commit 8105624
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions code/game/objects/items/weapons/tools/mods/_upgrades.dm
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8105624

Please sign in to comment.