Merge branch 'master' of https://github.com/CalamityTeam/CalamityMod
This commit is contained in:
commit
4b017e304d
84 files changed
+233
-131
No files matched your search
@@ -90,6 +90,7 @@ namespace CalamityMod.ILEditing
|
||||
// Fix vanilla bugs exposed by Calamity mechanics
|
||||
On.Terraria.Main.InitLifeBytes += BossRushLifeBytes;
|
||||
IL.Terraria.NPC.NPCLoot += FixSplittingWormBannerDrops;
|
||||
IL.Terraria.Main.DoUpdate += FixProjectileUpdatePriorityProblems;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -163,6 +164,7 @@ namespace CalamityMod.ILEditing
|
||||
// Fix vanilla bugs exposed by Calamity mechanics
|
||||
On.Terraria.Main.InitLifeBytes -= BossRushLifeBytes;
|
||||
IL.Terraria.NPC.NPCLoot -= FixSplittingWormBannerDrops;
|
||||
IL.Terraria.Main.DoUpdate -= FixProjectileUpdatePriorityProblems;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,13 +4,22 @@ using Mono.Cecil.Cil;
|
||||
using MonoMod.Cil;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Reflection;
|
||||
using Terraria;
|
||||
using Terraria.GameInput;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.ILEditing
|
||||
{
|
||||
public partial class ILChanges
|
||||
{
|
||||
public struct OrderedProjectileEntry
|
||||
{
|
||||
public int OriginalIndex;
|
||||
public Projectile Proj;
|
||||
}
|
||||
|
||||
// This list should contain all vanilla NPCs present in Boss Rush which ARE NOT bosses and whose health is boosted over 32,767.
|
||||
private static readonly List<int> NeedsFourLifeBytes = new List<int>()
|
||||
{
|
||||
@@ -70,6 +79,8 @@ namespace CalamityMod.ILEditing
|
||||
NPCID.AncientCultistSquidhead,
|
||||
};
|
||||
|
||||
public static readonly List<OrderedProjectileEntry> OrderedProjectiles = new List<OrderedProjectileEntry>();
|
||||
|
||||
#region Fixing NPC HP Sync Byte Counts in Boss Rush
|
||||
// CONTEXT FOR FIX: When NPCs sync they have a pre-determined amount of bytes that are used to store HP/Max NPC information in packets for efficiency.
|
||||
// However, this may not always coincide with the true HP of the NPC when it's created if it has more HP than the allocated bytes can sufficiently store, which can
|
||||
@@ -127,6 +138,68 @@ namespace CalamityMod.ILEditing
|
||||
}
|
||||
#endregion Fixing Splitting Worm Banner Spam in Deathmode
|
||||
|
||||
#region Fix Projectile Update Priority Problems
|
||||
|
||||
// CONTEXT FOR FIX: The way projectile updating works is via looping, starting from 0 and ending at 999. For most cases this works sufficiently.
|
||||
// However, in contexts where two projectile's update logic are dependent on each-other in some way (such as mechworm segment movement) it is possible
|
||||
// that one projectile will update unexpectedly before the other, creating gaps. By making the update logic ordered based on a priority system, this can be
|
||||
// alleviated.
|
||||
private static void FixProjectileUpdatePriorityProblems(ILContext il)
|
||||
{
|
||||
var cursor = new ILCursor(il);
|
||||
|
||||
// Locate the location where the projectile loop starts.
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchCallOrCallvirt<LockOnHelper>("SetUP")))
|
||||
{
|
||||
LogFailure("Projectile Update Priority fix", "Could not locate the LockOnHelper.SetUP method.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Before doing anything else, prepare the list of ordered projectiles.
|
||||
cursor.EmitDelegate<Func<List<OrderedProjectileEntry>>>(() =>
|
||||
{
|
||||
List<OrderedProjectileEntry> cache = new List<OrderedProjectileEntry>();
|
||||
for (int i = 0; i < Main.maxProjectiles; i++)
|
||||
{
|
||||
cache.Add(new OrderedProjectileEntry()
|
||||
{
|
||||
Proj = Main.projectile[i],
|
||||
OriginalIndex = i
|
||||
});
|
||||
}
|
||||
return cache.OrderByDescending(p => p.Proj.active ? p.Proj.Calamity().UpdatePriority : 0f).ToList();
|
||||
});
|
||||
cursor.Emit(OpCodes.Stsfld, typeof(ILChanges).GetField("OrderedProjectiles", BindingFlags.Static | BindingFlags.Public));
|
||||
|
||||
// Go before the declaration of the projectile loop index and declare the ordered projectile.
|
||||
if (!cursor.TryGotoNext(MoveType.Before, i => i.MatchStsfld<Main>("ProjectileUpdateLoopIndex")))
|
||||
{
|
||||
LogFailure("Projectile Update Priority fix", "Could not locate the ProjectileUpdateLoopIndex field.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Replace the projectile reference on the Projectile.Update call.
|
||||
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdelemRef()))
|
||||
{
|
||||
LogFailure("Projectile Update Priority fix", $"Could not locate the Main.projectile index load reference.");
|
||||
return;
|
||||
}
|
||||
|
||||
// Pop the Main.projectile[i] reference and replace it with OrderedProjectiles[i].Proj.
|
||||
cursor.Emit(OpCodes.Pop);
|
||||
cursor.Emit(OpCodes.Ldsfld, typeof(ILChanges).GetField("OrderedProjectiles", BindingFlags.Static | BindingFlags.Public));
|
||||
cursor.Emit(OpCodes.Ldloc, 29);
|
||||
cursor.Emit(OpCodes.Callvirt, typeof(List<OrderedProjectileEntry>).GetMethod("get_Item"));
|
||||
cursor.Emit(OpCodes.Ldfld, typeof(OrderedProjectileEntry).GetField("Proj"));
|
||||
|
||||
// Remove the direct i reference in the Update call and replace it with the original index in the cache, to prevent update ID
|
||||
// mismatches.
|
||||
cursor.Remove();
|
||||
cursor.Emit(OpCodes.Ldloc, 29);
|
||||
cursor.EmitDelegate<Func<int, int>>(i => OrderedProjectiles[i].OriginalIndex);
|
||||
}
|
||||
#endregion Fix Projectile Update Priority Problems
|
||||
|
||||
#region Make Mouse Hover Items Work with Animated Items
|
||||
private static void MakeMouseHoverItemsSupportAnimations(ILContext il)
|
||||
{
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.CelestialStone);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>());
|
||||
recipe.AddIngredient(ItemID.RangerEmblem);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>());
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<DraedonBar>(), 2);
|
||||
recipe.AddIngredient(ItemID.AvengerEmblem);
|
||||
recipe.AddIngredient(ModContent.ItemType<DraedonBar>(), 2);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -38,10 +38,10 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.CelestialEmblem);
|
||||
recipe.AddRecipeGroup("AnyEvilWater", 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<CalamityDust>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 2);
|
||||
recipe.AddRecipeGroup("AnyEvilWater", 10);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddIngredient(ItemID.PapyrusScarab);
|
||||
recipe.AddIngredient(ItemID.PygmyNecklace);
|
||||
recipe.AddIngredient(ItemID.SummonerEmblem);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 5);
|
||||
recipe.AddIngredient(ItemID.HolyWater, 30);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -40,9 +40,9 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.FragmentStardust, 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<StatisBlessing>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TheFirstShadowflame>());
|
||||
recipe.AddIngredient(ItemID.FragmentStardust, 10);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -39,10 +39,10 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.MasterNinjaGear);
|
||||
recipe.AddIngredient(ItemID.FrogLeg);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 50);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofEleum>());
|
||||
recipe.AddIngredient(ItemID.MasterNinjaGear);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -101,8 +101,8 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddRecipeGroup("WingsGroup");
|
||||
recipe.AddIngredient(ModContent.ItemType<AngelTreads>());
|
||||
recipe.AddRecipeGroup("WingsGroup");
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
|
||||
@@ -31,8 +31,8 @@ namespace CalamityMod.Items.Ammo
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>());
|
||||
recipe.AddIngredient(ItemID.HolyArrow, 150);
|
||||
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>());
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this, 150);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -30,8 +30,8 @@ namespace CalamityMod.Items.Ammo
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.Glass, 3);
|
||||
recipe.AddIngredient(ItemID.Grenade);
|
||||
recipe.AddIngredient(ItemID.Glass, 3);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this, 10);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace CalamityMod.Items.Ammo
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>());
|
||||
recipe.AddIngredient(ItemID.EmptyBullet, 999);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>());
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this, 999);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -31,9 +31,9 @@ namespace CalamityMod.Items.Ammo
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.WoodenArrow, 250);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofChaos>());
|
||||
recipe.AddIngredient(ItemID.Torch);
|
||||
recipe.AddIngredient(ItemID.WoodenArrow, 250);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this, 250);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -33,8 +33,8 @@ namespace CalamityMod.Items.Ammo
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LivingShard>());
|
||||
recipe.AddIngredient(ItemID.WoodenArrow, 250);
|
||||
recipe.AddIngredient(ModContent.ItemType<LivingShard>());
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this, 250);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -61,8 +61,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerChestplate>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareBodyArmor>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonBreastplate>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 18);
|
||||
recipe.AddIngredient(ModContent.ItemType<FrostBarrier>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 18);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
@@ -71,8 +71,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<SilvaArmor>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareBodyArmor>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonBreastplate>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 18);
|
||||
recipe.AddIngredient(ModContent.ItemType<FrostBarrier>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 18);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -40,8 +40,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerLeggings>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareCuisses>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonLeggings>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 15);
|
||||
recipe.AddIngredient(ItemID.FlyingCarpet);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 15);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
@@ -50,8 +50,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<SilvaLeggings>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareCuisses>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonLeggings>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 15);
|
||||
recipe.AddIngredient(ItemID.FlyingCarpet);
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 15);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -78,8 +78,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareMask>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -76,8 +76,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerHelmet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareHornedHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonVisage>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -83,8 +83,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<GodSlayerMask>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonHelmet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -92,8 +92,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<SilvaHelmet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareHelmet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonHornedHelm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -76,8 +76,8 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddIngredient(ModContent.ItemType<SilvaMaskedCap>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodflareHornedMask>());
|
||||
recipe.AddIngredient(ModContent.ItemType<TarragonMask>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<PsychoticAmulet>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AuricBar>(), 12);
|
||||
recipe.AddTile(ModContent.TileType<CosmicAnvil>());
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -96,15 +96,15 @@ namespace CalamityMod.Items.Armor
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.NecroHelmet);
|
||||
recipe.AddIngredient(ModContent.ItemType<PlagueCellCluster>(), 15);
|
||||
recipe.AddIngredient(ItemID.NecroHelmet);
|
||||
recipe.AddIngredient(ItemID.Nanites, 11);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.AncientNecroHelmet);
|
||||
recipe.AddIngredient(ModContent.ItemType<PlagueCellCluster>(), 15);
|
||||
recipe.AddIngredient(ItemID.AncientNecroHelmet);
|
||||
recipe.AddIngredient(ItemID.Nanites, 11);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -33,8 +33,8 @@ namespace CalamityMod.Items.Armor
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.NecroGreaves);
|
||||
recipe.AddIngredient(ModContent.ItemType<PlagueCellCluster>(), 21);
|
||||
recipe.AddIngredient(ItemID.NecroGreaves);
|
||||
recipe.AddIngredient(ItemID.Nanites, 17);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -34,8 +34,8 @@ namespace CalamityMod.Items.Armor
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.NecroBreastplate); //I will instead change the position of the necro armor get trolled
|
||||
recipe.AddIngredient(ModContent.ItemType<PlagueCellCluster>(), 29); //I like prime numbers =)
|
||||
recipe.AddIngredient(ItemID.NecroBreastplate);
|
||||
recipe.AddIngredient(ItemID.Nanites, 19); //Change this to 30 and 20 and I will hunt you down
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -36,15 +36,15 @@ namespace CalamityMod.Items.Potions
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<SulphurousSand>(), 15); //possibly add herbs if added to sulph sea
|
||||
recipe.AddIngredient(ModContent.ItemType<UrchinStinger>(), 15);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddTile(TileID.Bottles);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 10);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 10);
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -43,8 +43,8 @@ namespace CalamityMod.Items.Potions
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 50);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 50);
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -35,20 +35,20 @@ namespace CalamityMod.Items.Potions
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.alchemy = true;
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<EbonianGel>(), 2);
|
||||
recipe.AddIngredient(ItemID.PinkGel);
|
||||
recipe.AddIngredient(ItemID.Daybloom);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
// Alternative recipe is not "alchemy" because none of the blood orb recipes are
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 2);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -35,20 +35,20 @@ namespace CalamityMod.Items.Potions
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.alchemy = true;
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<EbonianGel>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<MurkySludge>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DemonicBoneAsh>());
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
// Alternative recipe is not "alchemy" because none of the blood orb recipes are
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodOrb>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 2);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddTile(TileID.AlchemyTable);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -34,18 +34,18 @@ namespace CalamityMod.Items.Tools
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.TungstenAxe);
|
||||
recipe.AddIngredient(ItemID.TungstenBar, 10);
|
||||
recipe.AddIngredient(ItemID.Wood, 15);
|
||||
recipe.anyWood = true;
|
||||
recipe.AddIngredient(ItemID.TungstenBar, 10);
|
||||
recipe.AddIngredient(ItemID.TungstenAxe);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SilverAxe);
|
||||
recipe.AddIngredient(ItemID.SilverBar, 10);
|
||||
recipe.AddIngredient(ItemID.Wood, 15);
|
||||
recipe.anyWood = true;
|
||||
recipe.AddIngredient(ItemID.SilverBar, 10);
|
||||
recipe.AddIngredient(ItemID.SilverAxe);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -45,10 +45,10 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.WandofSparking);
|
||||
recipe.AddIngredient(ItemID.CrimsonRod);
|
||||
recipe.AddIngredient(ItemID.AmberStaff);
|
||||
recipe.AddIngredient(ItemID.MagicMissile);
|
||||
recipe.AddIngredient(ItemID.WandofSparking);
|
||||
recipe.AddIngredient(ItemID.AmberStaff);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodSample>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 10);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
|
||||
@@ -108,10 +108,10 @@ Fires night wyverns and stars from the sky that stick to enemies and tiles and e
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<WyvernsCall>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<RuinousSoul>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<ExodiumClusterOre>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<WyvernsCall>());
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -45,8 +45,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.FrostCore);
|
||||
recipe.AddIngredient(ItemID.FrostStaff);
|
||||
recipe.AddIngredient(ItemID.FrostCore);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofEleum>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<VerstaltiteBar>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<SeaPrism>(), 10);
|
||||
|
||||
@@ -92,8 +92,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<DivineGeode>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<UndinesRetribution>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DivineGeode>(), 8);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<UnholyEssence>(), 10);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
|
||||
@@ -82,9 +82,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<TerraRay>());
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<TerraRay>());
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 8);
|
||||
recipe.AddIngredient(ItemID.SpellTome);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 8);
|
||||
recipe.AddTile(TileID.Bookcases);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -51,10 +51,10 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SpaceGun);
|
||||
recipe.AddIngredient(ItemID.Granite, 25);
|
||||
recipe.AddIngredient(ItemID.Obsidian, 15);
|
||||
recipe.AddIngredient(ItemID.Amber, 5);
|
||||
recipe.AddIngredient(ItemID.SpaceGun);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -55,9 +55,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarkPlasma>(), 3);
|
||||
recipe.AddIngredient(ItemID.SpectreStaff);
|
||||
recipe.AddIngredient(ItemID.MagnetSphere);
|
||||
recipe.AddIngredient(ModContent.ItemType<DarkPlasma>(), 3);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -45,10 +45,10 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.WandofSparking);
|
||||
recipe.AddIngredient(ItemID.Vilethorn);
|
||||
recipe.AddIngredient(ItemID.AmberStaff);
|
||||
recipe.AddIngredient(ItemID.MagicMissile);
|
||||
recipe.AddIngredient(ItemID.WandofSparking);
|
||||
recipe.AddIngredient(ItemID.AmberStaff);
|
||||
recipe.AddIngredient(ModContent.ItemType<TrueShadowScale>(), 15);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 10);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
|
||||
@@ -81,16 +81,16 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 7);
|
||||
recipe.AddIngredient(ItemID.Musket);
|
||||
recipe.AddIngredient(ItemID.ToxicFlask);
|
||||
recipe.AddIngredient(ItemID.Musket);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 7);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 7);
|
||||
recipe.AddIngredient(ItemID.TheUndertaker);
|
||||
recipe.AddIngredient(ItemID.ToxicFlask);
|
||||
recipe.AddIngredient(ItemID.TheUndertaker);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 7);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -50,9 +50,9 @@ 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.AddIngredient(ItemID.AncientBattleArmorMaterial, 2);
|
||||
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();
|
||||
|
||||
@@ -45,9 +45,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.ShadowbeamStaff);
|
||||
recipe.AddIngredient(ModContent.ItemType<ArmoredShell>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<RuinousSoul>(), 2);
|
||||
recipe.AddIngredient(ItemID.ShadowbeamStaff);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -45,10 +45,10 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 5);
|
||||
recipe.AddIngredient(ItemID.NebulaArcanum);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<RuinousSoul>(), 4);
|
||||
recipe.AddIngredient(ModContent.ItemType<ExodiumClusterOre>(), 12);
|
||||
recipe.AddIngredient(ItemID.NebulaArcanum);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -40,9 +40,9 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.FragmentVortex, 20);
|
||||
recipe.AddIngredient(ItemID.BeeGun);
|
||||
recipe.AddIngredient(ItemID.WaspGun);
|
||||
recipe.AddIngredient(ItemID.FragmentVortex, 20);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -42,8 +42,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<MeldiateBar>(), 9);
|
||||
recipe.AddIngredient(ItemID.SpellTome);
|
||||
recipe.AddIngredient(ModContent.ItemType<MeldiateBar>(), 9);
|
||||
recipe.AddTile(TileID.Bookcases);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -118,9 +118,9 @@ Fires wyverns and colored feathers from the sky that stick to enemies and tiles
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<SkyGlaze>());
|
||||
recipe.AddIngredient(ItemID.SoulofFlight, 15);
|
||||
recipe.AddRecipeGroup("AnyMythrilBar", 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<SkyGlaze>());
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -43,9 +43,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.BrokenHeroSword);
|
||||
recipe.AddIngredient(ModContent.ItemType<UnholyCore>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>(), 3);
|
||||
recipe.AddIngredient(ItemID.BrokenHeroSword);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -98,20 +98,20 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>(), 3);
|
||||
recipe.AddIngredient(ItemID.Starfury);
|
||||
recipe.AddIngredient(ItemID.EnchantedSword);
|
||||
recipe.AddIngredient(ItemID.Excalibur);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>(), 3);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>(), 3);
|
||||
recipe.AddIngredient(ItemID.Starfury);
|
||||
recipe.AddIngredient(ItemID.Arkhalis);
|
||||
recipe.AddIngredient(ItemID.Excalibur);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofCinder>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>(), 3);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -37,16 +37,16 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.LightsBane);
|
||||
recipe.AddIngredient(ItemID.BladeofGrass);
|
||||
recipe.AddIngredient(ItemID.Muramasa);
|
||||
recipe.AddIngredient(ItemID.BladeofGrass);
|
||||
recipe.AddIngredient(ItemID.FieryGreatsword);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.BloodButcherer);
|
||||
recipe.AddIngredient(ItemID.BladeofGrass);
|
||||
recipe.AddIngredient(ItemID.Muramasa);
|
||||
recipe.AddIngredient(ItemID.BladeofGrass);
|
||||
recipe.AddIngredient(ItemID.FieryGreatsword);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<DraedonBar>(), 8);
|
||||
recipe.AddIngredient(ItemID.FieryGreatsword);
|
||||
recipe.AddIngredient(ModContent.ItemType<DraedonBar>(), 8);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -40,10 +40,10 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SolarEruption);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofChaos>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<DivineGeode>(), 6);//Quantities may or may not be intentional hue
|
||||
recipe.AddIngredient(ItemID.SolarEruption);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -36,18 +36,18 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LeechingDagger>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AncientShiv>());
|
||||
recipe.AddIngredient(ModContent.ItemType<SporeKnife>());
|
||||
recipe.AddIngredient(ModContent.ItemType<FlameburstShortsword>());
|
||||
recipe.AddIngredient(ModContent.ItemType<LeechingDagger>());
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodyRupture>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AncientShiv>());
|
||||
recipe.AddIngredient(ModContent.ItemType<SporeKnife>());
|
||||
recipe.AddIngredient(ModContent.ItemType<FlameburstShortsword>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BloodyRupture>());
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -39,9 +39,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.DeathSickle);
|
||||
recipe.AddIngredient(ModContent.ItemType<PlagueCellCluster>(), 10);
|
||||
recipe.AddIngredient(ItemID.CursedFlame, 20);
|
||||
recipe.AddIngredient(ItemID.DeathSickle);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -39,9 +39,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<WindBlade>());
|
||||
recipe.AddIngredient(ModContent.ItemType<StormSaber>());
|
||||
recipe.AddIngredient(ModContent.ItemType<WindBlade>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 3);
|
||||
recipe.AddIngredient(ItemID.FragmentSolar, 10);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -109,8 +109,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<ArkoftheAncients>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>());
|
||||
recipe.AddIngredient(ItemID.BrokenHeroSword);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<LivingShard>(), 3);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -53,8 +53,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SpectreBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CursedCapper>());
|
||||
recipe.AddIngredient(ItemID.SpectreBar, 5);
|
||||
recipe.AddIngredient(ItemID.ShroomiteBar, 5);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -72,10 +72,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SniperRifle);
|
||||
recipe.AddIngredient(ModContent.ItemType<UeliaceBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<AstralJelly>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 50);
|
||||
recipe.AddIngredient(ItemID.SniperRifle);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -55,11 +55,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<TerraFlameburster>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Meowthrower>());
|
||||
recipe.AddIngredient(ModContent.ItemType<MepheticSprayer>());
|
||||
recipe.AddIngredient(ModContent.ItemType<BrimstoneFlamesprayer>());
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -50,10 +50,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SniperScope);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<RuinousSoul>(), 4);
|
||||
recipe.AddIngredient(ModContent.ItemType<ExodiumClusterOre>(), 12);
|
||||
recipe.AddIngredient(ItemID.SniperScope);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -104,11 +104,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemType<PlanetaryAnnihilation>());
|
||||
recipe.AddIngredient(ItemType<Alluvion>());
|
||||
recipe.AddIngredient(ItemType<AstrealDefeat>());
|
||||
recipe.AddIngredient(ItemType<ClockworkBow>());
|
||||
recipe.AddIngredient(ItemType<Galeforce>());
|
||||
recipe.AddIngredient(ItemType<PlanetaryAnnihilation>());
|
||||
recipe.AddIngredient(ItemType<TheBallista>());
|
||||
recipe.AddIngredient(ItemType<MiracleMatter>());
|
||||
recipe.AddTile(TileType<DraedonsForge>());
|
||||
|
||||
@@ -60,9 +60,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 5);
|
||||
recipe.AddIngredient(ItemID.StakeLauncher);
|
||||
recipe.AddIngredient(ItemID.ExplosivePowder, 100);
|
||||
recipe.AddIngredient(ModContent.ItemType<CruptixBar>(), 5);
|
||||
recipe.AddIngredient(ItemID.LivingFireBlock, 75);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -69,16 +69,16 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.DemonBow);
|
||||
recipe.AddIngredient(ItemID.MoltenFury);
|
||||
recipe.AddIngredient(ItemID.BeesKnees);
|
||||
recipe.AddIngredient(ItemID.MoltenFury);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 10);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.TendonBow);
|
||||
recipe.AddIngredient(ItemID.MoltenFury);
|
||||
recipe.AddIngredient(ItemID.BeesKnees);
|
||||
recipe.AddIngredient(ItemID.MoltenFury);
|
||||
recipe.AddIngredient(ModContent.ItemType<PurifiedGel>(), 10);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -88,9 +88,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<ReaperTooth>(), 6);
|
||||
recipe.AddIngredient(ItemID.Tsunami);
|
||||
recipe.AddIngredient(ModContent.ItemType<FlarewingBow>());
|
||||
recipe.AddIngredient(ModContent.ItemType<ReaperTooth>(), 6);
|
||||
recipe.AddIngredient(ItemID.SharkFin, 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 10);
|
||||
|
||||
@@ -106,10 +106,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmicBolter>());
|
||||
recipe.AddIngredient(ItemID.DaedalusStormbow);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -71,14 +71,14 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<P90>());
|
||||
recipe.AddIngredient(ItemID.Uzi);
|
||||
recipe.AddIngredient(ModContent.ItemType<Aeries>());
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddIngredient(ItemID.FragmentVortex, 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 6);
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCalamity>(), 3);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 25);
|
||||
recipe.AddIngredient(ModContent.ItemType<P90>());
|
||||
recipe.AddIngredient(ItemID.Uzi);
|
||||
recipe.AddIngredient(ModContent.ItemType<Aeries>());
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -74,12 +74,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<ChargedDartRifle>());
|
||||
recipe.AddIngredient(ModContent.ItemType<FrostbiteBlaster>());
|
||||
recipe.AddIngredient(ItemID.Shotgun);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -52,8 +52,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.HolyWater, 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<GrandScale>());
|
||||
recipe.AddIngredient(ItemID.SandstorminaBottle);
|
||||
recipe.AddIngredient(ModContent.ItemType<GrandScale>());
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -55,8 +55,6 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<IceStar>(), 200);
|
||||
recipe.AddIngredient(ItemID.FrozenKey);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Avalanche>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<BittercoldStaff>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<EffluviumBow>(), 2);
|
||||
@@ -65,8 +63,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
recipe.AddIngredient(ModContent.ItemType<SnowstormStaff>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<SoulofCryogen>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<FrostFlare>(), 2);
|
||||
recipe.AddIngredient(ItemID.FrostCore, 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<CryoStone>());
|
||||
recipe.AddIngredient(ItemID.FrozenKey);
|
||||
recipe.AddIngredient(ItemID.FrostCore, 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<EssenceofEleum>(), 10);
|
||||
recipe.AddTile(TileID.IceMachine);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -61,10 +61,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.DayBreak);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 7);
|
||||
recipe.AddIngredient(ModContent.ItemType<RuinousSoul>(), 4);
|
||||
recipe.AddIngredient(ModContent.ItemType<ExodiumClusterOre>(), 12);
|
||||
recipe.AddIngredient(ItemID.DayBreak);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this, 1);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -56,9 +56,9 @@ Stealth strikes continuously leave spectral clones in their wake");
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LuminousStriker>());
|
||||
recipe.AddIngredient(ModContent.ItemType<PhantomLance>(), 500);
|
||||
recipe.AddIngredient(ModContent.ItemType<RuinousSoul>(), 4);
|
||||
recipe.AddIngredient(ModContent.ItemType<Phantoplasm>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<PhantomLance>(), 500);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -53,10 +53,10 @@ Stealth strikes leak tar as they fly");
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.MolotovCocktail, 50);
|
||||
recipe.AddIngredient(ModContent.ItemType<SolarVeil>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<ConsecratedWater>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DesecratedWater>());
|
||||
recipe.AddIngredient(ModContent.ItemType<SpentFuelContainer>());
|
||||
recipe.AddIngredient(ModContent.ItemType<SolarVeil>(), 10);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -53,9 +53,9 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<ElementalAxe>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CorvidHarbringerStaff>());
|
||||
recipe.AddIngredient(ModContent.ItemType<AncientIceChunk>());
|
||||
recipe.AddIngredient(ModContent.ItemType<ElementalAxe>());
|
||||
recipe.AddIngredient(ModContent.ItemType<EnergyStaff>());
|
||||
recipe.AddIngredient(ModContent.ItemType<MiracleMatter>());
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
|
||||
@@ -49,11 +49,11 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<PlantationStaff>());
|
||||
recipe.AddIngredient(ModContent.ItemType<HauntedScroll>());
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<BarofLife>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
recipe.AddIngredient(ModContent.ItemType<StaffOfNecrosteocytes>());
|
||||
recipe.AddIngredient(ModContent.ItemType<VileFeeder>());
|
||||
recipe.AddIngredient(ItemID.ImpStaff);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
recipe.AddIngredient(ModContent.ItemType<StaffOfNecrosteocytes>());
|
||||
recipe.AddIngredient(ModContent.ItemType<ScabRipper>());
|
||||
recipe.AddIngredient(ItemID.ImpStaff);
|
||||
recipe.AddTile(TileID.Anvils);
|
||||
recipe.AddTile(TileID.DemonAltar);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -42,19 +42,19 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LivingShard>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<EyeOfNight>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DeepseaStaff>());
|
||||
recipe.AddIngredient(ItemID.OpticStaff);
|
||||
recipe.AddIngredient(ModContent.ItemType<LivingShard>(), 10);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<LivingShard>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<FleshOfInfidelity>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DeepseaStaff>());
|
||||
recipe.AddIngredient(ItemID.OpticStaff);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.AddIngredient(ModContent.ItemType<LivingShard>(), 10);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
|
||||
@@ -53,10 +53,10 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 40);
|
||||
recipe.AddIngredient(ModContent.ItemType<Excelsus>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmicViperEngine>());
|
||||
recipe.AddIngredient(ItemID.WingsVortex);
|
||||
recipe.AddIngredient(ModContent.ItemType<CosmiliteBar>(), 40);
|
||||
recipe.AddIngredient(ModContent.ItemType<ShadowspecBar>(), 5);
|
||||
recipe.AddTile(ModContent.TileType<DraedonsForge>());
|
||||
recipe.SetResult(this);
|
||||
|
||||
@@ -70,10 +70,10 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<SunGodStaff>());
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<RuinousSoul>(), 2);
|
||||
recipe.AddIngredient(ModContent.ItemType<ExodiumClusterOre>(), 12);
|
||||
recipe.AddIngredient(ModContent.ItemType<SunGodStaff>());
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -122,8 +122,11 @@ namespace CalamityMod.Projectiles
|
||||
public int ExplosiveEnchantCountdown = 0;
|
||||
public const int ExplosiveEnchantTime = 2400;
|
||||
|
||||
#region SetDefaults
|
||||
public override void SetDefaults(Projectile projectile)
|
||||
// Update priority variable.
|
||||
public float UpdatePriority = 0f;
|
||||
|
||||
#region SetDefaults
|
||||
public override void SetDefaults(Projectile projectile)
|
||||
{
|
||||
switch (projectile.type)
|
||||
{
|
||||
@@ -419,7 +422,7 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
// Disable Lunatic Cultist's homing resistance globally
|
||||
ProjectileID.Sets.Homing[projectile.type] = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region PreAI
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
// Decide where to position the laserbeam.
|
||||
Vector2 circlePointDirection = projectile.velocity.SafeNormalize(Vector2.UnitX * Owner.direction);
|
||||
projectile.Center = MagicCircle.Center + projectile.velocity * projectile.scale * -12f + Owner.velocity;
|
||||
projectile.Center = MagicCircle.Center;
|
||||
|
||||
// Update the laser length.
|
||||
float[] laserLengthSamplePoints = new float[24];
|
||||
@@ -171,11 +171,11 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
GameShaders.Misc["CalamityMod:Flame"].UseImage("Images/Misc/Perlin");
|
||||
|
||||
Vector2[] basePoints = new Vector2[12];
|
||||
Vector2[] basePoints = new Vector2[24];
|
||||
for (int i = 0; i < basePoints.Length; i++)
|
||||
basePoints[i] = projectile.Center + projectile.velocity * i / (basePoints.Length - 1f) * LaserLength;
|
||||
|
||||
Vector2 overallOffset = projectile.Size * 0.5f - Main.screenPosition;
|
||||
Vector2 overallOffset = -Main.screenPosition;
|
||||
RayDrawer.Draw(basePoints, overallOffset, 92);
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -34,6 +34,9 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
// Always update before the laserbeam, so that it doesn't recieve strange offsets.
|
||||
projectile.Calamity().UpdatePriority = 1f;
|
||||
|
||||
// If the owner is no longer able to cast the circle, kill it.
|
||||
if (!Owner.channel || Owner.noItems || Owner.CCed)
|
||||
{
|
||||
@@ -55,7 +58,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
// Decide where to position the magic circle.
|
||||
Vector2 circlePointDirection = projectile.velocity.SafeNormalize(Vector2.UnitX * Owner.direction);
|
||||
projectile.Center = Owner.Center + Vector2.UnitX * Owner.direction * 30f + circlePointDirection * projectile.scale * 56f;
|
||||
projectile.Center = Owner.Center + circlePointDirection * projectile.scale * 56f;
|
||||
|
||||
// Adjust the owner's direction.
|
||||
Owner.ChangeDir(projectile.direction);
|
||||
|
||||
@@ -25,6 +25,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
private ref float CurrentChargingFrames => ref projectile.ai[0];
|
||||
private ref float LoadedBolts => ref projectile.ai[1];
|
||||
private ref float FramesToLoadBolt => ref projectile.localAI[0];
|
||||
private ref float LastDirection => ref projectile.localAI[1];
|
||||
|
||||
//private ref float Overfilled => ref projectile.localAI[1]; Until i implement the bow animation there is no need for that
|
||||
private float angularSpread = MathHelper.ToRadians(16);
|
||||
@@ -161,20 +162,29 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
if (Main.myPlayer == projectile.owner)
|
||||
{
|
||||
float interpolant = Utils.InverseLerp(5f, 25f, projectile.Distance(Main.MouseWorld), true);
|
||||
float interpolant = Utils.InverseLerp(5f, 25f, Owner.Distance(Main.MouseWorld), true);
|
||||
Vector2 oldVelocity = projectile.velocity;
|
||||
projectile.velocity = Vector2.Lerp(projectile.velocity, projectile.SafeDirectionTo(Main.MouseWorld), interpolant);
|
||||
projectile.velocity = Vector2.Lerp(projectile.velocity, Owner.SafeDirectionTo(Main.MouseWorld), interpolant);
|
||||
if (projectile.velocity != oldVelocity)
|
||||
{
|
||||
projectile.netSpam = 0;
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
projectile.position = armPosition - projectile.Size * 0.5f + projectile.velocity.SafeNormalize(Vector2.Zero) * 35f;
|
||||
projectile.rotation = projectile.velocity.ToRotation();
|
||||
if (projectile.spriteDirection == -1)
|
||||
int oldDirection = projectile.spriteDirection;
|
||||
if (oldDirection == -1)
|
||||
projectile.rotation += MathHelper.Pi;
|
||||
projectile.spriteDirection = projectile.direction;
|
||||
|
||||
projectile.direction = projectile.spriteDirection = (projectile.velocity.X > 0).ToDirectionInt();
|
||||
// If the direction differs from what it originaly was, undo the previous 180 degree turn.
|
||||
// If this is not done, the bow will have 1 frame of rotational "jitter" when the direction changes based on the
|
||||
// original angle. This effect looks very strange in-game.
|
||||
if (projectile.spriteDirection != oldDirection)
|
||||
projectile.rotation -= MathHelper.Pi;
|
||||
|
||||
projectile.timeLeft = 3;
|
||||
}
|
||||
|
||||
@@ -191,7 +201,6 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
|
||||
{
|
||||
|
||||
float loops = LoadedBolts + 1;
|
||||
if (LoadedBolts == ClockworkBow.MaxBolts) //If the bow is fully loaded, shave off the part where you draw the arrow that's charging currently
|
||||
loops = LoadedBolts;
|
||||
@@ -231,7 +240,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
var BoltTexture = ModContent.GetTexture("CalamityMod/Projectiles/Ranged/PrecisionBolt");
|
||||
Vector2 PointingTo = new Vector2((float)Math.Cos(projectile.rotation + BoltAngle), (float)Math.Sin(projectile.rotation + BoltAngle)); //It's called trigonometry we do a little trigonometry
|
||||
Vector2 ShiftDown = PointingTo.RotatedBy(-MathHelper.PiOver2);
|
||||
float FlipFactor = projectile.direction == -1 ? MathHelper.Pi : 0f;
|
||||
float FlipFactor = Owner.direction < 0 ? MathHelper.Pi : 0f;
|
||||
Vector2 drawPosition = Owner.Center + PointingTo.RotatedBy(FlipFactor) * (20f + (Shift * 40)) - ShiftDown.RotatedBy(FlipFactor) * (BoltTexture.Width / 2) - Main.screenPosition;
|
||||
|
||||
spriteBatch.Draw(BoltTexture, drawPosition, null, Transparency, projectile.rotation + BoltAngle + MathHelper.PiOver2 + FlipFactor, BoltTexture.Size(), 1f, 0, 0);
|
||||
|
||||
@@ -177,25 +177,36 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
{
|
||||
if (Main.myPlayer == projectile.owner)
|
||||
{
|
||||
float interpolant = Utils.InverseLerp(5f, 25f, projectile.Distance(Main.MouseWorld), true);
|
||||
float interpolant = Utils.InverseLerp(5f, 25f, Owner.Distance(Main.MouseWorld), true);
|
||||
Vector2 oldVelocity = projectile.velocity;
|
||||
projectile.velocity = Vector2.Lerp(projectile.velocity, projectile.SafeDirectionTo(Main.MouseWorld), interpolant);
|
||||
projectile.velocity = Vector2.Lerp(projectile.velocity, Owner.SafeDirectionTo(Main.MouseWorld), interpolant);
|
||||
if (projectile.velocity != oldVelocity)
|
||||
{
|
||||
projectile.netSpam = 0;
|
||||
projectile.netUpdate = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
//Please someone kill me i dont want to deal with offset moments,
|
||||
//Dom oomfie!
|
||||
projectile.position = armPosition - projectile.Size * 0.5f + projectile.velocity.SafeNormalize(Vector2.Zero) * 30f;
|
||||
projectile.rotation = projectile.velocity.ToRotation();
|
||||
if (projectile.spriteDirection == -1)
|
||||
|
||||
projectile.position = armPosition - projectile.Size * 0.5f + projectile.velocity.SafeNormalize(Vector2.Zero) * 35f;
|
||||
projectile.rotation = projectile.velocity.ToRotation();
|
||||
|
||||
int oldDirection = projectile.spriteDirection;
|
||||
if (oldDirection == -1)
|
||||
projectile.rotation += MathHelper.Pi;
|
||||
projectile.spriteDirection = projectile.direction;
|
||||
|
||||
projectile.direction = projectile.spriteDirection = (projectile.velocity.X > 0).ToDirectionInt();
|
||||
// If the direction differs from what it originaly was, undo the previous 180 degree turn.
|
||||
// If this is not done, the gun will have 1 frame of rotational "jitter" when the direction changes based on the
|
||||
// original angle. This effect looks very strange in-game.
|
||||
if (projectile.spriteDirection != oldDirection)
|
||||
projectile.rotation -= MathHelper.Pi;
|
||||
|
||||
|
||||
|
||||
projectile.timeLeft = 2;
|
||||
}
|
||||
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
Vector2 shotPosition = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
shotPosition += projectile.velocity.ToRotation().ToRotationVector2().RotatedByRandom(MathHelper.ToRadians(40f)).RotatedBy(-0.25f * projectile.spriteDirection) * 42f;
|
||||
|
||||
projectile.velocity = projectile.SafeDirectionTo(Main.MouseWorld);
|
||||
projectile.velocity = player.SafeDirectionTo(Main.MouseWorld);
|
||||
|
||||
Vector2 shotVelocity = projectile.velocity * shotSpeed; // The velocity should always be a unit vector.
|
||||
|
||||
|
||||
@@ -110,6 +110,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
|
||||
// Accumulate the total segments of the worm.
|
||||
segmentAhead.localAI[0] = projectile.localAI[0] + 1f;
|
||||
segmentAhead.Calamity().UpdatePriority = segmentAhead.localAI[0];
|
||||
|
||||
// Locate the head segment by looping through the projectile array.
|
||||
// Doing identity checks across every segment would be much more expensive than doing just this one loop.
|
||||
|
||||
Reference in new issue
Block a user