[Non-Modular] Implement sanity check so random mining doesn't load on icebox (#5924)

* Automatic changelog compile [ci skip]

* Implement sanity check so random mining doesn't load on icebox

* AAAAAAA

* Update mapping.dm

* Revert "Update mapping.dm"

This reverts commit 7f21ab22f786a32d3720dff7574fedc4111f1476.

* Revert "AAAAAAA"

This reverts commit bbf839213d6d3a491017c8cd0fa9587d56841720.

* Revert "oke"

This reverts commit b974de84b836034d3d0cc565f44a9ed417f66f6d, reversing
changes made to a35307c16b1f4757a08f95d883c971e340a8ac31.

* Update mapping.dm

* Update 2021-05.yml

Co-authored-by: Changelogs <action@github.com>
This commit is contained in:
BluBerry016
2021-05-26 11:35:51 -04:00
committed by GitHub
parent 8d9f743fc3
commit a5a6bc1e8d
+13 -12
View File
@@ -315,18 +315,19 @@ Used by the AI doomsday and the self-destruct nuke.
//SKYRAT EDIT CHANGE BEGIN
var/mining_map_to_load = SSrandommining.chosen_map
var/mining_traits_to_load = GLOB.mining_traits[SSrandommining.traits]
if(mining_map_to_load)
add_startupmessage("MINING MAP: Loading mining level...")
if(!mining_traits_to_load)
add_startupmessage("MINING MAP ERROR: No z-level traits detected, loading without traits.")
LoadGroup(FailedZs, "Mining Level", "map_files/Mining", mining_map_to_load, default_traits = mining_traits_to_load)
add_startupmessage("MINING MAP: Loaded successfully.")
else
add_startupmessage("MINING MAP ERROR: No loadable map z-levels detected, reverting to backup mining system!")
if(config.minetype == "lavaland")
LoadGroup(FailedZs, "Lavaland", "map_files/Mining", "Lavaland.dmm", default_traits = ZTRAITS_LAVALAND)
else if (!isnull(config.minetype) && config.minetype != "none")
INIT_ANNOUNCE("WARNING: An unknown minetype '[config.minetype]' was set! This is being ignored! Update the maploader code!")
if(config.minetype != "none")
if(mining_map_to_load)
add_startupmessage("MINING MAP: Loading mining level...")
if(!mining_traits_to_load)
add_startupmessage("MINING MAP ERROR: No z-level traits detected, loading without traits.")
LoadGroup(FailedZs, "Mining Level", "map_files/Mining", mining_map_to_load, default_traits = mining_traits_to_load)
add_startupmessage("MINING MAP: Loaded successfully.")
else
add_startupmessage("MINING MAP ERROR: No loadable map z-levels detected, reverting to backup mining system!")
if(config.minetype == "lavaland")
LoadGroup(FailedZs, "Lavaland", "map_files/Mining", "Lavaland.dmm", default_traits = ZTRAITS_LAVALAND)
else if (!isnull(config.minetype) && config.minetype != "none")
INIT_ANNOUNCE("WARNING: An unknown minetype '[config.minetype]' was set! This is being ignored! Update the maploader code!")
//SKYRAT EDIT END
#endif