This repository was archived by the owner on Dec 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRecipeGroups.cs
More file actions
41 lines (36 loc) · 2.5 KB
/
RecipeGroups.cs
File metadata and controls
41 lines (36 loc) · 2.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using Terraria;
using Terraria.ID;
using Terraria.Localization;
using Terraria.ModLoader;
namespace Techarria
{
public class RecipeGroups : ModSystem
{
public override void AddRecipeGroups()
{
// every non-biome chest as a recipe group
// Legacy.Misc37 is "Any"
RecipeGroup ChestRecipeGroup = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.Chest)}",
ItemID.Chest, ItemID.GoldChest, ItemID.FrozenChest, ItemID.IvyChest, ItemID.LihzahrdChest, ItemID.LivingWoodChest, ItemID.MushroomChest,
ItemID.RichMahoganyChest, ItemID.DesertChest, ItemID.SkywareChest, ItemID.WaterChest, ItemID.WebCoveredChest, ItemID.GraniteChest,
ItemID.MarbleChest, ItemID.ShadowChest, ItemID.GoldenChest, ItemID.GolfChest, ItemID.NebulaChest, ItemID.SolarChest, ItemID.VortexChest,
ItemID.BoneChest, ItemID.LesionChest, ItemID.FleshChest, ItemID.GlassChest, ItemID.HoneyChest, ItemID.SlimeChest, ItemID. SteampunkChest,
ItemID.BambooChest, ItemID.BlueDungeonChest, ItemID.BorealWoodChest, ItemID.CactusChest, ItemID.CrystalChest, ItemID.DynastyChest,
ItemID.EbonwoodChest, ItemID.GreenDungeonChest, ItemID.MartianChest, ItemID.MeteoriteChest, ItemID.ObsidianChest, ItemID.PalmWoodChest,
ItemID.PearlwoodChest, ItemID.PinkDungeonChest, ItemID.PumpkinChest, ItemID.ShadewoodChest, ItemID.SpiderChest, ItemID.SpookyChest);
RecipeGroup.RegisterGroup(nameof(ItemID.Chest), ChestRecipeGroup);
// Iron and lead ore
RecipeGroup IronOreRecipeGroup = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.IronOre)}",
ItemID.IronOre, ItemID.LeadOre);
RecipeGroup.RegisterGroup(nameof(ItemID.IronOre), IronOreRecipeGroup);
// any Copper Bar
RecipeGroup CopperRecipeGroup = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.CopperBar)}",
ItemID.CopperBar, ItemID.TinBar);
RecipeGroup.RegisterGroup(nameof(ItemID.CopperBar), CopperRecipeGroup);
// any Candle
RecipeGroup CandleRecipeGroup = new RecipeGroup(() => $"{Language.GetTextValue("LegacyMisc.37")} {Lang.GetItemNameValue(ItemID.Candle)}",
ItemID.Candle, ItemID.PlatinumCandle);
RecipeGroup.RegisterGroup(nameof(ItemID.Candle), CandleRecipeGroup);
}
}
}