mirror of
https://github.com/CHOMPStation2/CHOMPStation2.git
synced 2025-12-09 16:12:17 +00:00
33 lines
880 B
Plaintext
33 lines
880 B
Plaintext
//////////////////////////////
|
|
// Landmarks for asteroid positioning
|
|
// Just makes the placement more safe/sane
|
|
//////////////////////////////
|
|
|
|
/obj/asteroid_spawner
|
|
name = "asteroid spawn"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x2"
|
|
invisibility = INVISIBILITY_ABSTRACT
|
|
anchored = TRUE
|
|
var/datum/rogue/asteroid/myasteroid
|
|
|
|
/obj/asteroid_spawner/Initialize(mapload)
|
|
. = ..()
|
|
if(loc && istype(loc,/turf/space) && istype(loc.loc,/area/asteroid/rogue))
|
|
var/area/asteroid/rogue/A = loc.loc
|
|
A.asteroid_spawns += src
|
|
|
|
/obj/rogue_mobspawner
|
|
name = "mob spawn"
|
|
icon = 'icons/mob/screen1.dmi'
|
|
icon_state = "x"
|
|
invisibility = INVISIBILITY_ABSTRACT
|
|
anchored = TRUE
|
|
var/mob/mymob
|
|
|
|
/obj/rogue_mobspawner/Initialize(mapload)
|
|
. = ..()
|
|
if(loc && istype(loc,/turf/space) && istype(loc.loc,/area/asteroid/rogue))
|
|
var/area/asteroid/rogue/A = loc.loc
|
|
A.mob_spawns += src
|