mirror of
https://github.com/ParadiseSS13/Paradise.git
synced 2026-08-20 18:47:20 +01:00
* refactor: Enforce ruin cost as factor of ruin size. * remove cost-related comment * bump up space ruin numbers based on testing * remove old lavaland_ruin_budget setting * one more tiny tweak down * Update config/example/config.toml Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: warriorstar-orion <orion@snowfrost.garden> * Update config/example/config.toml Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com> --------- Signed-off-by: warriorstar-orion <orion@snowfrost.garden> Signed-off-by: Burzah <116982774+Burzah@users.noreply.github.com> Co-authored-by: AffectedArc07 <25063394+AffectedArc07@users.noreply.github.com> Co-authored-by: Burzah <116982774+Burzah@users.noreply.github.com>
36 lines
1.7 KiB
Plaintext
36 lines
1.7 KiB
Plaintext
/// Config holder for all things regarding space ruins and lavaland ruins
|
|
/datum/configuration_section/ruin_configuration
|
|
/// Whether to load the lavaland Z-level
|
|
var/enable_lavaland = TRUE
|
|
/// Enable or disable all ruins, including lavaland ruins and lavaland tendrils.
|
|
var/enable_space_ruins = TRUE
|
|
/// Minimum number of extra zlevels to fill with ruins
|
|
var/extra_levels_min = 2
|
|
/// Maximum number of extra zlevels to fill with ruins
|
|
var/extra_levels_max = 4
|
|
/// List of all active space ruins
|
|
var/list/active_space_ruins = list()
|
|
/// List of all active lavaland ruins
|
|
var/list/active_lava_ruins = list()
|
|
/// Minimum budget for space ruins
|
|
var/space_ruin_budget_min = 750
|
|
/// Maximum budget for space ruins
|
|
var/space_ruin_budget_max = 1000
|
|
/// Minimum budget for lavaland ruins
|
|
var/lavaland_ruin_budget_min = 175
|
|
/// Maximum budget for lavaland ruins
|
|
var/lavaland_ruin_budget_max = 325
|
|
|
|
/datum/configuration_section/ruin_configuration/load_data(list/data)
|
|
// Use the load wrappers here. That way the default isnt made 'null' if you comment out the config line
|
|
CONFIG_LOAD_BOOL(enable_lavaland, data["enable_lavaland"])
|
|
CONFIG_LOAD_BOOL(enable_space_ruins, data["enable_space_ruins"])
|
|
CONFIG_LOAD_NUM(extra_levels_min, data["minimum_zlevels"])
|
|
CONFIG_LOAD_NUM(extra_levels_max, data["maximum_zlevels"])
|
|
CONFIG_LOAD_LIST(active_space_ruins, data["active_space_ruins"])
|
|
CONFIG_LOAD_LIST(active_lava_ruins, data["active_lava_ruins"])
|
|
CONFIG_LOAD_NUM(space_ruin_budget_min, data["space_ruin_budget_min"])
|
|
CONFIG_LOAD_NUM(space_ruin_budget_max, data["space_ruin_budget_max"])
|
|
CONFIG_LOAD_NUM(lavaland_ruin_budget_min, data["lavaland_ruin_budget_min"])
|
|
CONFIG_LOAD_NUM(lavaland_ruin_budget_max, data["lavaland_ruin_budget_max"])
|