mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-08-22 20:48:56 +01:00
[MIRROR] Fixes the Spawners Menu not letting you jump or spawn in as ghost roles. [MDB IGNORE] (#8496)
* Fixes the Spawners Menu not letting you jump or spawn in as ghost roles. (#61770) * Feex * Better feex * Fixes the Spawners Menu not letting you jump or spawn in as ghost roles. Co-authored-by: Timberpoes <silent_insomnia_pp@hotmail.co.uk>
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
this["flavor_text"] = ""
|
||||
this["important_warning"] = ""
|
||||
this["amount_left"] = 0
|
||||
this["refs"] = list()
|
||||
for(var/spawner_obj in GLOB.mob_spawners[spawner])
|
||||
if(!this["desc"])
|
||||
if(istype(spawner_obj, /obj/effect/mob_spawn))
|
||||
@@ -42,7 +41,6 @@
|
||||
else
|
||||
var/obj/object = spawner_obj
|
||||
this["desc"] = object.desc
|
||||
this["refs"] += "[REF(spawner_obj)]"
|
||||
this["amount_left"] += 1
|
||||
if(this["amount_left"] > 0)
|
||||
data["spawners"] += list(this)
|
||||
@@ -63,7 +61,7 @@
|
||||
if(!spawnerlist.len)
|
||||
return
|
||||
var/obj/effect/mob_spawn/mob_spawner = pick(spawnerlist)
|
||||
if(!istype(mob_spawner) || !SSpoints_of_interest.get_poi_atom_by_ref(mob_spawner))
|
||||
if(!istype(mob_spawner) || !SSpoints_of_interest.is_valid_poi(mob_spawner))
|
||||
return
|
||||
|
||||
switch(action)
|
||||
|
||||
Reference in New Issue
Block a user