From 2b7bebb5237da96d4c11d321aaa4b75579bd37f2 Mon Sep 17 00:00:00 2001 From: GunHog Date: Thu, 17 Sep 2015 10:29:03 -0500 Subject: [PATCH] Advanced Energy Gun fixes - AE gun can once again be researched more easily by forcing it to critically fail. - Fixed reliability rating being able to become negative. --- code/modules/projectiles/guns/energy/nuclear.dm | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/code/modules/projectiles/guns/energy/nuclear.dm b/code/modules/projectiles/guns/energy/nuclear.dm index 40b6843c936..c61fdfd9de9 100644 --- a/code/modules/projectiles/guns/energy/nuclear.dm +++ b/code/modules/projectiles/guns/energy/nuclear.dm @@ -98,13 +98,14 @@ M << "You feel a wave of heat wash over you." M.irradiate(300) fail_state = 2 //break the gun so it stops recharging + crit_fail = 1 //So that it may be properly perfected in this state. SSobj.processing.Remove(src) update_icon() return 0 /obj/item/weapon/gun/energy/gun/nuclear/emp_act(severity) ..() - reliability -= round(15/severity) + reliability = max(reliability - round(15/severity), 0) //Do not allow it to go negative! /obj/item/weapon/gun/energy/gun/nuclear/update_icon() ..()