public static void AddItems() { Debug.LogFormat("[ROR2ML] Attempting to load {0} mod items.", new object[] { ModLoader.ItemMods.Count }); uint num = 1u; foreach (ItemModInfo itemModInfo in ModLoader.ItemMods) { Debug.LogFormat("[ROR2ML] Adding mod item... (Name: {0})", new object[] { itemModInfo.nameTokenString }); if (itemModInfo.toReplace == -1) { ItemCatalog.RegisterItem(ItemIndex.DrizzlePlayerHelper + (int)num, itemModInfo.RegisterModItem()); num += 1u; } else { ItemCatalog.RegisterItem((ItemIndex)itemModInfo.toReplace, itemModInfo.RegisterModItem()); } } }