diff --git a/CalamityLists.cs b/CalamityLists.cs index 0b96dbc6b9..f2a4a94f2b 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1085,7 +1085,8 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType() + ItemType(), + ItemType() }; natureWeaponList = new List() @@ -1199,6 +1200,7 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), @@ -1210,11 +1212,13 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), ItemType(), - ItemType() + ItemType(), + ItemType() }; alcoholList = new List() diff --git a/Items/Armor/AuricTeslaSpaceHelmet.cs b/Items/Armor/AuricTeslaSpaceHelmet.cs index 0afefd77ca..af764c0346 100644 --- a/Items/Armor/AuricTeslaSpaceHelmet.cs +++ b/Items/Armor/AuricTeslaSpaceHelmet.cs @@ -18,7 +18,8 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Auric Tesla Space Helmet"); - Tooltip.SetDefault("Not moving boosts all damage and critical strike chance"); + Tooltip.SetDefault("15% increased minion damage\n" + + "Not moving boosts all damage and critical strike chance"); } public override void SetDefaults() @@ -45,7 +46,7 @@ namespace CalamityMod.Items.Armor player.setBonus = "Summoner Tarragon, Bloodflare and Silva armor effects\n" + "All projectiles spawn healing auric orbs on enemy hits\n" + "Max run speed and acceleration boosted by 5%\n" + - "+6 max minions and 90% increased minion damage"; + "+6 max minions and 75% increased minion damage"; CalamityPlayer modPlayer = player.Calamity(); modPlayer.tarraSet = true; modPlayer.tarraSummon = true; @@ -58,7 +59,7 @@ namespace CalamityMod.Items.Armor player.lavaMax += 240; player.ignoreWater = true; player.crimsonRegen = true; - player.minionDamage += 0.9f; + player.minionDamage += 0.75f; player.maxMinions += 6; if (player.lavaWet) { @@ -82,6 +83,7 @@ namespace CalamityMod.Items.Armor { CalamityPlayer modPlayer = player.Calamity(); modPlayer.auricBoost = true; + player.minionDamage += 0.15f; } public override void AddRecipes() diff --git a/Items/Armor/BloodflareHelmet.cs b/Items/Armor/BloodflareHelmet.cs index 39b84823cb..85dc19323d 100644 --- a/Items/Armor/BloodflareHelmet.cs +++ b/Items/Armor/BloodflareHelmet.cs @@ -14,7 +14,8 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Bloodflare Wyvern Helm"); - Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava"); + Tooltip.SetDefault("You can move freely through liquids and have temporary immunity to lava\n" + + "5% increased minion damage"); } public override void SetDefaults() @@ -32,7 +33,7 @@ namespace CalamityMod.Items.Armor { foreach (TooltipLine line2 in list) { - if (line2.mod == "Terraria" && line2.Name == "Tooltip0") + if (line2.mod == "Terraria" && line2.Name == "Tooltip1") { line2.text = "You can move freely through liquids and have temporary immunity to lava\n" + "Provides heat protection in Death Mode"; @@ -56,7 +57,7 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.bloodflareSet = true; modPlayer.bloodflareSummon = true; - player.setBonus = "55% increased minion damage and +3 max minions\n" + + player.setBonus = "50% increased minion damage and +3 max minions\n" + "Greatly increases life regen\n" + "Enemies below 50% life drop a heart when struck\n" + "This effect has a 5 second cooldown\n" + @@ -65,7 +66,7 @@ namespace CalamityMod.Items.Armor "At 90% life and above you gain 10% increased minion damage\n" + "At 50% life and below you gain 20 defense and 2 life regen"; player.crimsonRegen = true; - player.minionDamage += 0.55f; + player.minionDamage += 0.5f; player.maxMinions += 3; } @@ -73,6 +74,7 @@ namespace CalamityMod.Items.Armor { player.lavaMax += 240; player.ignoreWater = true; + player.minionDamage += 0.05f; } public override void AddRecipes() diff --git a/Items/Armor/SilvaHelmet.cs b/Items/Armor/SilvaHelmet.cs index 797ea91628..0036807e62 100644 --- a/Items/Armor/SilvaHelmet.cs +++ b/Items/Armor/SilvaHelmet.cs @@ -16,6 +16,7 @@ namespace CalamityMod.Items.Armor public override void SetStaticDefaults() { DisplayName.SetDefault("Silva Horned Hood"); + Tooltip.SetDefault("10% increased minion damage"); } public override void SetDefaults() @@ -43,7 +44,7 @@ namespace CalamityMod.Items.Armor CalamityPlayer modPlayer = player.Calamity(); modPlayer.silvaSet = true; modPlayer.silvaSummon = true; - player.setBonus = "75% increased minion damage and +5 max minions\n" + + player.setBonus = "65% increased minion damage and +5 max minions\n" + "All projectiles spawn healing leaf orbs on enemy hits\n" + "Max run speed and acceleration boosted by 5%\n" + "If you are reduced to 1 HP you will not die from any further damage for 8 seconds\n" + @@ -60,10 +61,12 @@ namespace CalamityMod.Items.Armor Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, -1f, ModContent.ProjectileType(), (int)(600f * player.MinionDamage()), 0f, Main.myPlayer, -20f, 0f); } } - player.minionDamage += 0.75f; + player.minionDamage += 0.65f; player.maxMinions += 5; } + public override void UpdateEquip(Player player) => player.minionDamage += 0.1f; + public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index 115644510e..fb7aa8eccb 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -43,6 +43,10 @@ namespace CalamityMod.Items switch (itemID) { + case ItemID.EyeOfCthulhuBossBag: + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.BagWeaponDropRateFloat); + break; + case ItemID.QueenBeeBossBag: // Drop weapons Calamity style instead of mutually exclusive. int[] queenBeeWeapons = new int[] @@ -106,8 +110,7 @@ namespace CalamityMod.Items ItemID.VenusMagnum, ItemID.LeafBlower, ItemID.NettleBurst, - ItemID.WaspGun, - ItemID.PygmyStaff + ItemID.WaspGun }; DropHelper.DropEntireSet(player, DropHelper.BagWeaponDropRateFloat, planteraWeapons); DropHelper.BlockDrops(planteraWeapons); diff --git a/Items/Weapons/Summon/CadaverousCarrion.cs b/Items/Weapons/Summon/CadaverousCarrion.cs index 192c8ece99..f1ac1c215f 100644 --- a/Items/Weapons/Summon/CadaverousCarrion.cs +++ b/Items/Weapons/Summon/CadaverousCarrion.cs @@ -25,6 +25,7 @@ namespace CalamityMod.Items.Weapons.Summon item.useTime = item.useAnimation = 14; item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; + item.autoReuse = true; item.knockBack = 4f; item.UseSound = SoundID.NPCDeath13; item.shoot = ModContent.ProjectileType(); diff --git a/Items/Weapons/Summon/CinderBlossomStaff.cs b/Items/Weapons/Summon/CinderBlossomStaff.cs index c2627313ca..339e5a5de7 100644 --- a/Items/Weapons/Summon/CinderBlossomStaff.cs +++ b/Items/Weapons/Summon/CinderBlossomStaff.cs @@ -27,7 +27,6 @@ namespace CalamityMod.Items.Weapons.Summon item.value = Item.buyPrice(0, 4, 0, 0); item.rare = ItemRarityID.Orange; item.UseSound = SoundID.Item34; - item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; diff --git a/Items/Weapons/Summon/CryogenicStaff.cs b/Items/Weapons/Summon/CryogenicStaff.cs index 23b14d1f2b..447ad6c66d 100644 --- a/Items/Weapons/Summon/CryogenicStaff.cs +++ b/Items/Weapons/Summon/CryogenicStaff.cs @@ -26,6 +26,7 @@ Fire rate and range increase the longer it targets an enemy"); item.useTime = item.useAnimation = 25; item.useStyle = ItemUseStyleID.SwingThrow; item.noMelee = true; + item.autoReuse = true; item.knockBack = 4f; item.value = CalamityGlobalItem.Rarity6BuyPrice; diff --git a/Items/Weapons/Summon/FlowersOfMortality.cs b/Items/Weapons/Summon/FlowersOfMortality.cs index 9a558d4cf5..f8bccd8eca 100644 --- a/Items/Weapons/Summon/FlowersOfMortality.cs +++ b/Items/Weapons/Summon/FlowersOfMortality.cs @@ -30,7 +30,6 @@ namespace CalamityMod.Items.Weapons.Summon item.value = CalamityGlobalItem.Rarity11BuyPrice; item.rare = ItemRarityID.Purple; item.UseSound = SoundID.Item44; - item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; } diff --git a/Items/Weapons/Summon/FrostBlossomStaff.cs b/Items/Weapons/Summon/FrostBlossomStaff.cs index 94a26efe1a..6d4727f374 100644 --- a/Items/Weapons/Summon/FrostBlossomStaff.cs +++ b/Items/Weapons/Summon/FrostBlossomStaff.cs @@ -27,7 +27,6 @@ namespace CalamityMod.Items.Weapons.Summon item.value = Item.buyPrice(0, 1, 0, 0); item.rare = ItemRarityID.Blue; item.UseSound = SoundID.Item28; - item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; diff --git a/Items/Weapons/Summon/HivePod.cs b/Items/Weapons/Summon/HivePod.cs index 423660b497..9d02b848d5 100644 --- a/Items/Weapons/Summon/HivePod.cs +++ b/Items/Weapons/Summon/HivePod.cs @@ -20,6 +20,7 @@ namespace CalamityMod.Items.Weapons.Summon item.mana = 10; item.summon = true; item.sentry = true; + item.autoReuse = true; item.width = 46; item.height = 50; item.useTime = item.useAnimation = 20; diff --git a/Items/Weapons/Summon/SunGodStaff.cs b/Items/Weapons/Summon/SunGodStaff.cs index e8cd44d18b..0f418fff6e 100644 --- a/Items/Weapons/Summon/SunGodStaff.cs +++ b/Items/Weapons/Summon/SunGodStaff.cs @@ -32,6 +32,8 @@ namespace CalamityMod.Items.Weapons.Summon item.summon = true; } + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0; + public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/Summon/SunSpiritStaff.cs b/Items/Weapons/Summon/SunSpiritStaff.cs index 7ba6f0b356..218ad7226a 100644 --- a/Items/Weapons/Summon/SunSpiritStaff.cs +++ b/Items/Weapons/Summon/SunSpiritStaff.cs @@ -32,6 +32,8 @@ namespace CalamityMod.Items.Weapons.Summon item.summon = true; } + public override bool CanUseItem(Player player) => player.ownedProjectileCounts[item.shoot] <= 0; + public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); diff --git a/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs b/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs index 1e22736e27..73b9515ac7 100644 --- a/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs +++ b/Items/Weapons/Summon/TundraFlameBlossomsStaff.cs @@ -28,7 +28,6 @@ namespace CalamityMod.Items.Weapons.Summon item.value = CalamityGlobalItem.Rarity5BuyPrice; item.rare = ItemRarityID.Pink; item.UseSound = SoundID.Item46; - item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; diff --git a/Items/Weapons/Summon/WitherBlossomsStaff.cs b/Items/Weapons/Summon/WitherBlossomsStaff.cs index 5c418711fd..9e3412207b 100644 --- a/Items/Weapons/Summon/WitherBlossomsStaff.cs +++ b/Items/Weapons/Summon/WitherBlossomsStaff.cs @@ -29,7 +29,6 @@ namespace CalamityMod.Items.Weapons.Summon item.value = CalamityGlobalItem.Rarity8BuyPrice; item.rare = ItemRarityID.Yellow; item.UseSound = SoundID.Item46; - item.autoReuse = true; item.shoot = ModContent.ProjectileType(); item.shootSpeed = 10f; item.summon = true; diff --git a/ModSupport/WeakReferenceSupport.cs b/ModSupport/WeakReferenceSupport.cs index bad1472164..1f218c8079 100644 --- a/ModSupport/WeakReferenceSupport.cs +++ b/ModSupport/WeakReferenceSupport.cs @@ -674,7 +674,7 @@ namespace CalamityMod // Eye of Cthulhu AddLoot(bossChecklist, "EyeofCthulhu", - new List() { ItemType(), ItemType() }, + new List() { ItemType(), ItemType(), ItemType() }, new List() { ItemType() } ); diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index eb06116635..939eb9aff9 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -103,6 +103,7 @@ namespace CalamityMod.NPCs // Legendary drops for Eye of Cthulhu DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, CalamityWorld.malice); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, CalamityWorld.malice); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), !Main.expertMode, DropHelper.NormalWeaponDropRateFloat, 1, 1); DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !NPC.downedBoss1); CalamityGlobalTownNPC.SetNewShopVariable(new int[] { NPCID.Merchant, NPCID.Dryad, NPCID.Demolitionist }, NPC.downedBoss1); @@ -295,8 +296,7 @@ namespace CalamityMod.NPCs ItemID.VenusMagnum, ItemID.LeafBlower, ItemID.NettleBurst, - ItemID.WaspGun, - ItemID.PygmyStaff + ItemID.WaspGun }; DropHelper.DropEntireSet(npc, DropHelper.NormalWeaponDropRateFloat, planteraWeapons); DropHelper.BlockDrops(planteraWeapons); diff --git a/Projectiles/Summon/AngelBolt.cs b/Projectiles/Summon/AngelBolt.cs index dce9e63033..bdf49b3d65 100644 --- a/Projectiles/Summon/AngelBolt.cs +++ b/Projectiles/Summon/AngelBolt.cs @@ -20,7 +20,7 @@ namespace CalamityMod.Projectiles.Summon { projectile.width = 4; projectile.height = 4; - projectile.extraUpdates = 100; + projectile.extraUpdates = 200; projectile.friendly = true; projectile.timeLeft = 45; projectile.minion = true; diff --git a/Projectiles/Summon/AngelOrb.cs b/Projectiles/Summon/AngelOrb.cs index feae94e766..4c48563896 100644 --- a/Projectiles/Summon/AngelOrb.cs +++ b/Projectiles/Summon/AngelOrb.cs @@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Summon public override void AI() { - CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 150f, 6f, 6f, 2, ModContent.ProjectileType(), 1D, true); + CalamityGlobalProjectile.MagnetSphereHitscan(projectile, 150f, 3f, 6f, 2, ModContent.ProjectileType(), 1D, true); } public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(ModContent.BuffType(), 300); diff --git a/Projectiles/Summon/AngelRay.cs b/Projectiles/Summon/AngelRay.cs index a01c7fe624..360214a776 100644 --- a/Projectiles/Summon/AngelRay.cs +++ b/Projectiles/Summon/AngelRay.cs @@ -25,10 +25,10 @@ namespace CalamityMod.Projectiles.Summon projectile.minionSlots = 0f; projectile.ignoreWater = true; projectile.penetrate = 10; - projectile.extraUpdates = 100; + projectile.extraUpdates = 200; projectile.timeLeft = 600; projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 10; + projectile.localNPCHitCooldown = 20; } public override void AI() diff --git a/Projectiles/Summon/AngelicAllianceArchangel.cs b/Projectiles/Summon/AngelicAllianceArchangel.cs index 1540e0903b..1ea3632efa 100644 --- a/Projectiles/Summon/AngelicAllianceArchangel.cs +++ b/Projectiles/Summon/AngelicAllianceArchangel.cs @@ -118,7 +118,7 @@ namespace CalamityMod.Projectiles.Summon if (Main.myPlayer == projectile.owner) { int type = ModContent.ProjectileType(); - Projectile.NewProjectile(projectile.Center, direction, type, projectile.damage, projectile.knockBack, projectile.owner); + Projectile.NewProjectile(projectile.Center, direction * 0.5f, type, projectile.damage, projectile.knockBack, projectile.owner); } projectile.ai[0] = 0f; projectile.netUpdate = true; diff --git a/Projectiles/Summon/ElementalAxeMinion.cs b/Projectiles/Summon/ElementalAxeMinion.cs index cb5dd7e234..2727cd678c 100644 --- a/Projectiles/Summon/ElementalAxeMinion.cs +++ b/Projectiles/Summon/ElementalAxeMinion.cs @@ -1,5 +1,4 @@ using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Buffs.StatDebuffs; using CalamityMod.Buffs.Summon; using CalamityMod.CalPlayer; using Microsoft.Xna.Framework; diff --git a/Projectiles/Summon/MortalityBeam.cs b/Projectiles/Summon/MortalityBeam.cs index 622f0b5b14..48129e4356 100644 --- a/Projectiles/Summon/MortalityBeam.cs +++ b/Projectiles/Summon/MortalityBeam.cs @@ -1,5 +1,4 @@ using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using System; using Terraria; @@ -10,6 +9,8 @@ namespace CalamityMod.Projectiles.Summon { public class MortalityBeam : ModProjectile { + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public ref float Time => ref projectile.ai[0]; public override void SetStaticDefaults() { @@ -58,7 +59,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(ModContent.BuffType(), 180); - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(BuffID.Frostburn, 180); target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(ModContent.BuffType(), 180); } diff --git a/Projectiles/Summon/MortalityBeam.png b/Projectiles/Summon/MortalityBeam.png deleted file mode 100644 index 3c8f498e7b..0000000000 Binary files a/Projectiles/Summon/MortalityBeam.png and /dev/null differ diff --git a/Projectiles/Summon/MortalityBolt.cs b/Projectiles/Summon/MortalityBolt.cs index d0083cbc4e..47c1e5850c 100644 --- a/Projectiles/Summon/MortalityBolt.cs +++ b/Projectiles/Summon/MortalityBolt.cs @@ -1,5 +1,4 @@ using CalamityMod.Buffs.DamageOverTime; -using CalamityMod.Buffs.StatDebuffs; using Microsoft.Xna.Framework; using Terraria; using Terraria.ID; @@ -8,6 +7,8 @@ namespace CalamityMod.Projectiles.Summon { public class MortalityBolt : ModProjectile { + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public Color ProjectileColor => Main.hslToRgb(projectile.localAI[0], 1f, 0.5f); public override void SetStaticDefaults() { @@ -45,7 +46,7 @@ namespace CalamityMod.Projectiles.Summon public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) { target.AddBuff(ModContent.BuffType(), 180); - target.AddBuff(ModContent.BuffType(), 180); + target.AddBuff(BuffID.Frostburn, 180); target.AddBuff(ModContent.BuffType(), 180); target.AddBuff(ModContent.BuffType(), 180); } diff --git a/Projectiles/Summon/MortalityBolt.png b/Projectiles/Summon/MortalityBolt.png deleted file mode 100644 index 3c8f498e7b..0000000000 Binary files a/Projectiles/Summon/MortalityBolt.png and /dev/null differ diff --git a/Projectiles/Summon/SepulcherMinionBodyAlt.png b/Projectiles/Summon/SepulcherMinionBodyAlt.png index 7bddb6f35e..fe9de35a5e 100644 Binary files a/Projectiles/Summon/SepulcherMinionBodyAlt.png and b/Projectiles/Summon/SepulcherMinionBodyAlt.png differ diff --git a/Projectiles/Summon/UniverseSplitterField.cs b/Projectiles/Summon/UniverseSplitterField.cs index 56fc408f48..56fe37e70a 100644 --- a/Projectiles/Summon/UniverseSplitterField.cs +++ b/Projectiles/Summon/UniverseSplitterField.cs @@ -9,6 +9,8 @@ namespace CalamityMod.Projectiles.Summon { public class UniverseSplitterField : ModProjectile { + public override string Texture => "CalamityMod/Projectiles/InvisibleProj"; + public float Timer { get => projectile.ai[0]; diff --git a/Projectiles/Summon/UniverseSplitterField.png b/Projectiles/Summon/UniverseSplitterField.png deleted file mode 100644 index c8fba012d0..0000000000 Binary files a/Projectiles/Summon/UniverseSplitterField.png and /dev/null differ