Skip to content

Commit

Permalink
Adds a new helper proc that returns the number of mobs in each z-level (
Browse files Browse the repository at this point in the history
  • Loading branch information
SingingSpock authored Feb 11, 2024
1 parent fb716df commit 7ca0f57
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions code/__HELPERS/unsorted.dm
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,12 @@ Turf and target are seperate in case you want to teleport some distance from a t
return destination


/proc/ennumeratemobs()
var/i
var/mobnum
for(i=1, i<world.maxz, i++)
mobnum = SSmobs.mob_living_by_zlevel[i].len
to_chat(usr, "Z-level [i] has [mobnum] mobs on it")

/proc/LinkBlocked(turf/A, turf/B)
if(A == null || B == null) return 1
Expand Down

0 comments on commit 7ca0f57

Please sign in to comment.