Calamity difficulties on world select screen

This commit is contained in:
GinYuH committed 2024-04-17 02:57:05 -07:00
1 parent 22a9595d1b
commit 929de98d8d
4 files changed
+115

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
using CalamityMod.World;
using Terraria.ModLoader;
using Terraria.ModLoader.IO;
namespace CalamityMod.Systems
{
public class WorldSelectionDifficultySystem : ModSystem
{
// Since CalamityWorld is static, and therefore invalid for TryGetHeaderData, make copies for Rev and Death
public override void SaveWorldHeader(TagCompound tag)
{
tag["RevengeanceMode"] = CalamityWorld.revenge;
tag["DeathMode"] = CalamityWorld.death;
}
}
}