mirror of
https://github.com/SPLURT-Station/S.P.L.U.R.T-Station-13.git
synced 2025-12-10 18:02:57 +00:00
adds a snowflakey-ish(??? maybe???) way to modify gun damage so we don't need more shot types for improvised shotguns (#12274)
* Update gun.dm * Update _firing.dm * Update code/modules/projectiles/ammunition/_firing.dm Co-authored-by: Ghom <42542238+Ghommie@users.noreply.github.com>
This commit is contained in:
@@ -31,6 +31,10 @@
|
|||||||
else
|
else
|
||||||
BB.def_zone = user.zone_selected
|
BB.def_zone = user.zone_selected
|
||||||
BB.suppressed = quiet
|
BB.suppressed = quiet
|
||||||
|
|
||||||
|
if(isgun(fired_from))
|
||||||
|
var/obj/item/gun/G = fired_from
|
||||||
|
BB.damage *= G.projectile_damage_multiplier
|
||||||
|
|
||||||
if(reagents && BB.reagents)
|
if(reagents && BB.reagents)
|
||||||
reagents.trans_to(BB, reagents.total_volume) //For chemical darts/bullets
|
reagents.trans_to(BB, reagents.total_volume) //For chemical darts/bullets
|
||||||
|
|||||||
@@ -76,6 +76,9 @@
|
|||||||
var/datum/action/item_action/toggle_scope_zoom/azoom
|
var/datum/action/item_action/toggle_scope_zoom/azoom
|
||||||
|
|
||||||
var/dualwield_spread_mult = 1 //dualwield spread multiplier
|
var/dualwield_spread_mult = 1 //dualwield spread multiplier
|
||||||
|
|
||||||
|
/// Just 'slightly' snowflakey way to modify projectile damage for projectiles fired from this gun.
|
||||||
|
var/projectile_damage_multiplier = 1
|
||||||
|
|
||||||
/obj/item/gun/Initialize()
|
/obj/item/gun/Initialize()
|
||||||
. = ..()
|
. = ..()
|
||||||
|
|||||||
Reference in New Issue
Block a user