Smith Polish: Fast-Click Lens Durability Fix (#29205)

* Fixes lenses taking too much durability damage

* Better fix
This commit is contained in:
PollardTheDragon
2025-05-13 00:56:44 -04:00
committed by GitHub
parent bc2454461b
commit b4cf38fb3f
+4 -1
View File
@@ -173,9 +173,12 @@
/obj/item/gun/energy/process_fire(atom/target, mob/living/user, message = 1, params, zone_override, bonus_spread = 0)
if(!chambered && can_shoot())
process_chamber()
return ..()
/obj/item/gun/energy/shoot_live_shot(mob/living/user, atom/target, pointblank = FALSE, message = TRUE)
..()
if(current_lens)
current_lens.damage_lens()
return ..()
/obj/item/gun/energy/proc/select_fire(mob/living/user)
select++