mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-07-16 17:43:35 +01:00
Adjusts damage mod on PKShotgun and PKRepeater (#31138)
* Adjusts damage mod on PKShotgun and PKRepeater * Rounding
This commit is contained in:
@@ -517,9 +517,14 @@
|
||||
modifier = 10
|
||||
|
||||
/obj/item/borg/upgrade/modkit/damage/modify_projectile(obj/projectile/kinetic/K)
|
||||
if(istype(K, /obj/projectile/kinetic/shotgun)) // 6 Projectiles, so 1/6 the damage boost per shot
|
||||
K.damage = round(K.damage + modifier / 6)
|
||||
return
|
||||
if(istype(K, /obj/projectile/kinetic/repeater)) // 3 shots, 1/3 the effect per shot
|
||||
K.damage = round(K.damage + modifier / 3)
|
||||
return
|
||||
K.damage += modifier
|
||||
|
||||
|
||||
//Cooldown
|
||||
/obj/item/borg/upgrade/modkit/cooldown
|
||||
name = "cooldown decrease"
|
||||
|
||||
Reference in New Issue
Block a user