mirror of
https://github.com/Bubberstation/Bubberstation.git
synced 2025-12-10 09:42:29 +00:00
* Multiz Rework: Human Suffering Edition (Contains PLANE CUBE) * skyrat changes * bodyparts merge * unres door floorlight fix * Future upstream fix for blindness * upcoming upstream airlock fix * fix button emissive * Fix FOV markings? Co-authored-by: LemonInTheDark <58055496+LemonInTheDark@users.noreply.github.com> Co-authored-by: tastyfish <crazychris32@gmail.com>
23 lines
582 B
Plaintext
23 lines
582 B
Plaintext
/datum/space_level
|
|
var/name = "NAME MISSING"
|
|
var/list/neigbours = list()
|
|
var/list/traits
|
|
var/z_value = 1 //actual z placement
|
|
var/linkage = SELFLOOPING
|
|
var/xi
|
|
var/yi //imaginary placements on the grid
|
|
|
|
/datum/space_level/New(new_z, new_name, list/new_traits = list())
|
|
z_value = new_z
|
|
name = new_name
|
|
traits = new_traits
|
|
|
|
if (islist(new_traits))
|
|
for (var/trait in new_traits)
|
|
SSmapping.z_trait_levels[trait] += list(new_z)
|
|
else // in case a single trait is passed in
|
|
SSmapping.z_trait_levels[new_traits] += list(new_z)
|
|
|
|
|
|
set_linkage(new_traits[ZTRAIT_LINKAGE])
|