almost made a big woops there weh

This commit is contained in:
Seris02
2023-02-26 12:38:24 +08:00
committed by GitHub
parent 246faa3c67
commit 2200cd9c10

View File

@@ -29,7 +29,7 @@
/obj/item/weapon/gun/energy/New()
..()
var/static/list/gun_icons = icon_states('icons/obj/gun_ch.dmi')
if (!(icon_state in gun_icons))
if (icon == 'icons/obj/gun_ch.dmi' && !(icon_state in gun_icons))
icon = 'icons/obj/gun.dmi'
if(self_recharge)
power_supply = new /obj/item/weapon/cell/device/weapon(src)
@@ -262,4 +262,4 @@
if(!power_supply)
return 0
else
return FLOOR(power_supply.charge / max(charge_cost, 1), 1)
return FLOOR(power_supply.charge / max(charge_cost, 1), 1)