mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2026-07-20 04:26:03 +01:00
Fixes some hallucination sanity. (#40009)
This commit is contained in:
committed by
vuonojenmustaturska
parent
deb756eee7
commit
4c61996455
@@ -1278,6 +1278,9 @@ GLOBAL_LIST_INIT(hallucination_list, list(
|
||||
var/list/turf/startlocs = list()
|
||||
for(var/turf/open/T in view(world.view+1,target)-view(world.view,target))
|
||||
startlocs += T
|
||||
if(!startlocs.len)
|
||||
qdel(src)
|
||||
return
|
||||
var/turf/start = pick(startlocs)
|
||||
var/proj_type = pick(subtypesof(/obj/item/projectile/hallucination))
|
||||
feedback_details += "Type: [proj_type]"
|
||||
|
||||
Reference in New Issue
Block a user