Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,6 @@ GLOBAL_VAR_INIT(primary_data_core, null)
add_overlay(on_overlay)

/obj/machinery/ai/data_core/proc/partytime()
if(TimerID)
return FALSE
var/current_color = random_color()
set_light(7, 3, current_color)
TimerID = addtimer(CALLBACK(src, .proc/partytime), 0.5 SECONDS, TIMER_STOPPABLE)
Expand All @@ -157,6 +155,7 @@ GLOBAL_VAR_INIT(primary_data_core, null)
set_light(0)
if(TimerID)
deltimer(TimerID)
TimerID = null
/obj/machinery/ai/data_core/primary
name = "primary AI Data Core"
desc = "A complicated computer system capable of emulating the neural functions of a human at near-instantanous speeds. This one has a scrawny and faded note saying: 'Primary AI Data Core'"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
if(!.)
return .
for(var/obj/machinery/ai/data_core/datacores in GLOB.data_cores)
datacores.partytime()
if(!datacores.TimerID)
datacores.partytime()


/datum/ai_project/rgb/stop()
Expand Down