diff --git a/CalPlayer/CalamityPlayer.cs b/CalPlayer/CalamityPlayer.cs index c15acb2e20..117304f158 100644 --- a/CalPlayer/CalamityPlayer.cs +++ b/CalPlayer/CalamityPlayer.cs @@ -433,6 +433,7 @@ namespace CalamityMod.CalPlayer public bool celestialJewel = false; public bool astralArcanum = false; public bool harpyRing = false; + public bool harpyWingBoost = false; //harpy wings + harpy ring public bool ironBoots = false; public bool depthCharm = false; public bool anechoicPlating = false; @@ -1428,6 +1429,7 @@ namespace CalamityMod.CalPlayer celestialJewel = false; astralArcanum = false; harpyRing = false; + harpyWingBoost = false; //harpy wings + harpy ring darkSunRing = false; calamityRing = false; eArtifact = false; diff --git a/CalPlayer/CalamityPlayerLifeRegen.cs b/CalPlayer/CalamityPlayerLifeRegen.cs index f9d30b3803..d7bdf851d5 100644 --- a/CalPlayer/CalamityPlayerLifeRegen.cs +++ b/CalPlayer/CalamityPlayerLifeRegen.cs @@ -150,10 +150,12 @@ namespace CalamityMod.CalPlayer player.lifeRegen = 0; player.lifeRegenTime = 0; - lifeRegenLost += (modPlayer.pissWaterBoost / 250); - - if (lifeRegenLost < -8) - lifeRegenLost = -8; + int waterDivisor = modPlayer.sulfurSet ? 400 : 250; + int sulphurWater = modPlayer.pissWaterBoost / waterDivisor; + int minimumRegenLost = modPlayer.sulfurSet ? 4 : 8; + if (sulphurWater < minimumRegenLost) + sulphurWater = minimumRegenLost; + lifeRegenLost += sulphurWater; } else modPlayer.pissWaterBoost = 0; @@ -164,7 +166,7 @@ namespace CalamityMod.CalPlayer player.lifeRegen = 0; player.lifeRegenTime = 0; - lifeRegenLost += 6; + lifeRegenLost += modPlayer.sulfurSet ? 4 : 6; } if (modPlayer.hFlames) diff --git a/Items/Accessories/AbyssalDivingGear.png b/Items/Accessories/AbyssalDivingGear.png index a9fb6fc059..2897b4d488 100644 Binary files a/Items/Accessories/AbyssalDivingGear.png and b/Items/Accessories/AbyssalDivingGear.png differ diff --git a/Items/Accessories/AbyssalDivingGear_Face.png b/Items/Accessories/AbyssalDivingGear_Face.png index 4f71e2541b..1352a892c1 100644 Binary files a/Items/Accessories/AbyssalDivingGear_Face.png and b/Items/Accessories/AbyssalDivingGear_Face.png differ diff --git a/Items/Accessories/AbyssalDivingGear_Head.png b/Items/Accessories/AbyssalDivingGear_Head.png deleted file mode 100644 index 4f71e2541b..0000000000 Binary files a/Items/Accessories/AbyssalDivingGear_Head.png and /dev/null differ diff --git a/Items/Accessories/IronBoots.cs b/Items/Accessories/IronBoots.cs index 7c1cb8b66e..5f71a9b2ce 100644 --- a/Items/Accessories/IronBoots.cs +++ b/Items/Accessories/IronBoots.cs @@ -4,6 +4,7 @@ using Terraria.ModLoader; namespace CalamityMod.Items.Accessories { + [AutoloadEquip(EquipType.Shoes)] public class IronBoots : ModItem { public override void SetStaticDefaults() diff --git a/Items/Accessories/IronBoots.png b/Items/Accessories/IronBoots.png index 13da3613bb..e5bc7cc86f 100644 Binary files a/Items/Accessories/IronBoots.png and b/Items/Accessories/IronBoots.png differ diff --git a/Items/Accessories/IronBoots_Shoes.png b/Items/Accessories/IronBoots_Shoes.png new file mode 100644 index 0000000000..284ba02a33 Binary files /dev/null and b/Items/Accessories/IronBoots_Shoes.png differ diff --git a/Items/Accessories/LeadCore.png b/Items/Accessories/LeadCore.png index f5ed74b3ef..94fed45d82 100644 Binary files a/Items/Accessories/LeadCore.png and b/Items/Accessories/LeadCore.png differ diff --git a/Items/Accessories/ProfanedSoulCrystal.cs b/Items/Accessories/ProfanedSoulCrystal.cs index 6f73a5df4a..94c97ca1b7 100644 --- a/Items/Accessories/ProfanedSoulCrystal.cs +++ b/Items/Accessories/ProfanedSoulCrystal.cs @@ -80,6 +80,10 @@ namespace CalamityMod.Items.Accessories line.text = ""; } } + else if (line.mod == "Terraria" && line.text.Contains("Sell price")) + { + line.text = ""; + } } diff --git a/Items/Accessories/Wings/SkylineWings.cs b/Items/Accessories/Wings/SkylineWings.cs index 7ee1910fab..9b51edfadc 100644 --- a/Items/Accessories/Wings/SkylineWings.cs +++ b/Items/Accessories/Wings/SkylineWings.cs @@ -1,3 +1,4 @@ +using CalamityMod.Items.Armor; using CalamityMod.Items.Materials; using Terraria; using Terraria.ID; @@ -14,7 +15,8 @@ namespace CalamityMod.Items.Accessories.Wings Tooltip.SetDefault("Horizontal speed: 6.25\n" + "Acceleration multiplier: 1\n" + "Average vertical speed\n" + - "Flight time: 60"); + "Flight time: 60\n" + + "25% increased jump speed while wearing the Aerospec armor"); } public override void SetDefaults() @@ -28,6 +30,13 @@ namespace CalamityMod.Items.Accessories.Wings public override void UpdateAccessory(Player player, bool hideVisual) { + if ((player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType() || player.armor[0].type == ModContent.ItemType() || + player.armor[0].type == ModContent.ItemType()) && + player.armor[1].type == ModContent.ItemType() && player.armor[2].type == ModContent.ItemType()) + { + player.jumpSpeedBoost += 0.25f; + } player.wingTimeMax = 60; player.noFallDmg = true; } diff --git a/Items/Armor/SulfurHelmet.cs b/Items/Armor/SulfurHelmet.cs index 7a46af18f9..4ffe68f177 100644 --- a/Items/Armor/SulfurHelmet.cs +++ b/Items/Armor/SulfurHelmet.cs @@ -38,6 +38,7 @@ namespace CalamityMod.Items.Armor player.setBonus = "Attacking and being attacked by enemies inflicts poison\n" + "Grants an additional jump\n" + "Jumping off the ground leaves behind a sulphurous bubble that applies venom on hit\n" + + "Reduces the severity of the sulphuric waters\n" + "Slightly reduces breath loss in the abyss\n" + "Rogue stealth builds while not attacking and slower while moving, up to a max of 100\n" + "Once you have built max stealth, you will be able to perform a Stealth Strike\n" + diff --git a/Items/CalamityGlobalItem.cs b/Items/CalamityGlobalItem.cs index 16eea236be..f49370be1c 100644 --- a/Items/CalamityGlobalItem.cs +++ b/Items/CalamityGlobalItem.cs @@ -182,6 +182,8 @@ namespace CalamityMod.Items item.damage *= 4; item.rare = 4; } + if (item.type == ItemID.StarCannon) + item.UseSound = null; switch (item.type) { @@ -199,6 +201,7 @@ namespace CalamityMod.Items case ItemID.Gungnir: case ItemID.ObsidianSwordfish: case ItemID.MonkStaffT3: + case ItemID.MonkStaffT2: case ItemID.MonkStaffT1: trueMelee = true; break; @@ -211,11 +214,12 @@ namespace CalamityMod.Items #region Shoot public override bool Shoot(Item item, Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) { + CalamityPlayer modPlayer = player.Calamity(); if (rogue) { - speedX *= player.Calamity().throwingVelocity; - speedY *= player.Calamity().throwingVelocity; - if (player.Calamity().gloveOfRecklessness) + speedX *= modPlayer.throwingVelocity; + speedY *= modPlayer.throwingVelocity; + if (modPlayer.gloveOfRecklessness) { Vector2 rotated = new Vector2(speedX, speedY); rotated = rotated.RotatedByRandom(MathHelper.ToRadians(10f)); @@ -223,7 +227,7 @@ namespace CalamityMod.Items speedY = rotated.Y; } } - if (player.Calamity().luxorsGift) + if (modPlayer.luxorsGift) { // useTime 9 = 0.9 useTime 2 = 0.2 double damageMult = 1.0; @@ -250,36 +254,36 @@ namespace CalamityMod.Items Projectile.NewProjectile(position.X, position.Y, 0f, 0f, ModContent.ProjectileType(), damage, 0f, player.whoAmI, 0f, 0f); } } - if (player.Calamity().eArtifact && item.ranged && !rogue) + if (modPlayer.eArtifact && item.ranged && !rogue) { speedX *= 1.25f; speedY *= 1.25f; } - if (player.Calamity().bloodflareMage) //0 - 99 + if (modPlayer.bloodflareMage) //0 - 99 { if (item.magic && Main.rand.Next(0, 100) >= 95) { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * (player.Calamity().auricSet ? 4.2 : 2.6)), 1f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)(damage * (modPlayer.auricSet ? 4.2 : 2.6)), 1f, player.whoAmI, 0f, 0f); } } } - if (player.Calamity().bloodflareRanged) //0 - 99 + if (modPlayer.bloodflareRanged) //0 - 99 { if (item.ranged && !rogue && Main.rand.Next(0, 100) >= 98) { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)((double)damage * (player.Calamity().auricSet ? 2.2 : 1.6)), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType(), (int)(damage * (modPlayer.auricSet ? 2.2 : 1.6)), 2f, player.whoAmI, 0f, 0f); } } } - if (player.Calamity().tarraMage) + if (modPlayer.tarraMage) { - if (player.Calamity().tarraCrits >= 5 && player.whoAmI == Main.myPlayer) + if (modPlayer.tarraCrits >= 5 && player.whoAmI == Main.myPlayer) { - player.Calamity().tarraCrits = 0; + modPlayer.tarraCrits = 0; int num106 = 9 + Main.rand.Next(3); for (int num107 = 0; num107 < num106; num107++) { @@ -290,31 +294,31 @@ namespace CalamityMod.Items num84 = item.shootSpeed / num84; hardar *= num84; hordor *= num84; - Projectile.NewProjectile(position.X, position.Y, hardar, hordor, 206, (int)((double)damage * 0.2), knockBack, player.whoAmI, 0.0f, 0.0f); + Projectile.NewProjectile(position.X, position.Y, hardar, hordor, ProjectileID.Leaf, (int)(damage * 0.2), knockBack, player.whoAmI, 0f, 0f); } } } - if (player.Calamity().ataxiaBolt) + if (modPlayer.ataxiaBolt) { if (item.ranged && !rogue && Main.rand.NextBool(2)) { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)((double)damage * 0.25), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)(damage * 0.25), 2f, player.whoAmI, 0f, 0f); } } } - if (player.Calamity().godSlayerRanged) //0 - 99 + if (modPlayer.godSlayerRanged) //0 - 99 { if (item.ranged && !rogue && Main.rand.Next(0, 100) >= 95) { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)((double)damage * (player.Calamity().auricSet ? 3.2 : 2.1)), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)(damage * (modPlayer.auricSet ? 3.2 : 2.1)), 2f, player.whoAmI, 0f, 0f); } } } - if (player.Calamity().ataxiaVolley) + if (modPlayer.ataxiaVolley) { if (rogue && Main.rand.NextBool(10)) { @@ -330,23 +334,23 @@ namespace CalamityMod.Items { Vector2 vector2 = new Vector2(player.Center.X, player.Center.Y); offsetAngle = startAngle + deltaAngle * (i + i * i) / 2f + 32f * i; - Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); - Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)((double)damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, (float)(Math.Sin(offsetAngle) * 5f), (float)(Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)(damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(vector2.X, vector2.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), ModContent.ProjectileType(), (int)(damage * 0.5), 1.25f, player.whoAmI, 0f, 0f); } } } } - if (player.Calamity().reaverDoubleTap) //0 - 99 + if (modPlayer.reaverDoubleTap) //0 - 99 { if (item.ranged && !rogue && Main.rand.Next(0, 100) >= 90) { if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)((double)damage * 1.3), 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)(damage * 1.3), 2f, player.whoAmI, 0f, 0f); } } } - if (player.Calamity().victideSet) + if (modPlayer.victideSet) { if ((item.ranged || item.melee || item.magic || rogue || item.summon) && item.rare < 8 && Main.rand.NextBool(10)) @@ -357,20 +361,35 @@ namespace CalamityMod.Items } } } - if (player.Calamity().dynamoStemCells) + if (modPlayer.dynamoStemCells) { if (item.ranged && !rogue && Main.rand.Next(0, 100) >= 80) { double damageMult = 1.0; - damageMult = (double)(item.useTime) / 30.0; + damageMult = (double)(item.useTime) / 30; if (damageMult < 0.35) damageMult = 0.35; - double newDamage = (double)damage * 2 * damageMult; + int newDamage = (int)(damage * 2 * damageMult); if (player.whoAmI == Main.myPlayer) { - Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), (int)newDamage, 2f, player.whoAmI, 0f, 0f); + Projectile.NewProjectile(position.X, position.Y, speedX * 1.25f, speedY * 1.25f, ModContent.ProjectileType(), newDamage, 2f, player.whoAmI, 0f, 0f); + } + } + } + if (modPlayer.harpyWingBoost) + { + if (Main.rand.NextBool(5)) + { + if (player.whoAmI == Main.myPlayer) + { + float spreadX = speedX + (float)Main.rand.Next(-15, 16) * 0.05f; + float spreadY = speedY + (float)Main.rand.Next(-15, 16) * 0.05f; + int feather = Projectile.NewProjectile(position.X, position.Y, spreadX * 1.25f, spreadY * 1.25f, ModContent.ProjectileType(), damage / 2, 2f, player.whoAmI, 0f, 0f); + Main.projectile[feather].usesLocalNPCImmunity = true; + Main.projectile[feather].localNPCHitCooldown = 10; + Main.projectile[feather].Calamity().forceTypeless = true; } } } @@ -382,7 +401,7 @@ namespace CalamityMod.Items position += muzzleOffset; } Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType(), damage, knockBack, player.whoAmI); - Main.PlaySound(SoundID.Item11.WithPitchVariance(0.05f), position); // <--- This is optional; if using, add "item.UseSound = null" to GlobalItem.SetDefaults when checking for the Star Cannon's ID + Main.PlaySound(SoundID.Item11.WithPitchVariance(0.05f), position); return false; } if (item.type == ItemID.PearlwoodBow) @@ -515,7 +534,7 @@ namespace CalamityMod.Items Vector2 correctedVelocity = Main.MouseWorld - player.Center; correctedVelocity.Normalize(); bool shouldNerf = player.Calamity().endoCooper || player.Calamity().magicHat; //No bonkers damage memes thank you very much. - bool enrage = player.statLife <= (int)((double)player.statLifeMax2 * 0.5); + bool enrage = player.statLife <= (int)(player.statLifeMax2 * 0.5); if (item.melee) { if (player.Calamity().profanedSoulWeaponUsage % (enrage ? 4 : 6) == 0) @@ -580,7 +599,7 @@ namespace CalamityMod.Items { player.Calamity().profanedSoulWeaponUsage = 0; } - int manaCost = (int)((float)100 * player.manaCost); + int manaCost = (int)(100 * player.manaCost); if (player.statMana < manaCost && player.Calamity().profanedSoulWeaponUsage == 0) { if (player.manaFlower) @@ -1740,7 +1759,8 @@ Provides heat and cold protection in Death Mode"; "Acceleration multiplier: 1\n" + "Average vertical speed\n" + "Flight time: 140\n" + - "30% increased movement speed"; + "30% increased movement speed\n" + + "Most attacks have a chance to fire a feather on swing if Harpy Ring or Angel Treads are equipped"; } } } @@ -2866,6 +2886,8 @@ Provides heat and cold protection in Death Mode"; } else if (item.type == ItemID.HarpyWings) { + if (modPlayer.harpyRing) + modPlayer.harpyWingBoost = true; player.moveSpeed += 0.3f; player.noFallDmg = true; } diff --git a/Items/LoreItems/KnowledgeAquaticScourge.cs b/Items/LoreItems/KnowledgeAquaticScourge.cs index 2f26019d77..aed2022fa1 100644 --- a/Items/LoreItems/KnowledgeAquaticScourge.cs +++ b/Items/LoreItems/KnowledgeAquaticScourge.cs @@ -1,5 +1,9 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; +using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { @@ -11,7 +15,7 @@ namespace CalamityMod.Items.LoreItems Tooltip.SetDefault("A horror born of pollution and insatiable hunger; based on size alone this was merely a juvenile.\n" + "These scourge creatures are the largest aquatic predators and very rarely do they frequent such shallow waters.\n" + "Place in your inventory to gain immunity to the sulphurous waters and increase the stat gains from the Well Fed buff.\n" + - "However, without the Well Fed buff your stats will decrease due to your insatiable hunger."); + "However, without the Well Fed buff your stats will decrease due to your insatiable hunger."); } public override void SetDefaults() @@ -32,5 +36,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.aquaticScourgeLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeAstralInfection.cs b/Items/LoreItems/KnowledgeAstralInfection.cs index 0ede98826f..934ca387cb 100644 --- a/Items/LoreItems/KnowledgeAstralInfection.cs +++ b/Items/LoreItems/KnowledgeAstralInfection.cs @@ -1,4 +1,7 @@ -using Terraria; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -24,5 +27,15 @@ namespace CalamityMod.Items.LoreItems { return false; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeAstrumAureus.cs b/Items/LoreItems/KnowledgeAstrumAureus.cs index 4e3707da23..21f587688c 100644 --- a/Items/LoreItems/KnowledgeAstrumAureus.cs +++ b/Items/LoreItems/KnowledgeAstrumAureus.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.astrumAureusLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeAstrumDeus.cs b/Items/LoreItems/KnowledgeAstrumDeus.cs index 5cb7731057..7cf9d588fd 100644 --- a/Items/LoreItems/KnowledgeAstrumDeus.cs +++ b/Items/LoreItems/KnowledgeAstrumDeus.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.astrumDeusLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeBloodMoon.cs b/Items/LoreItems/KnowledgeBloodMoon.cs index 0086f75f85..86a131d90d 100644 --- a/Items/LoreItems/KnowledgeBloodMoon.cs +++ b/Items/LoreItems/KnowledgeBloodMoon.cs @@ -1,4 +1,6 @@ -using Terraria; +using CalamityMod.Items.Materials; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -24,5 +26,15 @@ namespace CalamityMod.Items.LoreItems { return false; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.AncientCultistTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeBrainofCthulhu.cs b/Items/LoreItems/KnowledgeBrainofCthulhu.cs index 95c4f11d0e..e52ed1af9e 100644 --- a/Items/LoreItems/KnowledgeBrainofCthulhu.cs +++ b/Items/LoreItems/KnowledgeBrainofCthulhu.cs @@ -1,6 +1,6 @@ -using Microsoft.Xna.Framework; +using CalamityMod.Items.Materials; +using Microsoft.Xna.Framework; using Terraria; -using Terraria.DataStructures; using Terraria.ID; using Terraria.ModLoader; @@ -70,5 +70,15 @@ namespace CalamityMod.Items.LoreItems } return true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.BrainofCthulhuTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeBrimstoneCrag.cs b/Items/LoreItems/KnowledgeBrimstoneCrag.cs index 1697c8f004..c953bdf3f0 100644 --- a/Items/LoreItems/KnowledgeBrimstoneCrag.cs +++ b/Items/LoreItems/KnowledgeBrimstoneCrag.cs @@ -1,4 +1,7 @@ -using Terraria; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -24,5 +27,15 @@ namespace CalamityMod.Items.LoreItems { return false; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeBrimstoneElemental.cs b/Items/LoreItems/KnowledgeBrimstoneElemental.cs index 73ce2b805c..fbb16afa8e 100644 --- a/Items/LoreItems/KnowledgeBrimstoneElemental.cs +++ b/Items/LoreItems/KnowledgeBrimstoneElemental.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.brimstoneElementalLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeBumblebirb.cs b/Items/LoreItems/KnowledgeBumblebirb.cs index 61756c9a97..7e79eced10 100644 --- a/Items/LoreItems/KnowledgeBumblebirb.cs +++ b/Items/LoreItems/KnowledgeBumblebirb.cs @@ -1,4 +1,7 @@ -using Terraria; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -25,5 +28,15 @@ namespace CalamityMod.Items.LoreItems { return false; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeCalamitas.cs b/Items/LoreItems/KnowledgeCalamitas.cs index 719f437875..233470f8e3 100644 --- a/Items/LoreItems/KnowledgeCalamitas.cs +++ b/Items/LoreItems/KnowledgeCalamitas.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -34,5 +37,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.SCalLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeCalamitasClone.cs b/Items/LoreItems/KnowledgeCalamitasClone.cs index f09016775c..c99fe61db5 100644 --- a/Items/LoreItems/KnowledgeCalamitasClone.cs +++ b/Items/LoreItems/KnowledgeCalamitasClone.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.calamitasLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeCorruption.cs b/Items/LoreItems/KnowledgeCorruption.cs index 4a64d0ca4c..74fb38a005 100644 --- a/Items/LoreItems/KnowledgeCorruption.cs +++ b/Items/LoreItems/KnowledgeCorruption.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +34,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.corruptionLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.EaterofWorldsTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeCrabulon.cs b/Items/LoreItems/KnowledgeCrabulon.cs index c018814ae8..39c11b4e9b 100644 --- a/Items/LoreItems/KnowledgeCrabulon.cs +++ b/Items/LoreItems/KnowledgeCrabulon.cs @@ -1,6 +1,8 @@ -using CalamityMod.Buffs.StatBuffs; -using CalamityMod.CalPlayer; +using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems { @@ -33,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.crabulonLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeCrimson.cs b/Items/LoreItems/KnowledgeCrimson.cs index 7aaf8990c5..0a60cb40c7 100644 --- a/Items/LoreItems/KnowledgeCrimson.cs +++ b/Items/LoreItems/KnowledgeCrimson.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +34,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.crimsonLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.BrainofCthulhuTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeCryogen.cs b/Items/LoreItems/KnowledgeCryogen.cs index 3657563409..d1833e62c3 100644 --- a/Items/LoreItems/KnowledgeCryogen.cs +++ b/Items/LoreItems/KnowledgeCryogen.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +36,15 @@ namespace CalamityMod.Items.LoreItems modPlayer.dashMod = 6; player.statDefense -= 10; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeDesertScourge.cs b/Items/LoreItems/KnowledgeDesertScourge.cs index 27d7af0abc..0eb3750562 100644 --- a/Items/LoreItems/KnowledgeDesertScourge.cs +++ b/Items/LoreItems/KnowledgeDesertScourge.cs @@ -1,4 +1,7 @@ -using Terraria; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +35,15 @@ namespace CalamityMod.Items.LoreItems { player.Calamity().desertScourgeLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeDestroyer.cs b/Items/LoreItems/KnowledgeDestroyer.cs index b6ada6db02..8f59fc1c40 100644 --- a/Items/LoreItems/KnowledgeDestroyer.cs +++ b/Items/LoreItems/KnowledgeDestroyer.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.destroyerLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.DestroyerTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeDevourerofGods.cs b/Items/LoreItems/KnowledgeDevourerofGods.cs index 2b5971cc69..52beb54dd2 100644 --- a/Items/LoreItems/KnowledgeDevourerofGods.cs +++ b/Items/LoreItems/KnowledgeDevourerofGods.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -34,5 +37,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.DoGLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeDukeFishron.cs b/Items/LoreItems/KnowledgeDukeFishron.cs index f15af66ffa..99600c9845 100644 --- a/Items/LoreItems/KnowledgeDukeFishron.cs +++ b/Items/LoreItems/KnowledgeDukeFishron.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.dukeFishronLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.DukeFishronTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeEaterofWorlds.cs b/Items/LoreItems/KnowledgeEaterofWorlds.cs index 07275d7b7b..738a877734 100644 --- a/Items/LoreItems/KnowledgeEaterofWorlds.cs +++ b/Items/LoreItems/KnowledgeEaterofWorlds.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.eaterOfWorldsLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.EaterofWorldsTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeEyeofCthulhu.cs b/Items/LoreItems/KnowledgeEyeofCthulhu.cs index 52b3701e59..5e80ef3b08 100644 --- a/Items/LoreItems/KnowledgeEyeofCthulhu.cs +++ b/Items/LoreItems/KnowledgeEyeofCthulhu.cs @@ -1,4 +1,6 @@ -using Terraria; +using CalamityMod.Items.Materials; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -34,5 +36,15 @@ namespace CalamityMod.Items.LoreItems else player.blind = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.EyeofCthulhuTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeGolem.cs b/Items/LoreItems/KnowledgeGolem.cs index 791af85405..7a8e4436e7 100644 --- a/Items/LoreItems/KnowledgeGolem.cs +++ b/Items/LoreItems/KnowledgeGolem.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +34,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.golemLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.GolemTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeHiveMind.cs b/Items/LoreItems/KnowledgeHiveMind.cs index d8c34313a1..da08e5f966 100644 --- a/Items/LoreItems/KnowledgeHiveMind.cs +++ b/Items/LoreItems/KnowledgeHiveMind.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -36,5 +39,15 @@ namespace CalamityMod.Items.LoreItems modPlayer.hiveMindLore = true; } } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeKingSlime.cs b/Items/LoreItems/KnowledgeKingSlime.cs index 09c90c6b64..7ce6eed7b9 100644 --- a/Items/LoreItems/KnowledgeKingSlime.cs +++ b/Items/LoreItems/KnowledgeKingSlime.cs @@ -1,4 +1,6 @@ -using Terraria; +using CalamityMod.Items.Materials; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -31,5 +33,15 @@ namespace CalamityMod.Items.LoreItems { player.Calamity().kingSlimeLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.KingSlimeTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeLeviathanandSiren.cs b/Items/LoreItems/KnowledgeLeviathanandSiren.cs index 006b368e31..5cf25a5218 100644 --- a/Items/LoreItems/KnowledgeLeviathanandSiren.cs +++ b/Items/LoreItems/KnowledgeLeviathanandSiren.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -34,5 +37,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.leviathanAndSirenLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeLunaticCultist.cs b/Items/LoreItems/KnowledgeLunaticCultist.cs index 3aae30538f..9a0fe2676e 100644 --- a/Items/LoreItems/KnowledgeLunaticCultist.cs +++ b/Items/LoreItems/KnowledgeLunaticCultist.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -37,5 +39,15 @@ namespace CalamityMod.Items.LoreItems modPlayer.lunaticCultistLore = true; } } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.AncientCultistTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeMechs.cs b/Items/LoreItems/KnowledgeMechs.cs index 814bc96a36..43e62ba583 100644 --- a/Items/LoreItems/KnowledgeMechs.cs +++ b/Items/LoreItems/KnowledgeMechs.cs @@ -1,4 +1,6 @@ -using Terraria; +using CalamityMod.Items.Materials; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -24,5 +26,36 @@ namespace CalamityMod.Items.LoreItems { return false; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.RetinazerTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + + r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.SpazmatismTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + + r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.DestroyerTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + + r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.SkeletronPrimeTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeMoonLord.cs b/Items/LoreItems/KnowledgeMoonLord.cs index c74f4766fd..2ec7674af6 100644 --- a/Items/LoreItems/KnowledgeMoonLord.cs +++ b/Items/LoreItems/KnowledgeMoonLord.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -34,5 +36,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.moonLordLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.MoonLordTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeOcean.cs b/Items/LoreItems/KnowledgeOcean.cs index 0159a2a75d..32f81b0c5e 100644 --- a/Items/LoreItems/KnowledgeOcean.cs +++ b/Items/LoreItems/KnowledgeOcean.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.oceanLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeOldDuke.cs b/Items/LoreItems/KnowledgeOldDuke.cs index f8d8423154..78a1498a80 100644 --- a/Items/LoreItems/KnowledgeOldDuke.cs +++ b/Items/LoreItems/KnowledgeOldDuke.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +36,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.boomerDukeLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgePerforators.cs b/Items/LoreItems/KnowledgePerforators.cs index 9adc7131d8..978ec20724 100644 --- a/Items/LoreItems/KnowledgePerforators.cs +++ b/Items/LoreItems/KnowledgePerforators.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -35,5 +38,15 @@ namespace CalamityMod.Items.LoreItems modPlayer.perforatorLore = true; } } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs index 8fdf43f103..eb373e70ea 100644 --- a/Items/LoreItems/KnowledgePlaguebringerGoliath.cs +++ b/Items/LoreItems/KnowledgePlaguebringerGoliath.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.plaguebringerGoliathLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgePlantera.cs b/Items/LoreItems/KnowledgePlantera.cs index f0953270d7..65a907ac59 100644 --- a/Items/LoreItems/KnowledgePlantera.cs +++ b/Items/LoreItems/KnowledgePlantera.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.planteraLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.PlanteraTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgePolterghast.cs b/Items/LoreItems/KnowledgePolterghast.cs index 1f6b02e81a..f2a79c661e 100644 --- a/Items/LoreItems/KnowledgePolterghast.cs +++ b/Items/LoreItems/KnowledgePolterghast.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +36,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.polterghastLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeProfanedGuardians.cs b/Items/LoreItems/KnowledgeProfanedGuardians.cs index 63d3d697e6..e0e9d83f25 100644 --- a/Items/LoreItems/KnowledgeProfanedGuardians.cs +++ b/Items/LoreItems/KnowledgeProfanedGuardians.cs @@ -1,4 +1,7 @@ -using Terraria; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -26,5 +29,15 @@ namespace CalamityMod.Items.LoreItems { return false; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeProvidence.cs b/Items/LoreItems/KnowledgeProvidence.cs index 1475cfdc45..adff21ac24 100644 --- a/Items/LoreItems/KnowledgeProvidence.cs +++ b/Items/LoreItems/KnowledgeProvidence.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -34,5 +37,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.providenceLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeQueenBee.cs b/Items/LoreItems/KnowledgeQueenBee.cs index 0461a4c112..9f9de92d1d 100644 --- a/Items/LoreItems/KnowledgeQueenBee.cs +++ b/Items/LoreItems/KnowledgeQueenBee.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -31,5 +33,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.queenBeeLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.QueenBeeTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeRavager.cs b/Items/LoreItems/KnowledgeRavager.cs index c99e7b3521..6452498e1f 100644 --- a/Items/LoreItems/KnowledgeRavager.cs +++ b/Items/LoreItems/KnowledgeRavager.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.ravagerLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeSentinels.cs b/Items/LoreItems/KnowledgeSentinels.cs index 594a8f89fb..f2734e0176 100644 --- a/Items/LoreItems/KnowledgeSentinels.cs +++ b/Items/LoreItems/KnowledgeSentinels.cs @@ -1,4 +1,7 @@ -using Terraria; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -26,5 +29,29 @@ namespace CalamityMod.Items.LoreItems { return false; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + + r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + + r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeSkeletron.cs b/Items/LoreItems/KnowledgeSkeletron.cs index d3f8b6ac0a..117982d8cc 100644 --- a/Items/LoreItems/KnowledgeSkeletron.cs +++ b/Items/LoreItems/KnowledgeSkeletron.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -36,5 +38,15 @@ namespace CalamityMod.Items.LoreItems modPlayer.skeletronLore = true; } } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.SkeletronTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeSkeletronPrime.cs b/Items/LoreItems/KnowledgeSkeletronPrime.cs index c1a135434d..03fe2f047f 100644 --- a/Items/LoreItems/KnowledgeSkeletronPrime.cs +++ b/Items/LoreItems/KnowledgeSkeletronPrime.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.skeletronPrimeLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.SkeletronPrimeTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeSlimeGod.cs b/Items/LoreItems/KnowledgeSlimeGod.cs index 30ab5625ba..39f3868d9d 100644 --- a/Items/LoreItems/KnowledgeSlimeGod.cs +++ b/Items/LoreItems/KnowledgeSlimeGod.cs @@ -1,4 +1,6 @@ -using Terraria; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; using Terraria.ID; using Terraria.ModLoader; @@ -43,5 +45,15 @@ namespace CalamityMod.Items.LoreItems player.statDefense -= 10; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeSulphurSea.cs b/Items/LoreItems/KnowledgeSulphurSea.cs index eadc6cdb20..1e88fa0eb6 100644 --- a/Items/LoreItems/KnowledgeSulphurSea.cs +++ b/Items/LoreItems/KnowledgeSulphurSea.cs @@ -1,4 +1,7 @@ -using Terraria; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; +using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -24,5 +27,15 @@ namespace CalamityMod.Items.LoreItems { return false; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeTwins.cs b/Items/LoreItems/KnowledgeTwins.cs index 98c266f75a..e1ff4210df 100644 --- a/Items/LoreItems/KnowledgeTwins.cs +++ b/Items/LoreItems/KnowledgeTwins.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -34,5 +36,22 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.twinsLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.RetinazerTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + + r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.SpazmatismTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeUnderworld.cs b/Items/LoreItems/KnowledgeUnderworld.cs index 6e6b198712..8912467c56 100644 --- a/Items/LoreItems/KnowledgeUnderworld.cs +++ b/Items/LoreItems/KnowledgeUnderworld.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -32,5 +34,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.underworldLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.WallofFleshTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeWallofFlesh.cs b/Items/LoreItems/KnowledgeWallofFlesh.cs index 03e519138b..3bb8bd41e7 100644 --- a/Items/LoreItems/KnowledgeWallofFlesh.cs +++ b/Items/LoreItems/KnowledgeWallofFlesh.cs @@ -1,5 +1,7 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +35,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.wallOfFleshLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ItemID.WallofFleshTrophy); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/LoreItems/KnowledgeYharon.cs b/Items/LoreItems/KnowledgeYharon.cs index 3f7d20e354..73c30d1dbf 100644 --- a/Items/LoreItems/KnowledgeYharon.cs +++ b/Items/LoreItems/KnowledgeYharon.cs @@ -1,5 +1,8 @@ using CalamityMod.CalPlayer; +using CalamityMod.Items.Materials; +using CalamityMod.Items.Placeables.Furniture.Trophies; using Terraria; +using Terraria.ID; using Terraria.ModLoader; namespace CalamityMod.Items.LoreItems @@ -33,5 +36,15 @@ namespace CalamityMod.Items.LoreItems CalamityPlayer modPlayer = player.Calamity(); modPlayer.yharonLore = true; } + + public override void AddRecipes() + { + ModRecipe r = new ModRecipe(mod); + r.SetResult(this); + r.AddTile(TileID.Bookcases); + r.AddIngredient(ModContent.ItemType()); + r.AddIngredient(ModContent.ItemType(), 10); + r.AddRecipe(); + } } } diff --git a/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.cs b/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.cs new file mode 100644 index 0000000000..d3edb826df --- /dev/null +++ b/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.cs @@ -0,0 +1,29 @@ +using CalamityMod.Tiles.Furniture; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Trophies +{ + public class ProfanedGuardianTrophy : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Profaned Guardian Trophy"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 30; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = 50000; + item.rare = 1; + item.createTile = ModContent.TileType(); + item.placeStyle = 25; + } + } +} diff --git a/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.png b/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.png new file mode 100644 index 0000000000..2c8b7e2186 Binary files /dev/null and b/Items/Placeables/Furniture/Trophies/ProfanedGuardianTrophy.png differ diff --git a/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.cs b/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.cs new file mode 100644 index 0000000000..6601314ed5 --- /dev/null +++ b/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.cs @@ -0,0 +1,29 @@ +using CalamityMod.Tiles.Furniture; +using Terraria.ModLoader; +namespace CalamityMod.Items.Placeables.Furniture.Trophies +{ + public class SupremeCalamitasTrophy : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Supreme Calamitas Trophy"); + } + + public override void SetDefaults() + { + item.width = 30; + item.height = 30; + item.maxStack = 99; + item.useTurn = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useTime = 10; + item.useStyle = 1; + item.consumable = true; + item.value = 50000; + item.rare = 1; + item.createTile = ModContent.TileType(); + item.placeStyle = 26; + } + } +} diff --git a/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.png b/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.png new file mode 100644 index 0000000000..09ea443570 Binary files /dev/null and b/Items/Placeables/Furniture/Trophies/SupremeCalamitasTrophy.png differ diff --git a/Items/Weapons/Ranged/Svantechnical.cs b/Items/Weapons/Ranged/Svantechnical.cs index 355372a5ce..4541af4405 100644 --- a/Items/Weapons/Ranged/Svantechnical.cs +++ b/Items/Weapons/Ranged/Svantechnical.cs @@ -97,7 +97,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.SDMG); + recipe.AddIngredient(ModContent.ItemType()); recipe.AddIngredient(ModContent.ItemType(), 5); recipe.AddIngredient(ItemID.SoulofMight, 10); recipe.AddIngredient(ItemID.SoulofSight, 10); diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index df8bd2dd4f..f88dcaa0de 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -408,7 +408,7 @@ namespace CalamityMod int type = NPCType(); int summon = ItemType(); List loot = new List() { ItemType(), ItemID.GreaterHealingPotion }; - List collection = new List() { ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType() }; string instructions = $"Use a [i:{summon}] in the Hallow or Underworld Biomes"; string despawn = CalamityUtils.ColorMessage("The guardians must protect their goddess at all costs.", new Color(0xFF, 0xA5, 0x00)); string bossLogTex = "CalamityMod/NPCs/ProfanedGuardians/ProfanedGuardians_BossChecklist"; @@ -535,7 +535,7 @@ namespace CalamityMod int type = NPCType(); int summon = ItemType(); List loot = new List() { ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), ItemType() }; - List collection = new List() { ItemType(), ItemType(), ItemType() }; + List collection = new List() { ItemType(), ItemType(), ItemType(), ItemType() }; string instructions = $"Use an [i:{summon}]"; string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00)); AddBoss(bossChecklist, calamity, "Supreme Calamitas", order, type, DownedSCal, summon, loot, collection, instructions, despawn); diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index dca7f8f8f7..f01543a39e 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -4470,7 +4470,7 @@ namespace CalamityMod.NPCs else if (phase2) { damage += 2; - projectileType = ProjectileID.FrostBeam; + projectileType = ModContent.ProjectileType(); } } else diff --git a/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs b/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs index 0603c33172..2bd628102a 100644 --- a/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs +++ b/NPCs/ProfanedGuardians/ProfanedGuardianBoss.cs @@ -14,6 +14,8 @@ using Terraria.ID; using Terraria.ModLoader; using Terraria.ModLoader.Config; using CalamityMod; +using CalamityMod.Items.Placeables.Furniture.Trophies; + namespace CalamityMod.NPCs.ProfanedGuardians { [AutoloadBossHead] @@ -430,6 +432,7 @@ namespace CalamityMod.NPCs.ProfanedGuardians { // Profaned Guardians have no actual drops and no treasure bag DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); DropHelper.DropItem(npc, ModContent.ItemType()); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedGuardians); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedGuardians, 5, 2, 1); diff --git a/NPCs/SupremeCalamitas/SupremeCalamitas.cs b/NPCs/SupremeCalamitas/SupremeCalamitas.cs index 9c80bb8839..d33f4661f2 100644 --- a/NPCs/SupremeCalamitas/SupremeCalamitas.cs +++ b/NPCs/SupremeCalamitas/SupremeCalamitas.cs @@ -25,6 +25,8 @@ using Terraria.Localization; using Terraria.ModLoader; using Terraria.ModLoader.Config; using CalamityMod; +using CalamityMod.Items.Placeables.Furniture.Trophies; + namespace CalamityMod.NPCs.SupremeCalamitas { [AutoloadBossHead] @@ -2178,6 +2180,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.death); // Other + DropHelper.DropItemChance(npc, ModContent.ItemType(), 10); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedSCal); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedSCal, 6, 3, 2); diff --git a/Projectiles/Boss/DestroyerFrostLaser.cs b/Projectiles/Boss/DestroyerFrostLaser.cs new file mode 100644 index 0000000000..02ea888bdb --- /dev/null +++ b/Projectiles/Boss/DestroyerFrostLaser.cs @@ -0,0 +1,52 @@ +using Microsoft.Xna.Framework; +using System; +using System.IO; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Buffs.StatDebuffs; +namespace CalamityMod.Projectiles.Boss +{ + public class DestroyerFrostLaser : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Frost Laser"); + } + + public override void SetDefaults() + { + projectile.ignoreWater = true; + projectile.width = 4; + projectile.height = 4; + projectile.aiStyle = 1; + aiType = ProjectileID.FrostBeam; + projectile.hostile = true; + projectile.penetrate = -1; + projectile.light = 0.75f; + projectile.alpha = 255; + projectile.scale = 1.2f; + projectile.timeLeft = 600; + projectile.magic = true; + projectile.coldDamage = true; + projectile.extraUpdates = 1; + } + + public override Color? GetAlpha(Color lightColor) + { + if (projectile.alpha < 200) + { + return new Color(255 - projectile.alpha, 255 - projectile.alpha, 255 - projectile.alpha, 0); + } + return Color.Transparent; + } + + public override void OnHitPlayer(Player target, int damage, bool crit) + { + if (Main.rand.NextBool(5) && !target.Calamity().gState && !target.frozen && target.chilled) + target.AddBuff(ModContent.BuffType(), 20); + target.AddBuff(BuffID.Frostburn, 240); + target.AddBuff(BuffID.Chilled, 120); + } + } +} diff --git a/Projectiles/Boss/DestroyerFrostLaser.png b/Projectiles/Boss/DestroyerFrostLaser.png new file mode 100644 index 0000000000..513250dc91 Binary files /dev/null and b/Projectiles/Boss/DestroyerFrostLaser.png differ diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 2b581f296b..2f088a449f 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -87,6 +87,7 @@ namespace CalamityMod.Projectiles case ProjectileID.Gungnir: case ProjectileID.ObsidianSwordfish: case ProjectileID.MonkStaffT3: + case ProjectileID.MonkStaffT2: case ProjectileID.MonkStaffT1: trueMelee = true; break; diff --git a/Projectiles/Ranged/MagnomalyAura.cs b/Projectiles/Ranged/MagnomalyAura.cs index ec45ddee96..dbbdcd90f0 100644 --- a/Projectiles/Ranged/MagnomalyAura.cs +++ b/Projectiles/Ranged/MagnomalyAura.cs @@ -17,8 +17,8 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { projectile.ranged = true; - projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 10; + projectile.usesIDStaticNPCImmunity = true; + projectile.idStaticNPCHitCooldown = 10; projectile.width = 200; projectile.height = 200; projectile.friendly = true; diff --git a/Projectiles/Ranged/MagnomalyRocket.cs b/Projectiles/Ranged/MagnomalyRocket.cs index 0f9481db41..0d3de97a67 100644 --- a/Projectiles/Ranged/MagnomalyRocket.cs +++ b/Projectiles/Ranged/MagnomalyRocket.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Ranged } if (projectile.owner == Main.myPlayer && !spawnedAura) { - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.5f), (int)((double)projectile.knockBack * 0.5f), projectile.owner, projectile.identity, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, 0f, 0f, ModContent.ProjectileType(), (int)(projectile.damage * 0.5f), projectile.knockBack * 0.5f, projectile.owner, projectile.identity, 0f); spawnedAura = true; } float num247 = projectile.velocity.X * 0.5f; diff --git a/Projectiles/Summon/BrimstoneFireSummon.cs b/Projectiles/Summon/BrimstoneFireSummon.cs index 879d9568ff..94a4b2e578 100644 --- a/Projectiles/Summon/BrimstoneFireSummon.cs +++ b/Projectiles/Summon/BrimstoneFireSummon.cs @@ -22,7 +22,7 @@ namespace CalamityMod.Projectiles.Summon projectile.ignoreWater = true; projectile.minion = true; projectile.minionSlots = 0f; - projectile.penetrate = -1; + projectile.penetrate = 2; projectile.extraUpdates = 3; projectile.timeLeft = 50; } diff --git a/Tiles/Furniture/BossTrophy.cs b/Tiles/Furniture/BossTrophy.cs index 97e3efa790..752e6ce492 100644 --- a/Tiles/Furniture/BossTrophy.cs +++ b/Tiles/Furniture/BossTrophy.cs @@ -105,6 +105,12 @@ namespace CalamityMod.Tiles.Furniture case 24: item = ModContent.ItemType(); break; + case 25: + item = ModContent.ItemType(); + break; + case 26: + item = ModContent.ItemType(); + break; } if (item > 0) { diff --git a/Tiles/Furniture/BossTrophy.png b/Tiles/Furniture/BossTrophy.png index e91a2c001c..b521b489bd 100644 Binary files a/Tiles/Furniture/BossTrophy.png and b/Tiles/Furniture/BossTrophy.png differ