Merge pull request #11176 from Very-Soft/ghosties

Allows hiding mobs/areas from observers without completely forbidding
This commit is contained in:
Aronai Sieyes
2021-07-20 11:02:20 -04:00
committed by GitHub
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())