mirror of
https://github.com/YouHaveTrouble/YHTMod.git
synced 2026-05-11 21:56:54 +00:00
use item groups in recipe and adjust recipe for calamity's altered progression
This commit is contained in:
+36
-36
@@ -3,6 +3,7 @@ using Terraria;
|
|||||||
using Terraria.DataStructures;
|
using Terraria.DataStructures;
|
||||||
using Terraria.GameContent.Creative;
|
using Terraria.GameContent.Creative;
|
||||||
using Terraria.ID;
|
using Terraria.ID;
|
||||||
|
using Terraria.Localization;
|
||||||
using Terraria.ModLoader;
|
using Terraria.ModLoader;
|
||||||
using YHTMod.Buffs;
|
using YHTMod.Buffs;
|
||||||
using YHTMod.Projectiles.Weapons;
|
using YHTMod.Projectiles.Weapons;
|
||||||
@@ -48,41 +49,40 @@ public class ToclafaneStaff : ModItem
|
|||||||
|
|
||||||
public override void AddRecipes()
|
public override void AddRecipes()
|
||||||
{
|
{
|
||||||
CreateRecipe()
|
var watchGroup = new RecipeGroup(() => Language.GetTextValue("Mods.YHTMod.Recipes.AnyWatch"),
|
||||||
.AddIngredient(ItemID.GuideVoodooDoll, 1)
|
ItemID.GoldWatch,
|
||||||
.AddIngredient(ItemID.HallowedBar, 15)
|
ItemID.SilverWatch,
|
||||||
.AddIngredient(ItemID.CopperWatch)
|
ItemID.TinWatch,
|
||||||
.AddTile(TileID.MythrilAnvil)
|
ItemID.CopperWatch,
|
||||||
.Register();
|
ItemID.PlatinumWatch,
|
||||||
CreateRecipe()
|
ItemID.TungstenWatch
|
||||||
.AddIngredient(ItemID.GuideVoodooDoll, 1)
|
);
|
||||||
.AddIngredient(ItemID.HallowedBar, 15)
|
RecipeGroup.RegisterGroup("YHTMod:Watches", watchGroup);
|
||||||
.AddIngredient(ItemID.TinWatch)
|
|
||||||
.AddTile(TileID.MythrilAnvil)
|
var tier2BarGroup = new RecipeGroup(() => Language.GetTextValue("Mods.YHTMod.Recipes.Tier2Bars"),
|
||||||
.Register();
|
ItemID.MythrilBar,
|
||||||
CreateRecipe()
|
ItemID.OrichalcumBar
|
||||||
.AddIngredient(ItemID.GuideVoodooDoll, 1)
|
);
|
||||||
.AddIngredient(ItemID.HallowedBar, 15)
|
RecipeGroup.RegisterGroup("YHTMod:Tier2Bars", tier2BarGroup);
|
||||||
.AddIngredient(ItemID.SilverWatch)
|
|
||||||
.AddTile(TileID.MythrilAnvil)
|
var recipe = CreateRecipe();
|
||||||
.Register();
|
|
||||||
CreateRecipe()
|
recipe.AddRecipeGroup(watchGroup);
|
||||||
.AddIngredient(ItemID.GuideVoodooDoll, 1)
|
recipe.AddIngredient(ItemID.GuideVoodooDoll);
|
||||||
.AddIngredient(ItemID.HallowedBar, 15)
|
recipe.AddTile(TileID.MythrilAnvil);
|
||||||
.AddIngredient(ItemID.TungstenWatch)
|
|
||||||
.AddTile(TileID.MythrilAnvil)
|
// Calamity delays when you obtain hallowed bars, so use alternate recipe if Calamity is installed
|
||||||
.Register();
|
if (ModLoader.HasMod("CalamityMod"))
|
||||||
CreateRecipe()
|
{
|
||||||
.AddIngredient(ItemID.GuideVoodooDoll, 1)
|
recipe.AddRecipeGroup(tier2BarGroup, 35);
|
||||||
.AddIngredient(ItemID.HallowedBar, 15)
|
recipe.AddIngredient(ItemID.SoulofLight, 10);
|
||||||
.AddTile(TileID.MythrilAnvil)
|
recipe.AddIngredient(ItemID.SoulofLight, 10);
|
||||||
.AddIngredient(ItemID.GoldWatch)
|
}
|
||||||
.Register();
|
else
|
||||||
CreateRecipe()
|
{
|
||||||
.AddIngredient(ItemID.GuideVoodooDoll, 1)
|
recipe.AddIngredient(ItemID.HallowedBar, 15);
|
||||||
.AddIngredient(ItemID.HallowedBar, 15)
|
}
|
||||||
.AddIngredient(ItemID.PlatinumWatch)
|
|
||||||
.AddTile(TileID.MythrilAnvil)
|
recipe.Register();
|
||||||
.Register();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -1,3 +1,8 @@
|
|||||||
|
Recipes: {
|
||||||
|
AnyWatch: Any Watch
|
||||||
|
Tier2Bars: Tier 2 Hardmode Bars
|
||||||
|
}
|
||||||
|
|
||||||
Buffs: {
|
Buffs: {
|
||||||
ToclafaneMinionBuff: {
|
ToclafaneMinionBuff: {
|
||||||
DisplayName: Summon Toclafane
|
DisplayName: Summon Toclafane
|
||||||
|
|||||||
Reference in New Issue
Block a user