Files
Polaris/code/game/objects/effects/spawners/_spawner.dm
Ava 6f9ca19d1c Refactor of object spawners (of the /obj/effect/spawner variety) (#9087)
* Refactor of object spawners

* Migrate loot spawner file

* actually this doesn't seem like it does anything!
2023-04-23 11:45:05 -08:00

13 lines
403 B
Plaintext

/// Spawners that place objects with special logic and then delete themselves.
/// These are effects instead of datums so that they can be used for mapping (i.e. random loot placement and so on)
/obj/effect/spawner
name = "object spawner"
/obj/effect/spawner/Initialize(mapload, ...)
..()
do_spawn(arglist(args))
return INITIALIZE_HINT_QDEL
/obj/effect/spawner/proc/do_spawn(mapload, ...)
return