mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-22 05:25:15 +01:00
[MIRROR] admins can use the spawner component again [MDB IGNORE] (#19851)
* admins can use the spawner component again (#73976) Not playing code vanity project with this shit. Do not require data that just gets stored on a var to be passed via the stack. --------- Co-authored-by: san7890 <the@ san7890.com> * admins can use the spawner component again --------- Co-authored-by: Kyle Spier-Swenson <kyleshome@gmail.com> Co-authored-by: san7890 <the@ san7890.com>
This commit is contained in:
@@ -15,8 +15,8 @@
|
||||
COOLDOWN_DECLARE(spawn_delay)
|
||||
|
||||
/datum/component/spawner/Initialize(mob_types = list(), spawn_time = 30 SECONDS, max_mobs = 5, faction = list(FACTION_MINING), spawn_text = "emerges from")
|
||||
if (!length(mob_types))
|
||||
CRASH("No types of mob to spawn specified for spawner component!")
|
||||
if (!islist(mob_types))
|
||||
CRASH("invalid mob_types to spawn specified for spawner component!")
|
||||
src.spawn_time = spawn_time
|
||||
src.mob_types = mob_types
|
||||
src.faction = faction
|
||||
|
||||
Reference in New Issue
Block a user