omg It's taken me this long to realize that defining a type in for(), for instance, for(var/obj/building/B as obj) doesn't actually filter anything out!
it was fooling me because of this -
for(var/obj/Building/B as obj in world)
if(B.building==1) return
obj/Building/var/building
only a building predefined var can be accessed unless you put a predefine type in for()....
but it doens't filter the darn things out :) goes through every obj, so what I was doing was editing variables of objs that didn't have those variables...
Copyright © 2025 BYOND Software.
All rights reserved.