Forbidden Fragment gear is now all on the same tier. (Post 2 mechs)
This commit is contained in:
1 parent
a91376690f
commit
ee255cdeb3
3 files changed
+34
No files matched your search
@@ -42,6 +42,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
recipe.AddIngredient(ItemID.FossilOre, 25);
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial);
|
||||
recipe.AddIngredient(ModContent.ItemType<DesertFeather>(), 5);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 5); // This is here to keep the Forbidden Fragment stuff on the same tier.
|
||||
recipe.AddTile(TileID.Bookcases);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -50,6 +50,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddRecipeGroup("AnyAdamantiteBar", 5); // This is here to keep the Forbidden Fragment stuff on the same tier.
|
||||
recipe.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
recipe.AddIngredient(ItemID.SpellTome);
|
||||
recipe.AddTile(TileID.Bookcases);
|
||||
|
||||
@@ -31,6 +31,7 @@ namespace CalamityMod
|
||||
EditLeatherRecipe();
|
||||
EditTerraBladeRecipe();
|
||||
EditFireGauntletRecipe();
|
||||
EditSpiritFlameRecipe();
|
||||
EditGoblinArmySummonRecipe();
|
||||
EditEvilBossSummonRecipes();
|
||||
EditEarlyHardmodeRecipes();
|
||||
@@ -177,6 +178,37 @@ namespace CalamityMod
|
||||
});
|
||||
}
|
||||
|
||||
private static void EditSpiritFlameRecipe() // This is here to keep the Forbidden Fragment stuff on the same tier.
|
||||
{
|
||||
List<Recipe> rec = Main.recipe.ToList();
|
||||
rec.Where(x => x.createItem.type == ItemID.SpiritFlame).ToList().ForEach(s =>
|
||||
{
|
||||
for (int i = 0; i < s.requiredItem.Length; i++)
|
||||
{
|
||||
s.requiredItem[i] = new Item();
|
||||
}
|
||||
s.requiredItem[0].SetDefaults(ItemID.DjinnLamp, false);
|
||||
s.requiredItem[0].stack = 1;
|
||||
s.requiredItem[1].SetDefaults(ItemID.AncientBattleArmorMaterial, false);
|
||||
s.requiredItem[1].stack = 2;
|
||||
s.requiredItem[2].SetDefaults(ItemID.SoulofNight, false);
|
||||
s.requiredItem[2].stack = 12;
|
||||
s.requiredItem[3].SetDefaults(ItemID.AdamantiteBar, false);
|
||||
s.requiredItem[3].stack = 2;
|
||||
s.createItem.SetDefaults(ItemID.SpiritFlame, false);
|
||||
s.createItem.stack = 1;
|
||||
|
||||
ModRecipe r = GetNewRecipe(); // Vanilla items don't like custom item groups.
|
||||
r.AddIngredient(ItemID.DjinnLamp);
|
||||
r.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
r.AddIngredient(ItemID.SoulofNight, 12);
|
||||
r.AddIngredient(ItemID.TitaniumBar, 2);
|
||||
r.AddTile(TileID.MythrilAnvil);
|
||||
r.SetResult(ItemID.SpiritFlame);
|
||||
r.AddRecipe();
|
||||
});
|
||||
}
|
||||
|
||||
private static void EditGoblinArmySummonRecipe()
|
||||
{
|
||||
List<Recipe> rec = Main.recipe.ToList();
|
||||
|
||||
Reference in new issue
Block a user