Skip to content

Commit

Permalink
AP base and PDM base tweaks (#5163)
Browse files Browse the repository at this point in the history
* AP base and PDM base tweaks

* Update _upgrades.dm

* Update _upgrades.dm
  • Loading branch information
Trilbyspaceclone authored Apr 12, 2024
1 parent b8474e8 commit e504584
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 10 deletions.
4 changes: 4 additions & 0 deletions code/game/objects/items/weapons/tools/mods/_defines.dm
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,11 @@

//Int multiplier
#define GUN_UPGRADE_DAMAGE_MULT "damage_mult"
#define GUN_UPGRADE_DAMAGE_BASE "damage_base"

#define GUN_UPGRADE_PEN_MULT "penetration_mult"
#define GUN_UPGRADE_PEN_BASE "penetration_base"

#define GUN_UPGRADE_PIERC_MULT "pierce_mult"
#define GUN_UPGRADE_FIRE_DELAY_MULT "fire_delay_mult"
#define GUN_UPGRADE_MOVE_DELAY_MULT "move_delay_mult"
Expand Down
12 changes: 12 additions & 0 deletions code/game/objects/items/weapons/tools/mods/_upgrades.dm
Original file line number Diff line number Diff line change
Expand Up @@ -398,10 +398,14 @@
G.allow_greyson_mods = weapon_upgrades[GUN_UPGRADE_ALLOW_GREYON_MODS]
if(weapon_upgrades[GUN_UPGRADE_DAMAGE_MULT])
G.damage_multiplier *= weapon_upgrades[GUN_UPGRADE_DAMAGE_MULT]
if(weapon_upgrades[GUN_UPGRADE_DAMAGE_BASE])
G.damage_multiplier += weapon_upgrades[GUN_UPGRADE_DAMAGE_BASE]
if(weapon_upgrades[GUN_UPGRADE_PAIN_MULT])
G.proj_agony_multiplier += weapon_upgrades[GUN_UPGRADE_PAIN_MULT]
if(weapon_upgrades[GUN_UPGRADE_PEN_MULT])
G.penetration_multiplier *= weapon_upgrades[GUN_UPGRADE_PEN_MULT]
if(weapon_upgrades[GUN_UPGRADE_PEN_BASE])
G.penetration_multiplier += weapon_upgrades[GUN_UPGRADE_PEN_BASE]
if(weapon_upgrades[GUN_UPGRADE_PIERC_MULT])
G.pierce_multiplier += weapon_upgrades[GUN_UPGRADE_PIERC_MULT]
if(weapon_upgrades[GUN_UPGRADE_STEPDELAY_MULT])
Expand Down Expand Up @@ -588,6 +592,10 @@
else
to_chat(user, SPAN_WARNING("Decreases projectile damage by [abs(amount*100)]%"))

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_PAIN_MULT])
var/amount = weapon_upgrades[GUN_UPGRADE_PAIN_MULT]-1
if(amount > 0)
Expand All @@ -602,6 +610,10 @@
else
to_chat(user, SPAN_WARNING("Decreases projectile penetration by [abs(amount*100)]%"))

if(weapon_upgrades[GUN_UPGRADE_PEN_BASE])
to_chat(user, SPAN_NOTICE("Increases projectile penetration multiplier by [weapon_upgrades[GUN_UPGRADE_PEN_BASE]]"))


if(weapon_upgrades[GUN_UPGRADE_PIERC_MULT])
var/amount = weapon_upgrades[GUN_UPGRADE_PIERC_MULT]
if(amount > 1)
Expand Down
14 changes: 7 additions & 7 deletions code/game/objects/items/weapons/tools/mods/mod_types.dm
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@
)
I.weapon_upgrades = list(
GUN_UPGRADE_RECOIL = 1.5,
GUN_UPGRADE_PEN_MULT = 1.2,
GUN_UPGRADE_PEN_BASE = 0.2,
GUN_UPGRADE_FIRE_DELAY_MULT = 0.8,
GUN_UPGRADE_MOVE_DELAY_MULT = 0.8,
GUN_UPGRADE_MUZZLEFLASH = 1.5,
Expand Down Expand Up @@ -341,8 +341,8 @@
UPGRADE_FUELCOST_MULT = 1.25
)
I.weapon_upgrades = list(
GUN_UPGRADE_PEN_MULT = 1.25,
GUN_UPGRADE_CHARGECOST = 1.35
GUN_UPGRADE_PEN_BASE = 0.3,
GUN_UPGRADE_CHARGECOST = 1.2
)
I.prefix = "boosted"
I.req_fuel_cell = REQ_FUEL_OR_CELL
Expand Down Expand Up @@ -506,7 +506,7 @@
UPGRADE_DEGRADATION_MULT = 1.15,
UPGRADE_BULK = 1)
I.weapon_upgrades = list(
GUN_UPGRADE_DAMAGE_MULT = 1.1, // Think of the guild's heavy barrel as a direct upgrade of this, as it's part of its recipe.
GUN_UPGRADE_DAMAGE_BASE = 0.2, // Think of the guild's heavy barrel as a direct upgrade of this, as it's part of its recipe.
GUN_UPGRADE_FIRE_DELAY_MULT = 1.2,
GUN_UPGRADE_STEPDELAY_MULT = 1.1,
GUN_UPGRADE_RECOIL = 1.2,
Expand Down Expand Up @@ -564,7 +564,7 @@
I.weapon_upgrades = list(
GUN_UPGRADE_RECOIL = 0.5,
UPGRADE_BULK = 0.5,
GUN_UPGRADE_PEN_MULT = 0.7
GUN_UPGRADE_PEN_BASE = -0.1
)
I.gun_loc_tag = GUN_GRIP
I.required_qualities = list(QUALITY_CUTTING, QUALITY_WIRE_CUTTING, QUALITY_SCREW_DRIVING, QUALITY_WELDING ,QUALITY_PULSING, QUALITY_CLAMPING, QUALITY_CAUTERIZING, QUALITY_BONE_SETTING, QUALITY_LASER_CUTTING, QUALITY_BONE_GRAFTING)
Expand Down Expand Up @@ -878,8 +878,8 @@
I.weapon_upgrades = list(
GUN_UPGRADE_ALLOW_GREYON_MODS = TRUE,
GUN_UPGRADE_RECOIL = 0.8,
GUN_UPGRADE_DAMAGE_MULT = 1.1,
GUN_UPGRADE_PEN_MULT = 1.2,
GUN_UPGRADE_DAMAGE_BASE = 0.2,
GUN_UPGRADE_PEN_MULT = 1.1,
GUN_UPGRADE_FIRE_DELAY_MULT = 0.8,
GUN_UPGRADE_MOVE_DELAY_MULT = 0.8,
GUN_UPGRADE_MUZZLEFLASH = 0.8,
Expand Down
6 changes: 3 additions & 3 deletions code/modules/projectiles/guns/mods/mods.dm
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@
I.weapon_upgrades = list(
GUN_UPGRADE_RECOIL = 2,
GUN_UPGRADE_FIRE_DELAY_MULT = 1.5,
GUN_UPGRADE_DAMAGE_MULT = 2,
GUN_UPGRADE_DAMAGE_BASE = 1,
GUN_UPGRADE_CHARGECOST = 2)
I.req_fuel_cell = REQ_CELL
I.gun_loc_tag = GUN_MECHANISM
Expand All @@ -492,7 +492,7 @@
..()
var/datum/component/item_upgrade/I = AddComponent(/datum/component/item_upgrade)
I.weapon_upgrades = list(
GUN_UPGRADE_DAMAGE_MULT = 0.90,
GUN_UPGRADE_DAMAGE_MULT = 0.9,
GUN_UPGRADE_FIRE_DELAY_MULT = 0.25)
I.req_fuel_cell = REQ_CELL
I.gun_loc_tag = GUN_MECHANISM
Expand Down Expand Up @@ -646,7 +646,7 @@
var/datum/component/item_upgrade/I = AddComponent(/datum/component/item_upgrade)
I.weapon_upgrades = list(
GUN_UPGRADE_DAMAGE_BRUTE = 5,
GUN_UPGRADE_PEN_MULT = 1.2,
GUN_UPGRADE_PEN_BASE = 0.2,
GUN_UPGRADE_PIERC_MULT = 1,
GUN_UPGRADE_FIRE_DELAY_MULT = 1.2,
GUN_UPGRADE_RECOIL = 1.2,
Expand Down

0 comments on commit e504584

Please sign in to comment.