mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2025-12-27 02:32:20 +00:00
This commit ports the base system of LINDA from TG. This version of linda is the original version, with none of -tg-'s fixes, rewrites, or other such improvements attached. The mob ignite system has been 100% removed, as LINDA does not support this normally. It may be added back in when the improvements and refactors to LINDA have been ported.
23 lines
682 B
Plaintext
23 lines
682 B
Plaintext
/datum/controller/process/air/setup()
|
|
name = "air"
|
|
schedule_interval = 20 // every 2 seconds
|
|
|
|
if(!air_master)
|
|
air_master = new
|
|
air_master.Setup()
|
|
|
|
/datum/controller/process/air/doWork()
|
|
if(!air_processing_killed)
|
|
if(!air_master.process()) //Runtimed.
|
|
air_master.failed_ticks++
|
|
|
|
if(air_master.failed_ticks > 5)
|
|
world << "<SPAN CLASS='danger'>RUNTIMES IN ATMOS TICKER. Killing air simulation!</SPAN>"
|
|
world.log << "### ZAS SHUTDOWN"
|
|
|
|
message_admins("ZASALERT: Shutting down! status: [air_master.tick_progress]")
|
|
log_admin("ZASALERT: Shutting down! status: [air_master.tick_progress]")
|
|
|
|
air_processing_killed = TRUE
|
|
air_master.failed_ticks = 0
|