mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-22 19:47:22 +01:00
initializes random objects (#20304)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user