From 331ac1d340bca410d61ef4829cbb6cdfc27a5ace Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 1 Dec 2019 12:49:19 -0500 Subject: [PATCH 1/8] shroomerang/phantasmal ruin nerfs --- Items/Weapons/Rogue/PhantasmalRuin.cs | 4 ++-- Projectiles/Rogue/ShroomerangProj.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Rogue/PhantasmalRuin.cs b/Items/Weapons/Rogue/PhantasmalRuin.cs index cbbc2c5a50..6bdcf73686 100644 --- a/Items/Weapons/Rogue/PhantasmalRuin.cs +++ b/Items/Weapons/Rogue/PhantasmalRuin.cs @@ -29,8 +29,8 @@ Stealth strikes summon ghost clones instead of lost souls"); item.noUseGraphic = true; item.value = Item.buyPrice(1, 40, 0, 0); - item.useTime = 15; - item.useAnimation = 15; + item.useTime = 25; + item.useAnimation = 25; item.UseSound = SoundID.Item1; item.rare = 10; item.Calamity().postMoonLordRarity = 13; diff --git a/Projectiles/Rogue/ShroomerangProj.cs b/Projectiles/Rogue/ShroomerangProj.cs index 82f6ed444a..940f04969f 100644 --- a/Projectiles/Rogue/ShroomerangProj.cs +++ b/Projectiles/Rogue/ShroomerangProj.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Projectiles.Rogue if (projectile.Calamity().stealthStrike == true) { stealthCounter++; - if (stealthCounter == 8 && projectile.owner == Main.myPlayer) + if (stealthCounter == 15 && projectile.owner == Main.myPlayer) { Vector2 vector62 = Main.player[projectile.owner].Center - projectile.Center; stealthCounter = 0; @@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Rogue vector63.Normalize(); vector63 *= (float)Main.rand.Next(45, 65) * 0.1f; vector63 = vector63.RotatedBy((Main.rand.NextDouble() - 0.5) * 1.5707963705062866, default); - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector63.X, vector63.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.6), projectile.knockBack * 0.2f, projectile.owner, -10f, 0f); + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector63.X, vector63.Y, ModContent.ProjectileType(), (int)((double)projectile.damage * 0.1), projectile.knockBack * 0.2f, projectile.owner, -10f, 0f); } } } From 3e063cc207abb3cc959e8db5e9eeb4c48a4abcdb Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 1 Dec 2019 12:49:34 -0500 Subject: [PATCH 2/8] silencing sheath recipe group --- Items/Accessories/SilencingSheath.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/Items/Accessories/SilencingSheath.cs b/Items/Accessories/SilencingSheath.cs index 3bd73b4b6c..c751a8f490 100644 --- a/Items/Accessories/SilencingSheath.cs +++ b/Items/Accessories/SilencingSheath.cs @@ -35,15 +35,7 @@ namespace CalamityMod.Items.Accessories ModRecipe recipe = new ModRecipe(mod); recipe.AddIngredient(ItemID.DemoniteBar, 8); recipe.AddIngredient(ItemID.Silk, 10); - recipe.AddIngredient(ItemID.ShadowScale, 3); - recipe.AddTile(TileID.TinkerersWorkbench); - recipe.SetResult(this); - recipe.AddRecipe(); - - recipe = new ModRecipe(mod); - recipe.AddIngredient(ItemID.CrimtaneBar, 8); - recipe.AddIngredient(ItemID.Silk, 10); - recipe.AddIngredient(ItemID.TissueSample, 3); + recipe.AddRecipeGroup("Boss2Material", 3); recipe.AddTile(TileID.TinkerersWorkbench); recipe.SetResult(this); recipe.AddRecipe(); From 15b36e1789aaa6e015cbecbeb795a3fc4fe9ade5 Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Sun, 1 Dec 2019 16:50:52 -0600 Subject: [PATCH 3/8] Various MP fixes in description * Partially fixed Golem Free Head in rev (a little jittery, but I couldn't locate the root cause of that) * Added packets for toggleable items, such as the defiled rune, so that the server and client don't bitch at each other over the boolean * Added various logic checks and netcode to the mechworm. Hopefully removed most, if not all mechworm bugs. --- CalamityMod.cs | 38 +++++++++++++++++++++++++++- Items/DifficultyItems/Armageddon.cs | 8 ++++++ Items/DifficultyItems/Death.cs | 8 ++++++ Items/DifficultyItems/DefiledRune.cs | 10 ++++++++ Items/DifficultyItems/IronHeart.cs | 8 ++++++ Items/DifficultyItems/MLGRune.cs | 7 +++++ Items/DifficultyItems/Revenge.cs | 7 +++++ NPCs/CalamityGlobalAI.cs | 10 +++++--- NPCs/CalamityGlobalNPC.cs | 2 +- Projectiles/Melee/GaelSkull.cs | 2 +- Projectiles/Melee/GaelSkull2.cs | 2 +- Projectiles/Summon/MechwormBody.cs | 17 +++++++++++++ Projectiles/Summon/MechwormBody2.cs | 17 +++++++++++++ Projectiles/Summon/MechwormHead.cs | 1 + Projectiles/Summon/MechwormTail.cs | 19 +++++++++++++- 15 files changed, 147 insertions(+), 9 deletions(-) diff --git a/CalamityMod.cs b/CalamityMod.cs index 927af218d4..be9db6a4ec 100644 --- a/CalamityMod.cs +++ b/CalamityMod.cs @@ -15,6 +15,7 @@ using CalamityMod.Items.Fishing.AstralCatches; using CalamityMod.Items.Fishing.SunkenSeaCatches; using CalamityMod.Items.Fishing.FishingRods; using CalamityMod.Localization; +using CalamityMod.NPCs; using CalamityMod.NPCs.Abyss; using CalamityMod.NPCs.AquaticScourge; using CalamityMod.NPCs.Astral; @@ -3265,6 +3266,32 @@ namespace CalamityMod case CalamityModMessageType.DeathCountSync: Main.player[reader.ReadInt32()].Calamity().HandleDeathCount(reader); break; + case CalamityModMessageType.RevengeanceBoolSync: + bool revActive = reader.ReadBoolean(); + CalamityWorld.revenge = revActive; + break; + case CalamityModMessageType.DeathBoolSync: + bool revActive2 = reader.ReadBoolean(); + CalamityWorld.revenge = revActive2; + bool deathActive = reader.ReadBoolean(); + CalamityWorld.death = deathActive; + break; + case CalamityModMessageType.DefiledBoolSync: + bool defiledActive = reader.ReadBoolean(); + CalamityWorld.defiled = defiledActive; + break; + case CalamityModMessageType.IronHeartBoolSync: + bool ironHeartActive = reader.ReadBoolean(); + CalamityWorld.ironHeart = ironHeartActive; + break; + case CalamityModMessageType.ArmageddonBoolSync: + bool armaActive = reader.ReadBoolean(); + CalamityWorld.armageddon = armaActive; + break; + case CalamityModMessageType.NPCRegenerationSync: + byte npcIndex = reader.ReadByte(); + Main.npc[npcIndex].lifeRegen = reader.ReadInt32(); + break; default: Logger.Warn("Unknown Message type: " + msgType); break; @@ -3286,7 +3313,9 @@ namespace CalamityMod public static void UpdateServerBoolean() { if (Main.netMode == NetmodeID.Server) + { NetMessage.SendData(7, -1, -1, null, 0, 0f, 0f, 0f, 0, 0, 0); + } } #endregion } @@ -3318,7 +3347,14 @@ namespace CalamityMod DoGCountdownSync, BossSpawnCountdownSync, BossTypeSync, - DeathCountSync + DeathCountSync, + RevengeanceBoolSync, + DeathBoolSync, + DefiledBoolSync, + IronHeartBoolSync, + ArmageddonBoolSync, + DemonTrophyBoolSync, + NPCRegenerationSync //DistanceFromBossSync } } diff --git a/Items/DifficultyItems/Armageddon.cs b/Items/DifficultyItems/Armageddon.cs index 8d265a0007..c42330f06d 100644 --- a/Items/DifficultyItems/Armageddon.cs +++ b/Items/DifficultyItems/Armageddon.cs @@ -72,6 +72,14 @@ namespace CalamityMod.Items.DifficultyItems } CalamityMod.UpdateServerBoolean(); + + if (Main.netMode == NetmodeID.Server) + { + var netMessage = mod.GetPacket(); + netMessage.Write((uint)CalamityModMessageType.ArmageddonBoolSync); + netMessage.Write(CalamityWorld.armageddon); + netMessage.Send(); + } return true; } diff --git a/Items/DifficultyItems/Death.cs b/Items/DifficultyItems/Death.cs index 0e5a68eb3c..20322b64dd 100644 --- a/Items/DifficultyItems/Death.cs +++ b/Items/DifficultyItems/Death.cs @@ -86,6 +86,14 @@ namespace CalamityMod.Items.DifficultyItems } CalamityMod.UpdateServerBoolean(); + + if (Main.netMode == NetmodeID.Server) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DeathBoolSync); + netMessage.Write(CalamityWorld.death); + netMessage.Send(); + } return true; } diff --git a/Items/DifficultyItems/DefiledRune.cs b/Items/DifficultyItems/DefiledRune.cs index c86876f8ec..8a633f5557 100644 --- a/Items/DifficultyItems/DefiledRune.cs +++ b/Items/DifficultyItems/DefiledRune.cs @@ -83,6 +83,16 @@ namespace CalamityMod.Items.DifficultyItems } CalamityMod.UpdateServerBoolean(); + + if (Main.netMode == NetmodeID.Server) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.RevengeanceBoolSync); + netMessage.Write(CalamityWorld.revenge); + netMessage.Write((byte)CalamityModMessageType.DefiledBoolSync); + netMessage.Write(CalamityWorld.defiled); + netMessage.Send(); + } return true; } diff --git a/Items/DifficultyItems/IronHeart.cs b/Items/DifficultyItems/IronHeart.cs index fcc45eeafe..58236f96e4 100644 --- a/Items/DifficultyItems/IronHeart.cs +++ b/Items/DifficultyItems/IronHeart.cs @@ -83,6 +83,14 @@ namespace CalamityMod.Items.DifficultyItems } } CalamityMod.UpdateServerBoolean(); + + if (Main.netMode == NetmodeID.Server) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.IronHeartBoolSync); + netMessage.Write(CalamityWorld.ironHeart); + netMessage.Send(); + } return true; } } diff --git a/Items/DifficultyItems/MLGRune.cs b/Items/DifficultyItems/MLGRune.cs index cdb8ef2931..3fbbabeb5f 100644 --- a/Items/DifficultyItems/MLGRune.cs +++ b/Items/DifficultyItems/MLGRune.cs @@ -31,6 +31,13 @@ namespace CalamityMod.Items.DifficultyItems { CalamityWorld.demonMode = true; CalamityMod.UpdateServerBoolean(); + if (Main.netMode == NetmodeID.Server) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.DemonTrophyBoolSync); + netMessage.Write(CalamityWorld.demonMode); + netMessage.Send(); + } return true; } } diff --git a/Items/DifficultyItems/Revenge.cs b/Items/DifficultyItems/Revenge.cs index a1ad1ae0f5..0b66eabc2f 100644 --- a/Items/DifficultyItems/Revenge.cs +++ b/Items/DifficultyItems/Revenge.cs @@ -128,6 +128,13 @@ namespace CalamityMod.Items.DifficultyItems } CalamityMod.UpdateServerBoolean(); + if (Main.netMode == NetmodeID.Server) + { + var netMessage = mod.GetPacket(); + netMessage.Write((byte)CalamityModMessageType.RevengeanceBoolSync); + netMessage.Write(CalamityWorld.revenge); + netMessage.Send(); + } } return true; } diff --git a/NPCs/CalamityGlobalAI.cs b/NPCs/CalamityGlobalAI.cs index dd9c4d6099..7a11c65f06 100644 --- a/NPCs/CalamityGlobalAI.cs +++ b/NPCs/CalamityGlobalAI.cs @@ -9222,9 +9222,6 @@ namespace CalamityMod.NPCs bool phase3 = lifeRatio < 0.4f || golemLifeRatio < 0.7f || CalamityWorld.death || CalamityWorld.bossRushActive; bool phase4 = lifeRatio < 0.1f || golemLifeRatio < 0.55f || CalamityWorld.death || CalamityWorld.bossRushActive; - // Target - npc.TargetClosest(true); - // Float through tiles or not bool flag44 = false; if (!Collision.CanHit(npc.Center, 1, 1, Main.player[npc.target].Center, 1, 1) || phase3) @@ -9252,6 +9249,10 @@ namespace CalamityMod.NPCs // Move to new location if (npc.ai[3] <= 0f) { + // Target + npc.TargetClosest(true); + npc.netSpam = 5; + npc.ai[3] = 300f; float maxDistance = 300f; @@ -9315,7 +9316,7 @@ namespace CalamityMod.NPCs calamityGlobalNPC.newAI[1] = -maxDistance; } - npc.netUpdate = true; + npc.netUpdate = true; } npc.ai[3] -= 1f + @@ -9470,6 +9471,7 @@ namespace CalamityMod.NPCs } } } + NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); if (ModLoader.GetMod("FargowiltasSouls") != null) ModLoader.GetMod("FargowiltasSouls").Call("FargoSoulsAI", npc.whoAmI); diff --git a/NPCs/CalamityGlobalNPC.cs b/NPCs/CalamityGlobalNPC.cs index ab3eca7f43..a6bccab994 100644 --- a/NPCs/CalamityGlobalNPC.cs +++ b/NPCs/CalamityGlobalNPC.cs @@ -80,7 +80,7 @@ namespace CalamityMod.NPCs // private int ironHeartDamage = 0; // NewAI - private const int maxAIMod = 4; + internal const int maxAIMod = 4; public float[] newAI = new float[maxAIMod]; // Town NPC Patreon diff --git a/Projectiles/Melee/GaelSkull.cs b/Projectiles/Melee/GaelSkull.cs index 5116e5cebb..a00e03f1d2 100644 --- a/Projectiles/Melee/GaelSkull.cs +++ b/Projectiles/Melee/GaelSkull.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Melee { public override void SetStaticDefaults() { - DisplayName.SetDefault("Skull"); + DisplayName.SetDefault("Ark of the Cosmos' Superior Cousin"); ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; ProjectileID.Sets.TrailingMode[projectile.type] = 0; Main.projFrames[projectile.type] = 5; diff --git a/Projectiles/Melee/GaelSkull2.cs b/Projectiles/Melee/GaelSkull2.cs index e9410baadb..35c69be239 100644 --- a/Projectiles/Melee/GaelSkull2.cs +++ b/Projectiles/Melee/GaelSkull2.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Projectiles.Melee { public override void SetStaticDefaults() { - DisplayName.SetDefault("Skull"); + DisplayName.SetDefault("Ark of the Cosmos' Superior Cousin"); ProjectileID.Sets.TrailCacheLength[projectile.type] = 4; ProjectileID.Sets.TrailingMode[projectile.type] = 0; Main.projFrames[projectile.type] = 5; diff --git a/Projectiles/Summon/MechwormBody.cs b/Projectiles/Summon/MechwormBody.cs index 344b84a2aa..35360d9ab3 100644 --- a/Projectiles/Summon/MechwormBody.cs +++ b/Projectiles/Summon/MechwormBody.cs @@ -79,6 +79,22 @@ namespace CalamityMod.Projectiles.Summon float scaleFactor18; if (chase >= 0 && Main.projectile[chase].active) { + //Delete the player's mechworm if it's attaching to something weird + if (Main.projectile[chase].type != ModContent.ProjectileType() && + Main.projectile[chase].type != ModContent.ProjectileType()) + { + for (int i = 0; i < Main.projectile.Length; i++) + { + if (Main.projectile[i].active && Main.projectile[i].owner == projectile.owner && + (Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType())) + { + Main.projectile[i].Kill(); + } + } + } value68 = Main.projectile[chase].Center; Vector2 arg_2DE6A_0 = Main.projectile[chase].velocity; num1064 = Main.projectile[chase].rotation; @@ -113,6 +129,7 @@ namespace CalamityMod.Projectiles.Summon projectile.Center = value68 - Vector2.Normalize(vector134) * scaleFactor17 * scaleFactor18; } projectile.spriteDirection = (vector134.X > 0f) ? 1 : -1; + projectile.netSpam = 5; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Summon/MechwormBody2.cs b/Projectiles/Summon/MechwormBody2.cs index dba4f74489..dee4b8bf91 100644 --- a/Projectiles/Summon/MechwormBody2.cs +++ b/Projectiles/Summon/MechwormBody2.cs @@ -79,6 +79,22 @@ namespace CalamityMod.Projectiles.Summon float scaleFactor18; if (chase >= 0 && Main.projectile[chase].active) { + //Delete the player's mechworm if it's attaching to something weird + if (Main.projectile[chase].type != ModContent.ProjectileType() && + Main.projectile[chase].type != ModContent.ProjectileType()) + { + for (int i = 0; i < Main.projectile.Length; i++) + { + if (Main.projectile[i].active && Main.projectile[i].owner == projectile.owner && + (Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType())) + { + Main.projectile[i].Kill(); + } + } + } value68 = Main.projectile[chase].Center; Vector2 arg_2DE6A_0 = Main.projectile[chase].velocity; num1064 = Main.projectile[chase].rotation; @@ -112,6 +128,7 @@ namespace CalamityMod.Projectiles.Summon projectile.Center = value68 - Vector2.Normalize(vector134) * scaleFactor17 * scaleFactor18; } projectile.spriteDirection = (vector134.X > 0f) ? 1 : -1; + projectile.netSpam = 5; return; } diff --git a/Projectiles/Summon/MechwormHead.cs b/Projectiles/Summon/MechwormHead.cs index 41e8821143..3e51a80044 100644 --- a/Projectiles/Summon/MechwormHead.cs +++ b/Projectiles/Summon/MechwormHead.cs @@ -208,6 +208,7 @@ namespace CalamityMod.Projectiles.Summon projectile.alpha = 0; } } + projectile.netSpam = 5; } public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) diff --git a/Projectiles/Summon/MechwormTail.cs b/Projectiles/Summon/MechwormTail.cs index 91b121c1a6..80c0f4f77d 100644 --- a/Projectiles/Summon/MechwormTail.cs +++ b/Projectiles/Summon/MechwormTail.cs @@ -79,11 +79,27 @@ namespace CalamityMod.Projectiles.Summon float scaleFactor18; if (chase >= 0 && Main.projectile[chase].active) { + //Delete the player's mechworm if it's attaching to something weird + if (Main.projectile[chase].type != ModContent.ProjectileType() && + Main.projectile[chase].type != ModContent.ProjectileType()) + { + for (int i = 0; i < Main.projectile.Length; i++) + { + if (Main.projectile[i].active && Main.projectile[i].owner == projectile.owner && + (Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType() || + Main.projectile[chase].type == ModContent.ProjectileType())) + { + Main.projectile[i].Kill(); + } + } + } value68 = Main.projectile[chase].Center; Vector2 arg_2DE6A_0 = Main.projectile[chase].velocity; num1064 = Main.projectile[chase].rotation; scaleFactor18 = MathHelper.Clamp(Main.projectile[chase].scale, 0f, 50f); - scaleFactor17 = 16f; + scaleFactor17 = 6f; Main.projectile[chase].localAI[0] = projectile.localAI[0] + 1f; } else @@ -113,6 +129,7 @@ namespace CalamityMod.Projectiles.Summon projectile.Center = value68 - Vector2.Normalize(vector134) * scaleFactor17 * scaleFactor18; } projectile.spriteDirection = (vector134.X > 0f) ? 1 : -1; + projectile.netSpam = 5; return; } From 7e4ca60fc6cff825a00fbf21980ed970c5f15b7a Mon Sep 17 00:00:00 2001 From: DominicKarma42 <51094361+DominicKarma@users.noreply.github.com> Date: Sun, 1 Dec 2019 18:06:11 -0600 Subject: [PATCH 4/8] PBG fix --- NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs | 8 ++++++-- NPCs/PlaguebringerGoliath/PlaguebringerShade.cs | 5 +++++ Projectiles/Summon/MechwormBody.cs | 3 ++- Projectiles/Summon/MechwormBody2.cs | 3 ++- 4 files changed, 15 insertions(+), 4 deletions(-) diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs index 6adc5372f7..7b671b4850 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerGoliath.cs @@ -226,7 +226,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath break; } } - npc.ai[0] = (float)num596; npc.ai[1] = 0f; npc.ai[2] = 0f; @@ -349,7 +348,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath if (npc.netSpam > 10) npc.netSpam = 10; - } + } // Slow down after charge else @@ -860,6 +859,11 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.netSpam = 10; } } + + if (Main.netMode == NetmodeID.Server) + { + NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + } } private void Movement(float xPos, float yPos, float yPos2) diff --git a/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs b/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs index aae807cff6..a5b7875cc1 100644 --- a/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs +++ b/NPCs/PlaguebringerGoliath/PlaguebringerShade.cs @@ -573,6 +573,11 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath npc.netUpdate = true; } } + + if (Main.netMode == NetmodeID.Server) + { + NetMessage.SendData(23, -1, -1, null, npc.whoAmI, 0f, 0f, 0f, 0, 0, 0); + } } public override float SpawnChance(NPCSpawnInfo spawnInfo) diff --git a/Projectiles/Summon/MechwormBody.cs b/Projectiles/Summon/MechwormBody.cs index 35360d9ab3..905679e40c 100644 --- a/Projectiles/Summon/MechwormBody.cs +++ b/Projectiles/Summon/MechwormBody.cs @@ -81,7 +81,8 @@ namespace CalamityMod.Projectiles.Summon { //Delete the player's mechworm if it's attaching to something weird if (Main.projectile[chase].type != ModContent.ProjectileType() && - Main.projectile[chase].type != ModContent.ProjectileType()) + Main.projectile[chase].type != ModContent.ProjectileType() && + Main.projectile[chase].type != ModContent.ProjectileType()) { for (int i = 0; i < Main.projectile.Length; i++) { diff --git a/Projectiles/Summon/MechwormBody2.cs b/Projectiles/Summon/MechwormBody2.cs index dee4b8bf91..d4950f64ef 100644 --- a/Projectiles/Summon/MechwormBody2.cs +++ b/Projectiles/Summon/MechwormBody2.cs @@ -81,7 +81,8 @@ namespace CalamityMod.Projectiles.Summon { //Delete the player's mechworm if it's attaching to something weird if (Main.projectile[chase].type != ModContent.ProjectileType() && - Main.projectile[chase].type != ModContent.ProjectileType()) + Main.projectile[chase].type != ModContent.ProjectileType() && + Main.projectile[chase].type != ModContent.ProjectileType()) { for (int i = 0; i < Main.projectile.Length; i++) { From 2d1e15a5f5b8a86c64f893798058d79e79cadcfd Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 1 Dec 2019 22:23:03 -0500 Subject: [PATCH 5/8] boosted solar veil drop rates and changed fantasy talisman recipe --- Items/Weapons/Rogue/FantasyTalisman.cs | 7 ++++--- NPCs/CalamityGlobalNPCLoot.cs | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Items/Weapons/Rogue/FantasyTalisman.cs b/Items/Weapons/Rogue/FantasyTalisman.cs index 693d5784e2..4201d9f041 100644 --- a/Items/Weapons/Rogue/FantasyTalisman.cs +++ b/Items/Weapons/Rogue/FantasyTalisman.cs @@ -53,10 +53,11 @@ Stealth strikes release more souls and leave behind souls as they travel"); public override void AddRecipes() { ModRecipe recipe = new ModRecipe(mod); - recipe.AddIngredient(ModContent.ItemType()); - recipe.AddIngredient(ItemID.Ectoplasm); + recipe.AddIngredient(ModContent.ItemType(), 2); + recipe.AddIngredient(ItemID.Silk, 3); + recipe.AddIngredient(ItemID.Ectoplasm, 5); recipe.AddTile(TileID.MythrilAnvil); - recipe.SetResult(this, 5); + recipe.SetResult(this, 100); recipe.AddRecipe(); } } diff --git a/NPCs/CalamityGlobalNPCLoot.cs b/NPCs/CalamityGlobalNPCLoot.cs index a66fcc74d7..3c7d3b7b7f 100644 --- a/NPCs/CalamityGlobalNPCLoot.cs +++ b/NPCs/CalamityGlobalNPCLoot.cs @@ -1629,7 +1629,7 @@ namespace CalamityMod.NPCs case NPCID.Reaper: case NPCID.Psycho: - DropHelper.DropItemCondition(npc, ModContent.ItemType(), (CalamityWorld.downedCalamitas || NPC.downedPlantBoss), Main.expertMode ? 0.1f : 0.05f, 1, 3); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), (CalamityWorld.downedCalamitas || NPC.downedPlantBoss), Main.expertMode ? 0.75f : 0.5f, 1, 4); DropHelper.DropItemCondition(npc, ModContent.ItemType(), CalamityWorld.downedBuffedMothron, Main.expertMode ? 0.06f : 0.04f, 1, 1); break; From 90abd92ed72a0dd4fe58c8ac3b39f76cb3ba6922 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 1 Dec 2019 22:25:39 -0500 Subject: [PATCH 6/8] added hardened honeycomb (unobtainable) --- Items/Weapons/Rogue/HardenedHoneycomb.cs | 64 +++++++++++ Items/Weapons/Rogue/HardenedHoneycomb.png | Bin 0 -> 546 bytes Projectiles/Rogue/Honeycomb.cs | 132 ++++++++++++++++++++++ Projectiles/Rogue/Honeycomb.png | Bin 0 -> 546 bytes Projectiles/Rogue/HoneycombFragment.cs | 64 +++++++++++ Projectiles/Rogue/HoneycombFragment.png | Bin 0 -> 343 bytes Projectiles/Rogue/HoneycombFragment2.png | Bin 0 -> 268 bytes Projectiles/Rogue/HoneycombFragment3.png | Bin 0 -> 362 bytes 8 files changed, 260 insertions(+) create mode 100644 Items/Weapons/Rogue/HardenedHoneycomb.cs create mode 100644 Items/Weapons/Rogue/HardenedHoneycomb.png create mode 100644 Projectiles/Rogue/Honeycomb.cs create mode 100644 Projectiles/Rogue/Honeycomb.png create mode 100644 Projectiles/Rogue/HoneycombFragment.cs create mode 100644 Projectiles/Rogue/HoneycombFragment.png create mode 100644 Projectiles/Rogue/HoneycombFragment2.png create mode 100644 Projectiles/Rogue/HoneycombFragment3.png diff --git a/Items/Weapons/Rogue/HardenedHoneycomb.cs b/Items/Weapons/Rogue/HardenedHoneycomb.cs new file mode 100644 index 0000000000..44a8eb5287 --- /dev/null +++ b/Items/Weapons/Rogue/HardenedHoneycomb.cs @@ -0,0 +1,64 @@ +using CalamityMod.Projectiles.Rogue; +using Microsoft.Xna.Framework; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Rogue +{ + public class HardenedHoneycomb : RogueWeapon + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Hardened Honeycomb"); + Tooltip.SetDefault(@"Fires a honeycomb that shatters into fragments +Grants the honey buff to players it touches +Stealth strikes can bounce off walls and enemies"); + } + + public override void SafeSetDefaults() + { + item.width = 30; + item.damage = 25; + item.noMelee = true; + item.consumable = true; + item.noUseGraphic = true; + item.useAnimation = 21; + item.useTime = 21; + item.useStyle = 1; + item.knockBack = 3f; + item.UseSound = SoundID.Item1; + item.autoReuse = true; + item.height = 32; + item.maxStack = 999; + item.value = 300; + item.rare = 3; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 10f; + item.Calamity().rogue = true; + } + + public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack) + { + if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike + { + int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f); + Main.projectile[stealth].Calamity().stealthStrike = true; + Main.projectile[stealth].penetrate = 3; + return false; + } + return true; + } + + /*public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.Hive); + recipe.AddIngredient(ItemID.CrispyHoneyBlock); + recipe.AddIngredient(ItemID.BeeWax); + recipe.AddTile(TileID.Anvils); + recipe.SetResult(this, 5); + recipe.AddRecipe(); + }*/ + } +} diff --git a/Items/Weapons/Rogue/HardenedHoneycomb.png b/Items/Weapons/Rogue/HardenedHoneycomb.png new file mode 100644 index 0000000000000000000000000000000000000000..a29278afaa6f4bfcffd9099c77b11d1238f1a626 GIT binary patch literal 546 zcmV+-0^R+IP)Q;*TO2WJQ=TiwqP*gu#kI!?2q~SXeWP z|G@?_!EReI3}G-Z3>L)Vz+iC6sLmpqGIhjkz_;!rQf6T z=lc1s8`z1HdN+_fJ|0`rLecfqlGTpS0chPm0dQE_2<(u&7kPY$C6S8AD(8(NU0a+6 z{N8Jwyq2OTw%%Ha?3*P2HJ%y_Rg!q^ZG-EG*{;crPJC;kL>GVN^JQLm2x000tnMObu2 kSV=}YPjYExZggREX>V=-F@#v`?*IS*07*qoM6N<$f;8j!zyJUM literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/Honeycomb.cs b/Projectiles/Rogue/Honeycomb.cs new file mode 100644 index 0000000000..047c6ca249 --- /dev/null +++ b/Projectiles/Rogue/Honeycomb.cs @@ -0,0 +1,132 @@ +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; +using CalamityMod.Items.Weapons.Rogue; + +namespace CalamityMod.Projectiles.Rogue +{ + public class Honeycomb : ModProjectile + { + private const float radius = 15f; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Honeycomb"); + } + + public override void SetDefaults() + { + projectile.width = 30; + projectile.height = 30; + projectile.friendly = true; + projectile.penetrate = 1; + projectile.aiStyle = 2; + projectile.timeLeft = 300; + aiType = 48; + projectile.Calamity().rogue = true; + } + + public override void AI() + { + Player player = Main.player[Main.myPlayer]; + Vector2 posDiff = player.Center - projectile.Center; + if (posDiff.Length() <= radius) + { + player.AddBuff(BuffID.Honey, 300); + } + } + + public override bool OnTileCollide(Vector2 oldVelocity) + { + int split = 0; + while (split < 3) + { + //Calculate the velocity of the projectile + float shardspeedX = -projectile.velocity.X * Main.rand.NextFloat(.5f, .7f) + Main.rand.NextFloat(-3f, 3f); + float shardspeedY = -projectile.velocity.Y * Main.rand.Next(50, 70) * 0.01f + Main.rand.Next(-8, 9) * 0.2f; + //Prevents the projectile speed from being too low + if (shardspeedX < 2f && shardspeedX > -2f) + { + shardspeedX += -projectile.velocity.X; + } + if (shardspeedY > 2f && shardspeedY < 2f) + { + shardspeedY += -projectile.velocity.Y; + } + + //Spawn the projectile + Projectile.NewProjectile(projectile.position.X + shardspeedX, projectile.position.Y + shardspeedY, shardspeedX, shardspeedY, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 2f, projectile.owner); + split += 1; + } + projectile.penetrate--; + if (projectile.penetrate <= 0) + { + projectile.Kill(); + } + else + { + if (projectile.velocity.X != oldVelocity.X) + { + projectile.velocity.X = -oldVelocity.X; + } + if (projectile.velocity.Y != oldVelocity.Y) + { + projectile.velocity.Y = -oldVelocity.Y; + } + } + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + projectile.velocity.X = -projectile.velocity.X; + projectile.velocity.Y = -projectile.velocity.Y; + int split = 0; + while (split < 3) + { + //Calculate the velocity of the projectile + float shardspeedX = -projectile.velocity.X * Main.rand.NextFloat(.5f, .7f) + Main.rand.NextFloat(-3f, 3f); + float shardspeedY = -projectile.velocity.Y * Main.rand.Next(50, 70) * 0.01f + Main.rand.Next(-8, 9) * 0.2f; + //Prevents the projectile speed from being too low + if (shardspeedX < 2f && shardspeedX > -2f) + { + shardspeedX += -projectile.velocity.X; + } + if (shardspeedY > 2f && shardspeedY < 2f) + { + shardspeedY += -projectile.velocity.Y; + } + + //Spawn the projectile + Projectile.NewProjectile(projectile.position.X + shardspeedX, projectile.position.Y + shardspeedY, shardspeedX, shardspeedY, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 2f, projectile.owner); + split += 1; + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + Texture2D tex = Main.projectileTexture[projectile.type]; + spriteBatch.Draw(tex, projectile.Center - Main.screenPosition, null, projectile.GetAlpha(lightColor), projectile.rotation, tex.Size() / 2f, projectile.scale, SpriteEffects.None, 0f); + return false; + } + + public override void Kill(int timeLeft) + { + Main.PlaySound(4, (int)projectile.position.X, (int)projectile.position.Y, 1); + //Dust on impact + int dust_splash = 0; + while (dust_splash < 9) + { + Dust.NewDust(projectile.position, projectile.width, projectile.height, 9, -projectile.velocity.X * 0.15f, -projectile.velocity.Y * 0.15f, 159, default, 1.5f); + dust_splash += 1; + } + if (Main.rand.NextBool(2)) + { + Item.NewItem((int)projectile.position.X, (int)projectile.position.Y, projectile.width, projectile.height, ModContent.ItemType()); + } + } + } +} diff --git a/Projectiles/Rogue/Honeycomb.png b/Projectiles/Rogue/Honeycomb.png new file mode 100644 index 0000000000000000000000000000000000000000..a29278afaa6f4bfcffd9099c77b11d1238f1a626 GIT binary patch literal 546 zcmV+-0^R+IP)Q;*TO2WJQ=TiwqP*gu#kI!?2q~SXeWP z|G@?_!EReI3}G-Z3>L)Vz+iC6sLmpqGIhjkz_;!rQf6T z=lc1s8`z1HdN+_fJ|0`rLecfqlGTpS0chPm0dQE_2<(u&7kPY$C6S8AD(8(NU0a+6 z{N8Jwyq2OTw%%Ha?3*P2HJ%y_Rg!q^ZG-EG*{;crPJC;kL>GVN^JQLm2x000tnMObu2 kSV=}YPjYExZggREX>V=-F@#v`?*IS*07*qoM6N<$f;8j!zyJUM literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/HoneycombFragment.cs b/Projectiles/Rogue/HoneycombFragment.cs new file mode 100644 index 0000000000..00f6d5121b --- /dev/null +++ b/Projectiles/Rogue/HoneycombFragment.cs @@ -0,0 +1,64 @@ +using Terraria; +using Terraria.ModLoader; +using Microsoft.Xna.Framework; +using Microsoft.Xna.Framework.Graphics; +using System; + +namespace CalamityMod.Projectiles.Rogue +{ + public class HoneycombFragment : ModProjectile + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Honeycomb Fragment"); + } + + public override void SetDefaults() + { + projectile.friendly = true; + projectile.width = 14; + projectile.height = 14; + projectile.Calamity().rogue = true; + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + //Changes the texture of the projectile + if (projectile.ai[0] == 1f) + { + Texture2D texture = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/HoneycombFragment2"); + Main.spriteBatch.Draw(texture, projectile.Center - Main.screenPosition, new Rectangle?(new Rectangle(0, 0, 12, 14)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2(texture.Width / 2f, 20 / 2f), projectile.scale, SpriteEffects.None, 0f); + return false; + } + if (projectile.ai[0] == 2f) + { + Texture2D texture = ModContent.GetTexture("CalamityMod/Projectiles/Rogue/HoneycombFragment3"); + Main.spriteBatch.Draw(texture, projectile.Center - Main.screenPosition, new Rectangle?(new Rectangle(0, 0, 16, 14)), projectile.GetAlpha(lightColor), projectile.rotation, new Vector2(texture.Width / 2f, 20 / 2f), projectile.scale, SpriteEffects.None, 0f); + return false; + } + return true; + } + + public override void AI() + { + //Rotation and gravity + projectile.rotation += 0.6f * projectile.direction; + projectile.velocity.Y = projectile.velocity.Y + 0.27f; + if (projectile.velocity.Y > 16f) + { + projectile.velocity.Y = 16f; + } + } + + public override void Kill(int timeLeft) + { + //Dust effect + int splash = 0; + while (splash < 4) + { + Dust.NewDust(projectile.position, projectile.width, projectile.height, 9, -projectile.velocity.X * 0.15f, -projectile.velocity.Y * 0.10f, 159, default, 0.9f); + splash += 1; + } + } + } +} diff --git a/Projectiles/Rogue/HoneycombFragment.png b/Projectiles/Rogue/HoneycombFragment.png new file mode 100644 index 0000000000000000000000000000000000000000..993bd2ee3b9a76a3493c22eeb15ea0828308cdcd GIT binary patch literal 343 zcmeAS@N?(olHy`uVBq!ia0vp^d_XM3!3HF=W8NDADYhhUcNd2LAh=-f^2tDvcb+be zAr`0CUQ+aS4isT{@V+zmAp7A3%NA-MauGS)B*oHw^ntuVXTk?@j(^ROTW0IB3AQvY zN)SEV#GNhX=&RHb)4Y4b_XC?=d$w1fd-`}z^=7v?*43v=3yN>^vMmafX5ReuBahWx zaf75261v`RPycl~d^?z5X4|^M3v9N`F#VL}*yZ&5)y4}uw%Lh4JtBFUJ#g3SJ!0p! zf6My&X8#e3=*TSDeDPO?myTN8K6lDGBFC?>zs@$#ICjpw6)6Qp7r6_{ws2~B&wudc z!JZoRzt0<<{ZZLbU%|Iw_s8FPPj#1f8+Lv=1O3$l$n}Wl30?NpT}U>67l9eP?o{d)z4*}Q$iB}1DBR^ literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/HoneycombFragment2.png b/Projectiles/Rogue/HoneycombFragment2.png new file mode 100644 index 0000000000000000000000000000000000000000..032f46b4b94706db070d71a9d26448efcee383e1 GIT binary patch literal 268 zcmeAS@N?(olHy`uVBq!ia0vp^JV4CH!3HFy_x^nYq}Y|gW!U_%O?Xx7JIrl zhG?8m?lB5UN&o_Zhsntxy5jT8>-B6Z1wa3}r|2;YGj}$y-c6C#Rb&H!baPvgR>hyv zC$})(eKJ9&9wgTGefv9O10Z;Fx3tsA{(yvm`C*^DIRy->**@hqFqW7HpJ$tK(tX`t zpz#NK66^B9+&<+bq^6~$0BxJG@2j1c)T3t!X&~N@Uyt>ff#C4*_4`kLW@cF3X3*Wr u6TA)RT%i)z2q5xwv+^&>OwB7vEXmBzV=!!qc=H}8%i!ti=d#Wzp$P!DK4K*R literal 0 HcmV?d00001 diff --git a/Projectiles/Rogue/HoneycombFragment3.png b/Projectiles/Rogue/HoneycombFragment3.png new file mode 100644 index 0000000000000000000000000000000000000000..15350be722992b7d0e3b773ee60005420f0fa78c GIT binary patch literal 362 zcmV-w0hRuVP)r45OWPv1P zk$wutyKA8J@)5(u;b0^08*kwJHkWwNZ1+H|S{lz3qP>+lu(~)oaDMuWM+t*-HZvVT zum3xq4E_PW?ny9-v1FzI000tnMObu2SV=}YPjYExZggREX>V=-F@#v`?*IS*07*qo IM6N<$f Date: Sun, 1 Dec 2019 22:33:26 -0500 Subject: [PATCH 7/8] nerfed equanimity shards --- Projectiles/Rogue/EquanimityDarkShard.cs | 2 +- Projectiles/Rogue/EquanimityLightShard.cs | 2 +- Projectiles/Rogue/EquanimityProj.cs | 10 +++++----- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Projectiles/Rogue/EquanimityDarkShard.cs b/Projectiles/Rogue/EquanimityDarkShard.cs index 8e8ed18543..30842639d3 100644 --- a/Projectiles/Rogue/EquanimityDarkShard.cs +++ b/Projectiles/Rogue/EquanimityDarkShard.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.alpha = 0; projectile.penetrate = 1; projectile.tileCollide = true; - projectile.timeLeft = 150; + projectile.timeLeft = 120; projectile.Calamity().rogue = true; } diff --git a/Projectiles/Rogue/EquanimityLightShard.cs b/Projectiles/Rogue/EquanimityLightShard.cs index 5b6bb62daf..cbccfad414 100644 --- a/Projectiles/Rogue/EquanimityLightShard.cs +++ b/Projectiles/Rogue/EquanimityLightShard.cs @@ -18,7 +18,7 @@ namespace CalamityMod.Projectiles.Rogue projectile.alpha = 0; projectile.penetrate = 3; projectile.tileCollide = true; - projectile.timeLeft = 150; + projectile.timeLeft = 120; projectile.Calamity().rogue = true; } diff --git a/Projectiles/Rogue/EquanimityProj.cs b/Projectiles/Rogue/EquanimityProj.cs index 4c5ddd6b65..9f46ef762d 100644 --- a/Projectiles/Rogue/EquanimityProj.cs +++ b/Projectiles/Rogue/EquanimityProj.cs @@ -41,15 +41,15 @@ namespace CalamityMod.Projectiles.Rogue if (recall) { - if (Main.rand.Next(0, 7) == 0) + if (Main.rand.Next(0, 10) == 0) { Vector2 shardVelocity = new Vector2(Main.rand.NextFloat(-1f, 1f), Main.rand.NextFloat(-1f, 1f)); shardVelocity.Normalize(); shardVelocity *= 5f; - Projectile.NewProjectile(projectile.Center, shardVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.5f), 0f, projectile.owner); + Projectile.NewProjectile(projectile.Center, shardVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.15f), 0f, projectile.owner); if (projectile.Calamity().stealthStrike) { - Projectile.NewProjectile(projectile.Center, -shardVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.5f), 0f, projectile.owner); + Projectile.NewProjectile(projectile.Center, -shardVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.15f), 0f, projectile.owner); } } @@ -80,10 +80,10 @@ namespace CalamityMod.Projectiles.Rogue Vector2 shardVelocity = new Vector2(Main.rand.NextFloat(-1f, 1f), Main.rand.NextFloat(-1f, 1f)); shardVelocity.Normalize(); shardVelocity *= 5f; - Projectile.NewProjectile(projectile.Center, shardVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.25f), 0f, projectile.owner); + Projectile.NewProjectile(projectile.Center, shardVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.1f), 0f, projectile.owner); if (projectile.Calamity().stealthStrike) { - Projectile.NewProjectile(projectile.Center, -shardVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.25f), 0f, projectile.owner); + Projectile.NewProjectile(projectile.Center, -shardVelocity, ModContent.ProjectileType(), (int)(projectile.damage * 0.1f), 0f, projectile.owner); } } } From 8ac4ba7aecbc13150397790ae1291271934af004 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Sun, 1 Dec 2019 22:37:58 -0500 Subject: [PATCH 8/8] randomized honeycomb fragment texture --- Projectiles/Rogue/Honeycomb.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Projectiles/Rogue/Honeycomb.cs b/Projectiles/Rogue/Honeycomb.cs index 047c6ca249..bbb6ed729c 100644 --- a/Projectiles/Rogue/Honeycomb.cs +++ b/Projectiles/Rogue/Honeycomb.cs @@ -58,7 +58,7 @@ namespace CalamityMod.Projectiles.Rogue } //Spawn the projectile - Projectile.NewProjectile(projectile.position.X + shardspeedX, projectile.position.Y + shardspeedY, shardspeedX, shardspeedY, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 2f, projectile.owner); + Projectile.NewProjectile(projectile.position.X + shardspeedX, projectile.position.Y + shardspeedY, shardspeedX, shardspeedY, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 2f, projectile.owner, Main.rand.Next(3), 0f); split += 1; } projectile.penetrate--; @@ -101,7 +101,7 @@ namespace CalamityMod.Projectiles.Rogue } //Spawn the projectile - Projectile.NewProjectile(projectile.position.X + shardspeedX, projectile.position.Y + shardspeedY, shardspeedX, shardspeedY, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 2f, projectile.owner); + Projectile.NewProjectile(projectile.position.X + shardspeedX, projectile.position.Y + shardspeedY, shardspeedX, shardspeedY, ModContent.ProjectileType(), (int)(projectile.damage * 0.3), 2f, projectile.owner, Main.rand.Next(3), 0f); split += 1; } }