Vault datums
Created by: unid15
- Vaults are now defined by datums in code/modules/randomMaps/vault_definitions.dm
- Vaults can now be exclusive to maps (so they only spawn on specified maps)
- Vaults can be set to not spawn on some maps (so they only spawn on other maps)
- Maps can be set to only spawn vaults that are exclusive to them (so vaults that aren't exclusive to any map don't get spawned)
- Vaults can be set to spawn multiple times (instead of 1 time per map)
This allows creating random structures that only spawn on a snow map and nowhere else, for example. Also allows vaults with working shuttles (the shuttles have to be created in the vault's initialize() proc).
Adding vaults is just as easy as it was before, but instead of adding the map's name to a list, you now have to add something like this to vault_definitions.dm
/datum/vault/icetruck_crash
map_name = "icetruck_crash"