From fe35b804e3454abc3ae302669eb0fce73b412c8f Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sun, 14 Nov 2021 23:14:41 -0500 Subject: [PATCH 01/10] updated some summon helmets for clarity --- Items/Armor/AuricTeslaSpaceHelmet.cs | 8 +++++--- Items/Armor/BloodflareHelmet.cs | 10 ++++++---- Items/Armor/SilvaHelmet.cs | 7 +++++-- 3 files changed, 16 insertions(+), 9 deletions(-) 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); From 56fac5c957d6753358fdbca4814b933075fc89e1 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sun, 14 Nov 2021 23:17:57 -0500 Subject: [PATCH 02/10] flowers of mortality now inflict glacial state --- Projectiles/Summon/ElementalAxeMinion.cs | 1 - Projectiles/Summon/MortalityBeam.cs | 5 +++-- Projectiles/Summon/MortalityBeam.png | Bin 119 -> 0 bytes Projectiles/Summon/MortalityBolt.cs | 5 +++-- Projectiles/Summon/MortalityBolt.png | Bin 119 -> 0 bytes Projectiles/Summon/UniverseSplitterField.cs | 2 ++ Projectiles/Summon/UniverseSplitterField.png | Bin 3289 -> 0 bytes 7 files changed, 8 insertions(+), 5 deletions(-) delete mode 100644 Projectiles/Summon/MortalityBeam.png delete mode 100644 Projectiles/Summon/MortalityBolt.png delete mode 100644 Projectiles/Summon/UniverseSplitterField.png 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 3c8f498e7b5d6be4a208d079e9c36406652b97e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 119 zcmeAS@N?(olHy`uVBq!ia0vp^Od!m`1|*BN@u~nR#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;>1s;*b3=DjSL74G){)!Z!AdjbuV~9j}vI8>@4+Db`1LI=#$Gd>y44$rj JF6*2UngBoO894v| 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 3c8f498e7b5d6be4a208d079e9c36406652b97e5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 119 zcmeAS@N?(olHy`uVBq!ia0vp^Od!m`1|*BN@u~nR#^NA%Cx&(BWL^R}Ea{HEjtmSN z`?>!lvI6;>1s;*b3=DjSL74G){)!Z!AdjbuV~9j}vI8>@4+Db`1LI=#$Gd>y44$rj JF6*2UngBoO894v| 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 c8fba012d09fc3124fb519f46dc1b54c2c2b14d5..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3289 zcmeH}={M958^*u(of%}`v+o%{OUV*rX=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er2Y~Oou6z&yF;n*bU;amKa2F!H#6q36Qq_sSEDc}+H8a56a*O*98U>`G From bbba89692e750e3ac8e530e9f587b56645088420 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sun, 14 Nov 2021 23:26:11 -0500 Subject: [PATCH 03/10] adjusted angelic alliance --- Projectiles/Summon/AngelBolt.cs | 2 +- Projectiles/Summon/AngelOrb.cs | 2 +- Projectiles/Summon/AngelRay.cs | 2 +- Projectiles/Summon/AngelicAllianceArchangel.cs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) 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..ee8180931a 100644 --- a/Projectiles/Summon/AngelRay.cs +++ b/Projectiles/Summon/AngelRay.cs @@ -25,7 +25,7 @@ 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; 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; From 224f9be447697f47250274605726223c7018c7b4 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sun, 14 Nov 2021 23:26:27 -0500 Subject: [PATCH 04/10] saved Iban from YuH's wrath --- Projectiles/Summon/SepulcherMinionBodyAlt.png | Bin 2059 -> 3287 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/Projectiles/Summon/SepulcherMinionBodyAlt.png b/Projectiles/Summon/SepulcherMinionBodyAlt.png index 7bddb6f35e05c92d46158e6cf3f3097bf70057b3..fe9de35a5e8c4cf79a3e2d60cd763246b665722b 100644 GIT binary patch literal 3287 zcmV;|3@G!7P)Px>kx4{BRCt{2oO^6uWgW*qr|;YQWxZ_Ox^}i@&XtZy6hjb(VG#*t^&etHqE3wl zM)VJ2q7fu4kTEn8^*<&WjYu+x1W7iMWd=vKF~}l}xwVW8)|IX8y0vTf_I^G7@jJi1 zeV(54-nt!Ta=!n(J-6qa)AN14&+qm;4xbXX6xO6X{`GI&3&7Bkf4cy0pP$l04#1iM z*{&!pFs{?>$3N}`U|V^)9+x2kQ61MrXi2LNav=*#*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9&1}-zEUHFQ-(crbxFjs4~p)W*86rdi8aQZ&7Z=h{oO+$?q1|Jvuexh zrTd+adbP72PrneZ)4JR4kK@V>QyA;lJUX1)J@@(g{|!H<1|>44-~7q*ttM{vzsQ#x jgrv94`oA!C!}s6*CRcXX1@2ds0u`;Eu6{1-oD!M<7#!iq From bee1942096fe8aa9c043e68bb3ff56567a96e9e0 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sun, 14 Nov 2021 23:42:39 -0500 Subject: [PATCH 05/10] made all sentries autoswing, removed autoswing from stuff that doesn't need multiple summonings --- Items/Weapons/Summon/CadaverousCarrion.cs | 1 + Items/Weapons/Summon/CinderBlossomStaff.cs | 1 - Items/Weapons/Summon/CryogenicStaff.cs | 1 + Items/Weapons/Summon/FlowersOfMortality.cs | 1 - Items/Weapons/Summon/FrostBlossomStaff.cs | 1 - Items/Weapons/Summon/HivePod.cs | 1 + Items/Weapons/Summon/SunGodStaff.cs | 2 ++ Items/Weapons/Summon/SunSpiritStaff.cs | 2 ++ Items/Weapons/Summon/TundraFlameBlossomsStaff.cs | 1 - Items/Weapons/Summon/WitherBlossomsStaff.cs | 1 - Projectiles/Summon/AngelRay.cs | 2 +- 11 files changed, 8 insertions(+), 6 deletions(-) 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/Projectiles/Summon/AngelRay.cs b/Projectiles/Summon/AngelRay.cs index ee8180931a..360214a776 100644 --- a/Projectiles/Summon/AngelRay.cs +++ b/Projectiles/Summon/AngelRay.cs @@ -28,7 +28,7 @@ namespace CalamityMod.Projectiles.Summon projectile.extraUpdates = 200; projectile.timeLeft = 600; projectile.usesLocalNPCImmunity = true; - projectile.localNPCHitCooldown = 10; + projectile.localNPCHitCooldown = 20; } public override void AI() From 8ad3bb9b49f6c5d62d1434c7d2911868eee0fd4c Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sun, 14 Nov 2021 23:44:19 -0500 Subject: [PATCH 06/10] added viral sprout and polyp launcher to nature weapons --- CalamityLists.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/CalamityLists.cs b/CalamityLists.cs index 0b96dbc6b9..36b36aafb4 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1199,6 +1199,7 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), @@ -1210,6 +1211,7 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), + ItemType(), ItemType(), ItemType(), ItemType(), From 9083ed43279f47683cb9334be289646f47ed1e26 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Sun, 14 Nov 2021 23:45:29 -0500 Subject: [PATCH 07/10] virid vanguard and daedalus golem staff --- CalamityLists.cs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/CalamityLists.cs b/CalamityLists.cs index 36b36aafb4..f2a4a94f2b 100644 --- a/CalamityLists.cs +++ b/CalamityLists.cs @@ -1085,7 +1085,8 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType() + ItemType(), + ItemType() }; natureWeaponList = new List() @@ -1216,7 +1217,8 @@ namespace CalamityMod ItemType(), ItemType(), ItemType(), - ItemType() + ItemType(), + ItemType() }; alcoholList = new List() From abc87ee1c5580d018b7781472ab98bc1336d36dc Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 15 Nov 2021 00:22:06 -0500 Subject: [PATCH 08/10] deathstare rod is now obtainable --- Items/CalamityGlobalItemLoot.cs | 4 ++++ ModSupport/WeakReferenceSupport.cs | 2 +- NPCs/CalamityGlobalNPCLoot.cs | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index 115644510e..a20fbaf27d 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -43,6 +43,10 @@ namespace CalamityMod.Items switch (itemID) { + case ItemID.EyeofCthulhuBossBag: + DropHelper.DropItem(player, ModContent.ItemType(), DropHelper.BagWeaponDropRateFloat); + break; + case ItemID.QueenBeeBossBag: // Drop weapons Calamity style instead of mutually exclusive. int[] queenBeeWeapons = new int[] 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..ebdadc4dbf 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); From ad9625385c8d1f579343d89d94df783158c1f837 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 15 Nov 2021 00:24:08 -0500 Subject: [PATCH 09/10] pygmy staff shouldn't be included cuz it's already dropped separately --- Items/CalamityGlobalItemLoot.cs | 3 +-- NPCs/CalamityGlobalNPCLoot.cs | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index a20fbaf27d..5bac375da9 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -110,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/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index ebdadc4dbf..939eb9aff9 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -296,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); From 6e1e71ce3893e88abd16c7639038d9ef7de77f47 Mon Sep 17 00:00:00 2001 From: ben-tk <45545085+ben-tk@users.noreply.github.com> Date: Mon, 15 Nov 2021 17:20:56 -0500 Subject: [PATCH 10/10] fixed compile errors --- Items/CalamityGlobalItemLoot.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/CalamityGlobalItemLoot.cs b/Items/CalamityGlobalItemLoot.cs index 5bac375da9..fb7aa8eccb 100644 --- a/Items/CalamityGlobalItemLoot.cs +++ b/Items/CalamityGlobalItemLoot.cs @@ -43,8 +43,8 @@ namespace CalamityMod.Items switch (itemID) { - case ItemID.EyeofCthulhuBossBag: - DropHelper.DropItem(player, ModContent.ItemType(), DropHelper.BagWeaponDropRateFloat); + case ItemID.EyeOfCthulhuBossBag: + DropHelper.DropItemChance(player, ModContent.ItemType(), DropHelper.BagWeaponDropRateFloat); break; case ItemID.QueenBeeBossBag: