initializes random objects (#20304)

This commit is contained in:
GDN
2023-03-13 22:11:39 +00:00
committed by GitHub
parent 30e461f60a
commit cdd4bcf1a8
+4 -4
View File
@@ -8,16 +8,16 @@
// creates a new object and deletes itself
/obj/random/New()
..()
/obj/random/Initialize(mapload)
. = ..()
if(!prob(spawn_nothing_percentage))
spawn_item()
qdel(src)
return INITIALIZE_HINT_QDEL
// this function should return a specific item to spawn
/obj/random/proc/item_to_spawn()
return 0
return
// creates the random item