mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-10 18:22:39 +00:00
Merge branch 'master' of https://github.com/PolarisSS13/Polaris into is_tool
This commit is contained in:
@@ -7,11 +7,6 @@
|
||||
var/obj/item/weapon/cell/device/cell
|
||||
var/enabled = 0
|
||||
|
||||
/obj/item/weapon/shield_diffuser/update_icon()
|
||||
if(enabled)
|
||||
icon_state = "hdiffuser_on"
|
||||
else
|
||||
icon_state = "hdiffuser_off"
|
||||
|
||||
/obj/item/weapon/shield_diffuser/New()
|
||||
cell = new(src)
|
||||
@@ -24,6 +19,9 @@
|
||||
processing_objects.Remove(src)
|
||||
. = ..()
|
||||
|
||||
/obj/item/weapon/shield_diffuser/get_cell()
|
||||
return cell
|
||||
|
||||
/obj/item/weapon/shield_diffuser/process()
|
||||
if(!enabled)
|
||||
return
|
||||
@@ -34,6 +32,12 @@
|
||||
if(istype(S) && cell.checked_use(10 KILOWATTS * CELLRATE))
|
||||
qdel(S)
|
||||
|
||||
/obj/item/weapon/shield_diffuser/update_icon()
|
||||
if(enabled)
|
||||
icon_state = "hdiffuser_on"
|
||||
else
|
||||
icon_state = "hdiffuser_off"
|
||||
|
||||
/obj/item/weapon/shield_diffuser/attack_self()
|
||||
enabled = !enabled
|
||||
update_icon()
|
||||
|
||||
Reference in New Issue
Block a user