Calamity difficulties on world select screen
This commit is contained in:
1 parent
22a9595d1b
commit
929de98d8d
4 files changed
+115
No files matched your search
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user