Files
Yogstation/code/__HELPERS/level_traits.dm
Tad Hardesty 827c4b3f99 Replace hardcoded z-level numbers with a trait system (#34090)
* Add basic structure of z-level traits

* Restore space transitions and add z-level debug verb

* Restore proper ruin spawning and transit level creation

* Replace station_z_levels and related checks with traits

* Eliminate more uses of ZLEVEL_{STATION_PRIMARY,LAVALAND}
2018-01-12 09:05:49 +13:00

18 lines
617 B
Plaintext

// Helpers for checking whether a z-level conforms to a specific requirement
// Basic levels
#define is_centcom_level(z) SSmapping.level_trait(z, ZTRAIT_CENTCOM)
#define is_station_level(z) SSmapping.level_trait(z, ZTRAIT_STATION)
#define is_mining_level(z) SSmapping.level_trait(z, ZTRAIT_MINING)
#define is_reebe(z) SSmapping.level_trait(z, ZTRAIT_REEBE)
#define is_transit_level(z) SSmapping.level_trait(z, ZTRAIT_TRANSIT)
#define is_away_level(z) SSmapping.level_trait(z, ZTRAIT_AWAY)
// If true, the singularity cannot strip away asteroid turf on this Z
#define is_planet_level(z) (GLOB.z_is_planet["z"])