mapping
Vars | |
biomes | All possible biomes in assoc list as type || instance |
---|---|
obfuscation_next_id | next id for separating obfuscated ids. |
obfuscation_secret | "secret" key |
random_generated_ids_by_original | Lookup list for random generated IDs. |
z_to_station_z_index | Lookup for zlevel to station z. text = num. |
Procs | |
get_obfuscated_id | Generates an obfuscated but constant id for an original id for cases where you don't want players codediving for an id. WARNING: MAKE SURE PLAYERS ARE NOT ABLE TO ACCESS THIS. To save performance, it's just secret + an incrementing number. Very guessable if you know what the secret is. |
get_station_center | Prefer not to use this one too often |
get_turf_above | Attempt to get the turf above the provided one according to Z traits |
get_turf_below | Attempt to get the turf below the provided one according to Z traits |
initialize_biomes | Initialize all biomes, assoc as type || instance |
level_has_all_traits | Check if levels[z] has all of the specified traits |
level_has_any_trait | Check if levels[z] has any of the specified traits |
level_trait | Look up levels[z].traits[trait] |
levels_by_any_trait | Get a list of all z which have any of the specified traits |
levels_by_trait | Get a list of all z which have the specified trait |
Var Details
biomes
All possible biomes in assoc list as type || instance
obfuscation_next_id
next id for separating obfuscated ids.
obfuscation_secret
"secret" key
random_generated_ids_by_original
Lookup list for random generated IDs.
z_to_station_z_index
Lookup for zlevel to station z. text = num.
Proc Details
get_obfuscated_id
Generates an obfuscated but constant id for an original id for cases where you don't want players codediving for an id. WARNING: MAKE SURE PLAYERS ARE NOT ABLE TO ACCESS THIS. To save performance, it's just secret + an incrementing number. Very guessable if you know what the secret is.
get_station_center
Prefer not to use this one too often
get_turf_above
Attempt to get the turf above the provided one according to Z traits
get_turf_below
Attempt to get the turf below the provided one according to Z traits
initialize_biomes
Initialize all biomes, assoc as type || instance
level_has_all_traits
Check if levels[z] has all of the specified traits
level_has_any_trait
Check if levels[z] has any of the specified traits
level_trait
Look up levels[z].traits[trait]
levels_by_any_trait
Get a list of all z which have any of the specified traits
levels_by_trait
Get a list of all z which have the specified trait