Corrects mining export names on icebox (#91145)

## About The Pull Request

Closes #90666, converts minetypes to defines, gives icebox a minetype
define which could also be used later to give mining suits some fur or
something.

## Changelog
🆑
fix: Icebox artifact exports no longer claim they're from a lava planet
/🆑
This commit is contained in:
SmArtKar
2025-05-16 15:27:49 -06:00
committed by GitHub
parent 84118874f2
commit 29d9626d3d
5 changed files with 29 additions and 8 deletions
+3 -3
View File
@@ -448,9 +448,9 @@ Used by the AI doomsday and the self-destruct nuke.
#ifndef LOWMEMORYMODE
if(current_map.minetype == "lavaland")
if(current_map.minetype == MINETYPE_LAVALAND)
LoadGroup(FailedZs, "Lavaland", "map_files/Mining", "Lavaland.dmm", default_traits = ZTRAITS_LAVALAND)
else if (!isnull(current_map.minetype) && current_map.minetype != "none")
else if (!isnull(current_map.minetype) && current_map.minetype != MINETYPE_NONE && current_map.minetype != MINETYPE_ICE)
INIT_ANNOUNCE("WARNING: An unknown minetype '[current_map.minetype]' was set! This is being ignored! Update the maploader code!")
#endif
@@ -511,7 +511,7 @@ GLOBAL_LIST_EMPTY(the_station_areas)
/datum/controller/subsystem/mapping/proc/preloadRuinTemplates()
// Still supporting bans by filename
var/list/banned = generateMapList("spaceruinblacklist.txt")
if(current_map.minetype == "lavaland")
if(current_map.minetype == MINETYPE_LAVALAND)
banned += generateMapList("lavaruinblacklist.txt")
else if(current_map.blacklist_file)
banned += generateMapList(current_map.blacklist_file)