Skip to content

Commit

Permalink
Fixes SM events (#28199)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spaghetti-bit authored Jan 31, 2025
1 parent 6df1982 commit 2647cef
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions code/modules/power/engines/supermatter/engineering_event.dm
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
/// Starts an event
/datum/engi_event/proc/start_event()
on_start()
alert_engi()
if(duration)
addtimer(CALLBACK(src, PROC_REF(on_end)), duration)
return

/// To be executed once an event has been started
/datum/engi_event/proc/on_start()
alert_engi()
if(duration)
addtimer(CALLBACK(src, PROC_REF(on_end)), duration)
return

/// Send an alert to engineering about the event
/datum/engi_event/proc/alert_engi()
Expand Down

0 comments on commit 2647cef

Please sign in to comment.