Tiles are now (mostly) pooled objects (#19112)

* Tiles are now (mostly) pooled objects

Floors no longer have a builtin_tile, but instead use PoolOrNew().

Also added a do-nothing SSpool so you can inspect the global pool.

* Entries for time keeping

* MORE STATISTICS

* Stat tracking, auto filling

* Code review I

* Code review II

* Code review III
This commit is contained in:
coiax
2016-07-08 13:32:40 -04:00
committed by Joan Lung
parent 7572717ff4
commit afb7ebd790
14 changed files with 97 additions and 34 deletions
@@ -258,9 +258,8 @@
if(istype(T, /turf/open/floor)) //intact floor, pop the tile
var/turf/open/floor/myturf = T
if(myturf.builtin_tile)
myturf.builtin_tile.loc = T
myturf.builtin_tile = null
if(myturf.floor_tile)
PoolOrNew(myturf.floor_tile, T)
myturf.make_plating()
if(direction) // direction is specified