mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-25 22:19:30 +01:00
Merge pull request #13239 from AnturK/animalbots
Simple Animal Bots - Beepsky strikes back.
This commit is contained in:
@@ -1,22 +0,0 @@
|
||||
var/datum/subsystem/bots/SSbot
|
||||
|
||||
/datum/subsystem/bots
|
||||
name = "Bots"
|
||||
priority = 8
|
||||
|
||||
var/list/processing = list()
|
||||
|
||||
/datum/subsystem/bots/New()
|
||||
NEW_SS_GLOBAL(SSbot)
|
||||
|
||||
/datum/subsystem/bots/stat_entry(msg)
|
||||
..("P:[processing.len]")
|
||||
|
||||
/datum/subsystem/bots/fire()
|
||||
var/seconds = wait * 0.1
|
||||
for(var/thing in processing)
|
||||
if(thing && !thing:gc_destroyed)
|
||||
spawn(-1)
|
||||
thing:bot_process(seconds)
|
||||
continue
|
||||
processing.Remove(thing)
|
||||
Reference in New Issue
Block a user