mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge pull request #5796 from Seris02/gunsprites2
gun sprite chomp check
This commit is contained in:
@@ -28,6 +28,9 @@
|
||||
|
||||
/obj/item/weapon/gun/energy/New()
|
||||
..()
|
||||
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'
|
||||
if(self_recharge)
|
||||
power_supply = new /obj/item/weapon/cell/device/weapon(src)
|
||||
START_PROCESSING(SSobj, src)
|
||||
@@ -259,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)
|
||||
|
||||
Reference in New Issue
Block a user