Makes bluespace toilets react to bluespace content

Since I had ended up fluffing them to work on Bluespace Magic™️ I figured they should do what other bs tp stuff does, so now flushing something containing BoH kinda things will scramble the destination coordinates and land it somewhere random instead :v

Just another unimportant boredom brainfart moment tbh
This commit is contained in:
Verkister
2022-10-30 14:57:01 +02:00
committed by GitHub
parent 4157a6dc1b
commit 2190676c88

View File

@@ -46,6 +46,20 @@
spawn(refill_cooldown)
for(var/atom/movable/F in bowl_contents)
if(F.loc == src)
var/list/bs_things = list()
var/bs_error = FALSE
for(var/item in bluespace_item_types)
if(istype(F, item))
bs_error = TRUE
else
bs_things |= F.search_contents_for(item)
if(bs_error || LAZYLEN(bs_things))
bs_things.Cut()
bs_error = rand(1, 100)
var/list/posturfs = circlerangeturfs(exit_landmark,bs_error)
var/destturf = safepick(posturfs)
F.forceMove(destturf)
else
F.forceMove(exit_landmark)
bowl_contents.Cut()
refilling = FALSE