minor fixes (#8209)

This commit is contained in:
Cadyn
2024-04-10 22:47:16 -07:00
committed by GitHub
parent be7ea1244c
commit 57a0b4a5eb
3 changed files with 17 additions and 9 deletions

View File

@@ -30,7 +30,7 @@
var/random_start_ammo = FALSE //if TRUE, the weapon will spawn with randomly-determined ammo
/obj/item/weapon/gun/energy/New()
..()
//..() CHOMPEdit moved to bottom
var/static/list/gun_icons = icon_states('icons/obj/gun_ch.dmi')
if (icon == 'icons/obj/gun_ch.dmi' && !(icon_state in gun_icons))
icon = 'icons/obj/gun.dmi'
@@ -46,6 +46,7 @@
if(random_start_ammo && cell_type)
power_supply.charge = charge_cost*rand(0,power_supply.maxcharge/charge_cost)
update_icon()
..() //CHOMPEdit if you see this, it is a cry for help. Please tell people to stop putting ..() at the top of New() :(
/obj/item/weapon/gun/energy/Destroy()
if(self_recharge)