makes flashlight attaching more modular

This commit is contained in:
paprka
2015-02-10 14:17:57 -08:00
parent e971a1af29
commit eabbd88858
3 changed files with 3 additions and 2 deletions

View File

@@ -83,9 +83,9 @@
overlays.Cut()
if(F)
if(F.on)
overlays += "flight-on"
overlays += "flight-[initial(icon_state)]-on"
else
overlays += "flight"
overlays += "flight-[initial(icon_state)]"
return
/obj/item/weapon/gun/energy/ui_action_click()

View File

@@ -27,6 +27,7 @@
icon_state = "pulse_carbine"
item_state = "pulse"
cell_type = "/obj/item/weapon/stock_parts/cell/pulse/carbine"
can_flashlight = 1
/obj/item/weapon/gun/energy/pulse/carbine/loyalpin
pin = /obj/item/device/firing_pin/implant/loyalty