SPLURT Station 13 - Modules - TypesVar Details - Proc Details

mapping

Vars

biomesAll possible biomes in assoc list as type || instance
obfuscation_next_idnext id for separating obfuscated ids.
obfuscation_secret"secret" key
random_generated_ids_by_originalLookup list for random generated IDs.
z_to_station_z_indexLookup for zlevel to station z. text = num.

Procs

get_obfuscated_idGenerates 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_centerPrefer not to use this one too often
get_turf_aboveAttempt to get the turf above the provided one according to Z traits
get_turf_belowAttempt to get the turf below the provided one according to Z traits
initialize_biomesInitialize all biomes, assoc as type || instance
level_has_all_traitsCheck if levels[z] has all of the specified traits
level_has_any_traitCheck if levels[z] has any of the specified traits
level_traitLook up levels[z].traits[trait]
levels_by_any_traitGet a list of all z which have any of the specified traits
levels_by_traitGet 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