mirror of
https://github.com/Aurorastation/Aurora.3.git
synced 2026-07-16 18:36:43 +01:00
[MDB Ignore] [IDB Ignore] Kills off /obj/item/device (#21774)
This has zero reason to exist in our code base. We have no procs or variables tied to this. I removed it to make future modifications cleaner. --------- Signed-off-by: Cody Brittain <1779662+Generalcamo@users.noreply.github.com>
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/obj/item/device/assembly/timer
|
||||
/obj/item/assembly/timer
|
||||
name = "timer"
|
||||
desc = "Used to time things. Works well with contraptions which has to count down. Tick tock."
|
||||
icon_state = "timer"
|
||||
@@ -13,7 +13,7 @@
|
||||
var/timing = FALSE
|
||||
var/time = 3
|
||||
|
||||
/obj/item/device/assembly/timer/activate()
|
||||
/obj/item/assembly/timer/activate()
|
||||
. = ..()
|
||||
if(!.)
|
||||
return FALSE //Cooldown check
|
||||
@@ -22,7 +22,7 @@
|
||||
update_icon()
|
||||
return FALSE
|
||||
|
||||
/obj/item/device/assembly/timer/toggle_secure()
|
||||
/obj/item/assembly/timer/toggle_secure()
|
||||
secured = !secured
|
||||
if(secured)
|
||||
START_PROCESSING(SSprocessing, src)
|
||||
@@ -32,7 +32,7 @@
|
||||
update_icon()
|
||||
return secured
|
||||
|
||||
/obj/item/device/assembly/timer/proc/timer_end()
|
||||
/obj/item/assembly/timer/proc/timer_end()
|
||||
if(!secured)
|
||||
return FALSE
|
||||
pulse(FALSE)
|
||||
@@ -41,7 +41,7 @@
|
||||
cooldown = 2
|
||||
addtimer(CALLBACK(src, PROC_REF(process_cooldown)), 1 SECOND)
|
||||
|
||||
/obj/item/device/assembly/timer/process()
|
||||
/obj/item/assembly/timer/process()
|
||||
if(timing)
|
||||
if(time > 0)
|
||||
time--
|
||||
@@ -50,7 +50,7 @@
|
||||
timer_end()
|
||||
time = 10
|
||||
|
||||
/obj/item/device/assembly/timer/update_icon()
|
||||
/obj/item/assembly/timer/update_icon()
|
||||
ClearOverlays()
|
||||
attached_overlays = list()
|
||||
if(timing)
|
||||
@@ -59,20 +59,20 @@
|
||||
if(holder)
|
||||
holder.update_icon()
|
||||
|
||||
/obj/item/device/assembly/timer/interact(mob/user)
|
||||
/obj/item/assembly/timer/interact(mob/user)
|
||||
if(!secured)
|
||||
to_chat(user, SPAN_WARNING("\The [src] is unsecured!"))
|
||||
return
|
||||
|
||||
ui_interact(user)
|
||||
|
||||
/obj/item/device/assembly/timer/ui_interact(mob/user, datum/tgui/ui)
|
||||
/obj/item/assembly/timer/ui_interact(mob/user, datum/tgui/ui)
|
||||
ui = SStgui.try_update_ui(user, src, ui)
|
||||
if(!ui)
|
||||
ui = new(user, src, "Timer", "Timer Assembly", 320, 220)
|
||||
ui.open()
|
||||
|
||||
/obj/item/device/assembly/timer/ui_data(mob/user)
|
||||
/obj/item/assembly/timer/ui_data(mob/user)
|
||||
var/list/data = list()
|
||||
|
||||
data["timeractive"] = timing
|
||||
@@ -80,7 +80,7 @@
|
||||
|
||||
return data
|
||||
|
||||
/obj/item/device/assembly/timer/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
|
||||
/obj/item/assembly/timer/ui_act(action, list/params, datum/tgui/ui, datum/ui_state/state)
|
||||
. = ..()
|
||||
if(.)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user