mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-12 16:44:43 +01:00
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.
This commit is contained in:
@@ -98,13 +98,14 @@
|
||||
M << "<span class='danger'>You feel a wave of heat wash over you.</span>"
|
||||
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()
|
||||
..()
|
||||
|
||||
Reference in New Issue
Block a user