mirror of
https://github.com/PolarisSS13/Polaris.git
synced 2026-01-04 14:33:30 +00:00
speculative fix for obj/random's not being deleted
This commit is contained in:
@@ -7,12 +7,14 @@
|
||||
var/drop_get_turf = TRUE
|
||||
var/start_anomalous = FALSE
|
||||
|
||||
// creates a new object and deletes itself
|
||||
|
||||
/obj/random/Initialize()
|
||||
. = INITIALIZE_HINT_QDEL
|
||||
..()
|
||||
if(!prob(spawn_nothing_percentage))
|
||||
try_spawn_item()
|
||||
return INITIALIZE_HINT_QDEL
|
||||
if (prob(spawn_nothing_percentage))
|
||||
return
|
||||
try_spawn_item()
|
||||
|
||||
|
||||
/obj/random/proc/try_spawn_item()
|
||||
var/atom/result = spawn_item()
|
||||
|
||||
Reference in New Issue
Block a user