Even More Modifiers  1.0.0.0
A mod for rolling various bonus stats on items
BackwardsCompatibleHacks.cs
Go to the documentation of this file.
1 using Terraria;
2 using Terraria.ModLoader;
3 using Terraria.ModLoader.IO;
4 
5 namespace Loot.Hacks
6 {
7  // This is here so old (alpha) classes convert to the new classes
8  internal sealed class EMMItem : GlobalItem
9  {
10  public sealed override bool NeedsSaving(Item item) => false;
11 
12  public sealed override void Load(Item item, TagCompound tag)
13  {
14  LootModItem.GetInfo(item).Load(item, tag);
15  }
16 
17  public sealed override TagCompound Save(Item item)
18  {
19  return null;
20  }
21  }
22 
23  internal sealed class EMMWorld : ModWorld
24  {
25  public sealed override TagCompound Save()
26  {
27  return null;
28  }
29 
30  public sealed override void Load(TagCompound tag)
31  {
32  ModContent.GetInstance<LootModWorld>().Load(tag);
33  }
34  }
35 }
This class is responsible for generating modifiers when a world is being created. ...
Definition: LootModWorld.cs:12
Defines an item that may be modified by modifiers from mods
Definition: LootModItem.cs:21
override void Load(Item item, TagCompound tag)
Definition: LootModItem.cs:174
static LootModItem GetInfo(Item item)