De-hardcodes wilderness levels z-traits (#96426)

## About The Pull Request
Tin. If someone decides to add wilderness levels for maps that isnt ice,
they will not suffer anymore. Uses default icy wilderness traits
(renamed define for clarity), also adjusted another var name, for
clarity too.
## Why It's Good For The Game
Allows for a higher degree of customisation for wilderness levels, which
is a very good idea, but somehow it was hardcoded to only work with snow
maps.
## Changelog
Nothing player facing (i hope)
This commit is contained in:
Iajret
2026-06-12 01:03:50 +02:00
committed by GitHub
parent 2f401cba7c
commit 8ef4eb31bc
3 changed files with 11 additions and 5 deletions
+1 -1
View File
@@ -144,7 +144,7 @@ SUBSYSTEM_DEF(mapping)
if(current_map.wilderness_levels)
var/list/FailedZs = list()
LoadGroup(FailedZs, "Wilderness Area", current_map.wilderness_directory, current_map.maps_to_spawn, default_traits = ZTRAITS_WILDS, height_autosetup = FALSE)
LoadGroup(FailedZs, "Wilderness Area", current_map.wilderness_directory, current_map.wilderness_maps_to_spawn, default_traits = current_map.wilderness_z_traits, height_autosetup = FALSE)
if(LAZYLEN(FailedZs))
CRASH("Ice wilds failed to load!")