Caps the eshotgun damage multiplier from lens to 1.5 (#30663)

This commit is contained in:
Qwertytoforty
2025-10-19 19:25:12 +00:00
committed by GitHub
parent 9cc8df6583
commit a58bdc8968
3 changed files with 5 additions and 2 deletions
@@ -239,6 +239,7 @@
var/fail_tick = 0
ammo_x_offset = 1
ammo_type = list(/obj/item/ammo_casing/energy/disabler/eshotgun, /obj/item/ammo_casing/energy/laser/eshotgun)
lens_damage_cap = 1.5 // Caps at 90 stamina damage, to prevent one shot stamina crits.
var/pump_time = 1 SECONDS
COOLDOWN_DECLARE(pump_cooldown)
@@ -38,6 +38,8 @@
var/can_be_lensed = TRUE
/// Current lens
var/obj/item/smithed_item/lens/current_lens
/// The max damage multiplier a lens can apply to a energy gun. Use sparingly, primarly for stamina based weapons.
var/lens_damage_cap = 999
/obj/item/gun/energy/examine(mob/user)
. = ..()