Adds Config-Controlled Automated Solar Setup (#6107)

* Fixes autostart solars, adds new config-controlled solars.

* Tweaks map to use config-controlled solar panels, and makes it work.

* If true, Neerti finishes comment.
This commit is contained in:
Neerti
2019-04-21 03:33:38 -04:00
committed by VirgoBot
parent d1b47f8628
commit 40e5fda9ca
4 changed files with 53 additions and 28 deletions

View File

@@ -237,6 +237,7 @@ var/list/gamemode_cache = list()
var/radiation_lower_limit = 0.35 //If the radiation level for a turf would be below this, ignore it.
var/random_submap_orientation = FALSE // If true, submaps loaded automatically can be rotated.
var/autostart_solars = FALSE // If true, specifically mapped in solar control computers will set themselves up when the round starts.
/datum/configuration/New()
var/list/L = typesof(/datum/game_mode) - /datum/game_mode
@@ -764,6 +765,9 @@ var/list/gamemode_cache = list()
if("random_submap_orientation")
config.random_submap_orientation = 1
if("autostart_solars")
config.autostart_solars = TRUE
else
log_misc("Unknown setting in configuration: '[name]'")