Allows hiding mobs/areas from observers without completely forbidding

Basically for more common usage for place we would prefer people couldn't peek into before people are there ICly, like gateways.
This commit is contained in:
VerySoft
2021-07-20 07:08:35 -04:00
parent 98dea57645
commit bcea1b71ad
3 changed files with 15 additions and 1 deletions
+5 -1
View File
@@ -341,6 +341,8 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/area/A = areas[key]
if(A.z in using_map?.secret_levels)
areas -= key
if(A.z in using_map?.hidden_levels)
areas -= key
return areas
@@ -353,7 +355,9 @@ This is the proc mobs get to turn into a ghost. Forked from ghostize due to comp
var/mobz = get_z(mobs[key])
if(mobz in using_map?.secret_levels)
mobs -= key
if(mobz in using_map?.hidden_levels)
mobs -= key
return mobs
/mob/observer/dead/verb/dead_tele(areaname as null|anything in jumpable_areas())