From fd32165386feb28d2d73a05b98e211540f572a84 Mon Sep 17 00:00:00 2001 From: Shucks Date: Mon, 13 Jan 2020 13:09:32 -0600 Subject: [PATCH 01/11] Reduced throwing brick's knockback --- Items/Weapons/Rogue/ThrowingBrick.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Rogue/ThrowingBrick.cs b/Items/Weapons/Rogue/ThrowingBrick.cs index 9aa919a78f..324990a72b 100644 --- a/Items/Weapons/Rogue/ThrowingBrick.cs +++ b/Items/Weapons/Rogue/ThrowingBrick.cs @@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.useTime = 20; item.useAnimation = 20; item.useStyle = 1; - item.knockBack = 10; + item.knockBack = 5f; item.crit = 20; item.value = Item.buyPrice(0, 0, 0, 50); item.rare = 0; From fdc9131ac6cb9d9d0b6fb8c7bf26b1b4c4538e37 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 13 Jan 2020 20:26:33 -0500 Subject: [PATCH 02/11] wulfrum droid fix --- Items/Weapons/Summon/WulfrumController.cs | 2 +- Projectiles/Summon/WulfrumDroid.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Items/Weapons/Summon/WulfrumController.cs b/Items/Weapons/Summon/WulfrumController.cs index 04101457b6..fc887c6bad 100644 --- a/Items/Weapons/Summon/WulfrumController.cs +++ b/Items/Weapons/Summon/WulfrumController.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Summon position = Main.MouseWorld; speedX = 0; speedY = 0; - Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI); + Projectile.NewProjectile(position.X, position.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 1f); } return false; } diff --git a/Projectiles/Summon/WulfrumDroid.cs b/Projectiles/Summon/WulfrumDroid.cs index e794f3e4fd..aa3a78fd03 100644 --- a/Projectiles/Summon/WulfrumDroid.cs +++ b/Projectiles/Summon/WulfrumDroid.cs @@ -122,7 +122,7 @@ namespace CalamityMod.Projectiles.Summon } if (!flag) { - for (int index2 = 0; index2 < 200; ++index2) + for (int index2 = 0; index2 < Main.npc.Length; ++index2) { NPC npc = Main.npc[index2]; if (npc.CanBeChasedBy((object) this, false)) From 7b07c4384a97901f2f3dc093d78acd782bf58257 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 13 Jan 2020 20:40:01 -0500 Subject: [PATCH 03/11] made elysian wing/aegis clientside in expert+ --- NPCs/Providence/Providence.cs | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/NPCs/Providence/Providence.cs b/NPCs/Providence/Providence.cs index bbf5754a75..00e4fb80b3 100644 --- a/NPCs/Providence/Providence.cs +++ b/NPCs/Providence/Providence.cs @@ -1076,11 +1076,12 @@ namespace CalamityMod.NPCs.Providence DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedProvidence); DropHelper.DropResidentEvilAmmo(npc, CalamityWorld.downedProvidence, 5, 2, 1); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), biomeType != 2); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), biomeType == 2); - DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, !CalamityWorld.downedProvidence); + //Accessories clientside only in Expert + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, biomeType != 2 && Main.expertMode); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), true, biomeType == 2 && Main.expertMode); + // All other drops are contained in the bag, so they only drop directly on Normal if (!Main.expertMode) { @@ -1098,6 +1099,8 @@ namespace CalamityMod.NPCs.Providence // Equipment DropHelper.DropItemChance(npc, ModContent.ItemType(), 40); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), biomeType != 2); + DropHelper.DropItemCondition(npc, ModContent.ItemType(), biomeType == 2); // Vanity DropHelper.DropItemChance(npc, ModContent.ItemType(), 7); From 7f877765ebfc5f59f3cb4983ea3a3bb991d59635 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Mon, 13 Jan 2020 23:27:18 -0500 Subject: [PATCH 04/11] added seeking scorcher --- Items/Weapons/Melee/DivineHatchet.cs | 50 +++++ Items/Weapons/Melee/DivineHatchet.png | Bin 0 -> 1500 bytes Projectiles/Melee/DivineHatchetBoomerang.cs | 220 +++++++++++++++++++ Projectiles/Melee/DivineHatchetBoomerang.png | Bin 0 -> 1500 bytes 4 files changed, 270 insertions(+) create mode 100644 Items/Weapons/Melee/DivineHatchet.cs create mode 100644 Items/Weapons/Melee/DivineHatchet.png create mode 100644 Projectiles/Melee/DivineHatchetBoomerang.cs create mode 100644 Projectiles/Melee/DivineHatchetBoomerang.png diff --git a/Items/Weapons/Melee/DivineHatchet.cs b/Items/Weapons/Melee/DivineHatchet.cs new file mode 100644 index 0000000000..4a7046c6f1 --- /dev/null +++ b/Items/Weapons/Melee/DivineHatchet.cs @@ -0,0 +1,50 @@ +using CalamityMod.Items.Materials; +using CalamityMod.Projectiles.Melee; +using Terraria; +using Terraria.ID; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Weapons.Melee +{ + public class DivineHatchet : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Seeking Scorcher"); + Tooltip.SetDefault("May your enemies burn in hell for the sins they have committed\n" + + "Throws a holy boomerang that seeks out up to three enemies before returning to the player"); + } + + public override void SetDefaults() + { + item.width = 60; + item.damage = 500; + item.noMelee = true; + item.noUseGraphic = true; + item.autoReuse = true; + item.useAnimation = 15; + item.useStyle = 1; + item.useTime = 15; + item.knockBack = 8.5f; + item.UseSound = SoundID.Item1; + item.melee = true; + item.height = 62; + item.value = Item.buyPrice(1, 40, 0, 0); + item.rare = 8; + item.shoot = ModContent.ProjectileType(); + item.shootSpeed = 14f; + item.Calamity().postMoonLordRarity = 13; + } + + public override void AddRecipes() + { + ModRecipe recipe = new ModRecipe(mod); + recipe.AddIngredient(ItemID.PossessedHatchet); + recipe.AddIngredient(ModContent.ItemType(), 5); + recipe.AddIngredient(ModContent.ItemType(), 9); + recipe.AddTile(TileID.LunarCraftingStation); + recipe.SetResult(this); + recipe.AddRecipe(); + } + } +} diff --git a/Items/Weapons/Melee/DivineHatchet.png b/Items/Weapons/Melee/DivineHatchet.png new file mode 100644 index 0000000000000000000000000000000000000000..991e07cd78e6244de2628d827a3ecff8580cf3ef GIT binary patch literal 1500 zcmV<21ta>2P)^+5S84%#d${?U`f0oHT~ePbEvdbY17-YQKh(PWDF8}V z@3aAyKQh|_II!m@)xb9;&P-4y4b?*6p^)V!%Y*;=~=fXdgD zH#clO3&2O~%k>+>|HSOCc!DqC@3r-XwPTO)jcP=O1;Ermh6PZ)`z;%wYV{_-Au6Or zf1mvefPMAz)rroZRX;_Fc%FZT*1qG?Mfs|&+Vf!by}3a4~chh>pTD z%4Y)3`W#P{%a;J~!?8bX<5JA1{r=OH0Bqb*V*>;-)eQ3pr%GF2+yKC1i#q{_=$5@- zsn3XKFP!=YfMs*<2B5C?UDbhKMd8mkR{`+M8`WC>{`7PJdIkrz^QAf209ZbCfAN5t zX|5xD!`VyJI+zgv;LcJNRZstU%m!z~Uw?V0)_j;`L}yxB0k~s&2>`3s+^by|!r}ft z3t&oQj@sd{4e&zMqX3-zy#;{n^+y25%O2seY6M|3iULlQon59!ib9{?@EpbfBg@dB;?Ik!&-;N$B309ZbsNBFvA5?*ra zw1n*+czB+6ECd^lE7H%es{r7WZ4ChYSbGeBx^pUHD#^{U09vnf$0RE;pz=ZGebdXX zBb@SeSjb3}{$kfb06u(Y9S}{{lz6)(_%8s>qmY$$Gb>88&x6NL03PA%SAjp<0;oH8 zUh}e$5Dy9I(a6e7cyi4$0G6RLFp0k6O(A!vdNBZxKiin_IbBCMDRm-nqIH2^5e)Y9 z#`KzyZmr)Ov!BDiUeb&Mdq%^B`0H;zR6^*(B zYPXb?mZr_7=I-9e%uqyyoDdeWNB3UVu8YiET4qo@vLe?J9Ms>-=%&Mix-0uz(%?nrn9bMf3gd+84ldQ;fgs<7dQM;iCS+j;E z6%K!Tx<=L<@p$ibg={>cg^_)CAX7bhQ%5Lf|MBEH!dASIHb-n$t{;HVz}19gCuOPn z@8$k*%zi|p)w4xHw0~egem`NqqseuIGcZP2YE!1NGBW`v^{G$snyiDO(a6S7!j+=E zr+2LVC6wz3Tg4N6nkP*!_D4J;>t#IeN+#7mGz27%NV4TR!cpt+2+}ckLGiqMvy&Bh zge9{vy=vyRlKGh4z1ihn!X`l>Et2=GHQ)cDogXjW6}gYF>?aQ%KVgGYSrFo8?MTQ= zjw_kac#-=Eo0S4n@& previousNPCs = new List() { -1 }; + + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Scorching Seeker"); + ProjectileID.Sets.TrailCacheLength[projectile.type] = 8; + ProjectileID.Sets.TrailingMode[projectile.type] = 1; + } + + public override void SetDefaults() + { + projectile.width = 60; + projectile.height = 60; + projectile.friendly = true; + projectile.tileCollide = false; + projectile.penetrate = 3; + projectile.timeLeft = Lifetime; + projectile.melee = true; + projectile.extraUpdates = 1; + projectile.usesLocalNPCImmunity = true; + projectile.localNPCHitCooldown = 10; + } + + public override void AI() + { + //holy dust + if (Main.rand.NextBool(8)) + { + Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, projectile.velocity.X * 0.5f, projectile.velocity.Y * 0.5f); + } + + // Boomerang rotation + projectile.rotation += 0.4f * (float)projectile.direction; + + // Boomerang sound + if (projectile.soundDelay == 0) + { + projectile.soundDelay = 8; + Main.PlaySound(SoundID.Item7, projectile.position); + } + + // Returns after some number of frames in the air + if (projectile.timeLeft < Lifetime - ReboundTime) + projectile.ai[0] = 1f; + + if (projectile.ai[0] != 0f) + { + float returnSpeed = 26f; + float acceleration = 1.4f; + + Player owner = Main.player[projectile.owner]; + + // Delete the projectile if it's excessively far away. + Vector2 playerCenter = owner.Center; + float xDist = playerCenter.X - projectile.Center.X; + float yDist = playerCenter.Y - projectile.Center.Y; + float dist = (float)Math.Sqrt((double)(xDist * xDist + yDist * yDist)); + if (dist > 3000f) + projectile.Kill(); + + dist = returnSpeed / dist; + xDist *= dist; + yDist *= dist; + + // Home back in on the player. + if (projectile.velocity.X < xDist) + { + projectile.velocity.X = projectile.velocity.X + acceleration; + if (projectile.velocity.X < 0f && xDist > 0f) + projectile.velocity.X += acceleration; + } + else if (projectile.velocity.X > xDist) + { + projectile.velocity.X = projectile.velocity.X - acceleration; + if (projectile.velocity.X > 0f && xDist < 0f) + projectile.velocity.X -= acceleration; + } + if (projectile.velocity.Y < yDist) + { + projectile.velocity.Y = projectile.velocity.Y + acceleration; + if (projectile.velocity.Y < 0f && yDist > 0f) + projectile.velocity.Y += acceleration; + } + else if (projectile.velocity.Y > yDist) + { + projectile.velocity.Y = projectile.velocity.Y - acceleration; + if (projectile.velocity.Y > 0f && yDist < 0f) + projectile.velocity.Y -= acceleration; + } + + // Delete the projectile if it touches its owner. + if (Main.myPlayer == projectile.owner) + if (projectile.Hitbox.Intersects(owner.Hitbox)) + projectile.Kill(); + + //home in on nearby NPCs if not returning to player + if (projectile.penetrate != -1) + { + if (!hasHitEnemy) + { + float range = 999f; + for (int a = 0; a < Main.npc.Length; a++) + { + if (Main.npc[a].CanBeChasedBy(projectile, false)) + { + float var2 = Main.npc[a].position.X + (Main.npc[a].width / 2); + float var3 = Main.npc[a].position.Y + (Main.npc[a].height / 2); + float distance2npc = Math.Abs(projectile.position.X + (projectile.width / 2) - var2) + Math.Abs(projectile.position.Y + (projectile.height / 2) - var3); + if (distance2npc < range) + { + Vector2 newVelocity = Main.npc[a].Center - projectile.Center; + newVelocity.Normalize(); + newVelocity *= 15f; + projectile.velocity = newVelocity; + } + } + } + } + else + { + if (targetNPC >= 0) + { + Vector2 newVelocity = Main.npc[targetNPC].Center - projectile.Center; + newVelocity.Normalize(); + newVelocity *= 15f; + projectile.velocity = newVelocity; + } + } + } + } + } + + public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor) + { + CalamityGlobalProjectile.DrawCenteredAndAfterimage(projectile, lightColor, ProjectileID.Sets.TrailingMode[projectile.type], 1); + return false; + } + + public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) + { + //inflict Holy Flames for 6 seconds + target.AddBuff(ModContent.BuffType(), 360); + + if (projectile.penetrate != -1) + { + //find a nearby NPC to track + float minDist = 999f; + int index = 0; + for (int i = 0; i < Main.npc.Length; i++) + { + bool hasHitNPC = false; + for (int j = 0; j < previousNPCs.Count; j++) + { + if (previousNPCs[j] == i) + { + hasHitNPC = true; + } + } + + NPC npc = Main.npc[i]; + if (npc == target) + { + previousNPCs.Add(i); + } + if (!npc.friendly && !npc.townNPC && npc.active && !npc.dontTakeDamage && npc.chaseable && npc != target && !hasHitNPC && npc.type != NPCID.TargetDummy) + { + float dist = (projectile.Center - npc.Center).Length(); + if (dist < minDist) + { + minDist = dist; + index = i; + } + } + } + + Vector2 velocityNew; + if (minDist < 999f) + { + hasHitEnemy = true; + targetNPC = index; + velocityNew = Main.npc[index].Center - projectile.Center; + velocityNew.Normalize(); + velocityNew *= 15f; + projectile.velocity = velocityNew; + } + else + { + projectile.penetrate = -1; + projectile.ai[0] = 1f; + targetNPC = -1; + } + } + + // After its last hit, starts returning instead of vanishing. Can pierce infinitely on the way back. + if (projectile.penetrate == 1) + { + projectile.penetrate = -1; + projectile.ai[0] = 1f; + targetNPC = -1; + } + } + } +} diff --git a/Projectiles/Melee/DivineHatchetBoomerang.png b/Projectiles/Melee/DivineHatchetBoomerang.png new file mode 100644 index 0000000000000000000000000000000000000000..991e07cd78e6244de2628d827a3ecff8580cf3ef GIT binary patch literal 1500 zcmV<21ta>2P)^+5S84%#d${?U`f0oHT~ePbEvdbY17-YQKh(PWDF8}V z@3aAyKQh|_II!m@)xb9;&P-4y4b?*6p^)V!%Y*;=~=fXdgD zH#clO3&2O~%k>+>|HSOCc!DqC@3r-XwPTO)jcP=O1;Ermh6PZ)`z;%wYV{_-Au6Or zf1mvefPMA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 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Melee/StreamGouge.cs b/Items/Weapons/Melee/StreamGouge.cs index 174d3f1ba6..a2231026d5 100644 --- a/Items/Weapons/Melee/StreamGouge.cs +++ b/Items/Weapons/Melee/StreamGouge.cs @@ -13,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Melee public override void SetStaticDefaults() { DisplayName.SetDefault("Stream Gouge"); - Tooltip.SetDefault("Fires an essence flame beam\n" + + Tooltip.SetDefault("Fires an essence spear clone\n" + "Ignores immunity frames"); } From 103edfb858c12f75153b72e7751a5636a864f17c Mon Sep 17 00:00:00 2001 From: Shucks Date: Tue, 14 Jan 2020 10:53:45 -0600 Subject: [PATCH 06/11] Tarragon energies only spawn if you hit the enemy --- Items/Armor/TarragonVisage.cs | 2 +- Projectiles/CalamityGlobalProjectile.cs | 48 ++++++++++++------------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/Items/Armor/TarragonVisage.cs b/Items/Armor/TarragonVisage.cs index c893615581..2fd839489e 100644 --- a/Items/Armor/TarragonVisage.cs +++ b/Items/Armor/TarragonVisage.cs @@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor "Increased heart pickup range\n" + "Enemies have a chance to drop extra hearts on death\n" + "Ranged critical strikes will cause an explosion of leaves\n" + - "Ranged projectiles have a chance to split into life energy on death"; + "Ranged projectiles have a chance to split into life energy on death by hitting an enemy"; } public override void UpdateEquip(Player player) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 15a2665d76..91aa03bb12 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -1630,6 +1630,30 @@ namespace CalamityMod.Projectiles Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, num8, num9, ModContent.ProjectileType(), (int)((double)num * 2.0), 0f, projectile.owner, 0f, ai1); } } + + if (projectile.ranged) + { + if (Main.player[projectile.owner].Calamity().tarraRanged && Main.rand.Next(0, 100) >= 88 && (projectile.timeLeft <= 2 || projectile.penetrate <= 1)) + { + int num251 = Main.rand.Next(2, 4); + for (int num252 = 0; num252 < num251; num252++) + { + Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + while (value15.X == 0f && value15.Y == 0f) + { + value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); + } + value15.Normalize(); + value15 *= (float)Main.rand.Next(70, 101) * 0.1f; + int newDamage = (int)((double)projectile.damage * 0.33); + if (newDamage > 65) + { + newDamage = 65; + } + Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), newDamage, 0f, projectile.owner, 0f, 0f); + } + } + } } } #endregion @@ -1798,30 +1822,6 @@ namespace CalamityMod.Projectiles } } - if (projectile.ranged) - { - if (Main.player[projectile.owner].Calamity().tarraRanged && Main.rand.Next(0, 100) >= 88) - { - int num251 = Main.rand.Next(2, 4); - for (int num252 = 0; num252 < num251; num252++) - { - Vector2 value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - while (value15.X == 0f && value15.Y == 0f) - { - value15 = new Vector2((float)Main.rand.Next(-100, 101), (float)Main.rand.Next(-100, 101)); - } - value15.Normalize(); - value15 *= (float)Main.rand.Next(70, 101) * 0.1f; - int newDamage = (int)((double)projectile.damage * 0.33); - if (newDamage > 65) - { - newDamage = 65; - } - Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, value15.X, value15.Y, ModContent.ProjectileType(), newDamage, 0f, projectile.owner, 0f, 0f); - } - } - } - if (rogue) { if (Main.player[projectile.owner].Calamity().etherealExtorter && Main.rand.Next(0, 100) >= 95) From 347959293bfdeff907fd34105619ef55720f568b Mon Sep 17 00:00:00 2001 From: Shucks Date: Tue, 14 Jan 2020 11:50:14 -0600 Subject: [PATCH 07/11] Some more adjustments to tarra ranged --- Projectiles/CalamityGlobalProjectile.cs | 2 +- Projectiles/Typeless/TarraEnergy.cs | 6 ++++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Projectiles/CalamityGlobalProjectile.cs b/Projectiles/CalamityGlobalProjectile.cs index 91aa03bb12..e9732c1ac7 100644 --- a/Projectiles/CalamityGlobalProjectile.cs +++ b/Projectiles/CalamityGlobalProjectile.cs @@ -1633,7 +1633,7 @@ namespace CalamityMod.Projectiles if (projectile.ranged) { - if (Main.player[projectile.owner].Calamity().tarraRanged && Main.rand.Next(0, 100) >= 88 && (projectile.timeLeft <= 2 || projectile.penetrate <= 1)) + if (Main.player[projectile.owner].Calamity().tarraRanged && Main.rand.Next(0, 100) >= 88 && Main.player[projectile.owner].ownedProjectileCounts[ModContent.ProjectileType()] <= 20 && (projectile.timeLeft <= 2 || projectile.penetrate <= 1)) { int num251 = Main.rand.Next(2, 4); for (int num252 = 0; num252 < num251; num252++) diff --git a/Projectiles/Typeless/TarraEnergy.cs b/Projectiles/Typeless/TarraEnergy.cs index 3aa7c8b5eb..ce127d9b2c 100644 --- a/Projectiles/Typeless/TarraEnergy.cs +++ b/Projectiles/Typeless/TarraEnergy.cs @@ -43,16 +43,18 @@ namespace CalamityMod.Projectiles.Typeless public override bool PreAI() { - for (int num136 = 0; num136 < 3; num136++) + for (int num136 = 0; num136 < 2; num136++) { float x2 = projectile.position.X - projectile.velocity.X / 10f * (float)num136; float y2 = projectile.position.Y - projectile.velocity.Y / 10f * (float)num136; + Vector2 dspeed = projectile.velocity * Main.rand.NextFloat(0.7f, 0.4f); int num137 = Dust.NewDust(new Vector2(x2, y2), 1, 1, 107, 0f, 0f, 0, default, 1f); Main.dust[num137].alpha = projectile.alpha; Main.dust[num137].position.X = x2; Main.dust[num137].position.Y = y2; - Main.dust[num137].velocity *= 0f; + Main.dust[num137].velocity = dspeed; Main.dust[num137].noGravity = true; + Main.dust[num137].noLight = true; } float num138 = (float)Math.Sqrt((double)(projectile.velocity.X * projectile.velocity.X + projectile.velocity.Y * projectile.velocity.Y)); float num139 = projectile.localAI[0]; From 37c092153ebb7c1d92478b15cec92fded8782fe9 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 14 Jan 2020 15:08:18 -0500 Subject: [PATCH 08/11] nerfed hypothermia --- Items/Weapons/Rogue/Hypothermia.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Rogue/Hypothermia.cs b/Items/Weapons/Rogue/Hypothermia.cs index d13ff5538d..7fc6ff178f 100644 --- a/Items/Weapons/Rogue/Hypothermia.cs +++ b/Items/Weapons/Rogue/Hypothermia.cs @@ -33,7 +33,7 @@ namespace CalamityMod.Items.Weapons.Rogue item.value = Item.buyPrice(1, 80, 0, 0); item.rare = 10; - item.damage = 549; + item.damage = 469; item.useAnimation = 21; item.useTime = 3; item.crit = 16; From 78c92491c48f8987f4008c2285e9304fc073a899 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 14 Jan 2020 15:18:16 -0500 Subject: [PATCH 09/11] buffed ace's high --- Items/Weapons/Ranged/AcesHigh.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Items/Weapons/Ranged/AcesHigh.cs b/Items/Weapons/Ranged/AcesHigh.cs index b899938b09..dc79f6efb2 100644 --- a/Items/Weapons/Ranged/AcesHigh.cs +++ b/Items/Weapons/Ranged/AcesHigh.cs @@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged public override void SetDefaults() { - item.damage = 999; + item.damage = 1599; item.ranged = true; item.width = 48; item.height = 30; From a5d317cec3764c14e25ff2a16f48f9776f22a1f8 Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 14 Jan 2020 16:44:10 -0500 Subject: [PATCH 10/11] made sea minnow, baby ghost bell, and piggy catchable --- Items/Critters/BabyGhostBellItem.cs | 32 +++++++++++++++++ Items/Critters/BabyGhostBellItem.png | Bin 0 -> 3394 bytes Items/Critters/PiggyItem.cs | 33 ++++++++++++++++++ Items/Critters/PiggyItem.png | Bin 0 -> 3193 bytes Items/Critters/SeaMinnowItem.cs | 33 ++++++++++++++++++ Items/Critters/SeaMinnowItem.png | Bin 0 -> 3118 bytes .../TwinklerItem.cs | 2 +- .../TwinklerItem.png | Bin Items/Fishing/AstralCatches/AstralCrate.cs | 1 + NPCs/Astral/Twinkler.cs | 2 +- NPCs/NormalNPCs/Piggy.cs | 15 +++++++- NPCs/SunkenSea/GhostBellSmall.cs | 6 +++- NPCs/SunkenSea/SeaMinnow.cs | 13 +++++++ 13 files changed, 133 insertions(+), 4 deletions(-) create mode 100644 Items/Critters/BabyGhostBellItem.cs create mode 100644 Items/Critters/BabyGhostBellItem.png create mode 100644 Items/Critters/PiggyItem.cs create mode 100644 Items/Critters/PiggyItem.png create mode 100644 Items/Critters/SeaMinnowItem.cs create mode 100644 Items/Critters/SeaMinnowItem.png rename Items/{Fishing/AstralCatches => Critters}/TwinklerItem.cs (94%) rename Items/{Fishing/AstralCatches => Critters}/TwinklerItem.png (100%) diff --git a/Items/Critters/BabyGhostBellItem.cs b/Items/Critters/BabyGhostBellItem.cs new file mode 100644 index 0000000000..e1a4250d1d --- /dev/null +++ b/Items/Critters/BabyGhostBellItem.cs @@ -0,0 +1,32 @@ +using CalamityMod.NPCs.SunkenSea; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Critters +{ + public class BabyGhostBellItem : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Baby Ghost Bell"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.autoReuse = true; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.maxStack = 999; + item.consumable = true; + item.noUseGraphic = true; + item.value = Item.buyPrice(0, 0, 30, 0); + //item.CloneDefaults(2004); //Lightning Bug item + item.width = 26; + item.height = 24; + item.makeNPC = (short)ModContent.NPCType(); + item.rare = 2; + } + } +} diff --git a/Items/Critters/BabyGhostBellItem.png b/Items/Critters/BabyGhostBellItem.png new file mode 100644 index 0000000000000000000000000000000000000000..7e7e84c4f16c86932e6492d77125979dae3f65d6 GIT binary patch literal 3394 zcmV-I4ZZS-P)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#tDe?p!?5wT$+oGt z8L;Kp2HUQ-ZMJ=3XJQv;x5ci*?vuTfeY$;({XGW_huIFR9a(?@3)XSs8O^N5RyOM=TTmp(3=8^+zpz2r)C z^>JO{deZfso3oq3?Wo(Y?l$ge?uXo;%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ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0007QNklD2yumtkh!ywC9X&YLI3 z7yv|sY__54C;(o(9Dpw)pUj{8Uc6iu*8zCje<^F6B~D;~3X%! z-UlEYtq_3Z*mzcOaDjjU2-R-_U}r~-<2OAL0^r&0ySgO71}=e$3hkJgF#ucl?*$+d zp9i35tNEBcR#qwinaL?9wE+bBQdzsX)&W!>-tNp_U3r=_wZR4YpTVPhFP-_m z#32AC2L_yH5k-Fh3~`Maz@6^n{QP5l(;7td&4BG14r?WX{kolYBo1AP~> zio!3JJKa~Exr$50Gh47A03RP-&NHwm)?xr!kDtjY`=K{OIZK?H`i(!ZDbBp_m0$oX z+FX(N1N)za22@)ewf73BcThUC;c;2*AcYR!rflr~#Nu zr39d$q=aAtzYPxq@H3S%028AY@cP9E1K>qG0jSw!zcYSWzZH>)03@nv{;o~@=Rmb1 z{ZE|KYH`-0tUxbf#iH$_ilwJ%$A1D$k1YdWE-eNinNB*6;o`6XC@3}pP#j$#P{7{< Y006Fi+tWGiPyhe`07*qoM6N<$g6A$s1^@s6 literal 0 HcmV?d00001 diff --git a/Items/Critters/PiggyItem.cs b/Items/Critters/PiggyItem.cs new file mode 100644 index 0000000000..c07b0306d3 --- /dev/null +++ b/Items/Critters/PiggyItem.cs @@ -0,0 +1,33 @@ +using CalamityMod.NPCs.NormalNPCs; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Critters +{ + public class PiggyItem : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Piggy"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.autoReuse = true; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.maxStack = 999; + item.consumable = true; + item.noUseGraphic = true; + item.value = Item.buyPrice(0, 50, 0, 0); + //item.CloneDefaults(2004); //Lightning Bug item + item.width = 26; + item.height = 24; + item.makeNPC = (short)ModContent.NPCType(); + item.rare = 1; + item.Calamity().postMoonLordRarity = 21; + } + } +} diff --git a/Items/Critters/PiggyItem.png b/Items/Critters/PiggyItem.png new file mode 100644 index 0000000000000000000000000000000000000000..bb7b57d0bb0885309ac0c909b285efe5226711c0 GIT binary patch literal 3193 zcmV-<42JWGP)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-?v~|cv>vB zsJ6IeNwVZxrdjT`yl#bBIa#GxRa#xMMy;K#CDyyGyQdMSxlWT#t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qPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z0004`NklwOd(q<7D`zwl(AxKAxkT46f31H z?d>QQ@+i@ayP?okqP+5`vA9mnJ>7fV!Qzbn@}Af4e&7H5&Jp}lqwT!_G{m9+9H-Km zAnT59Edb(1y#UxVPXG}A2FMF!c52cw&$@i@-Dh}V#sQ`;kUZcA`Voj1n0`PBqYZ$b znkE45?k$HY>#Ab{;PgBd$gIhskw5^?H_re}tj__^8EX-G0`)g`*&%*;$^gs{Izzv* zxth~KUa64#rqgGR@o2Qx0j3|&SoeVK%vT#o9=x!&6bK|-S>kJAnHm*D)#Aa1ra%d! z%{5h0p^6ZHp~LMX0Jbi60qCmg$TJ{S%gJfqjaxdKb1H8sHFXliD2)hhfn2Ww6-a`p z`VLI}0a+~a`5{5f`z!PWk_)rId`+%~UN$x_^Q$S74X~)7PyjrAyaTXf?&lfMcx#_; z1Cwel54)DJlv?Il>qRz*dM literal 0 HcmV?d00001 diff --git a/Items/Critters/SeaMinnowItem.cs b/Items/Critters/SeaMinnowItem.cs new file mode 100644 index 0000000000..11565c06cb --- /dev/null +++ b/Items/Critters/SeaMinnowItem.cs @@ -0,0 +1,33 @@ +using CalamityMod.NPCs.SunkenSea; +using Terraria; +using Terraria.ModLoader; + +namespace CalamityMod.Items.Critters +{ + public class SeaMinnowItem : ModItem + { + public override void SetStaticDefaults() + { + DisplayName.SetDefault("Sea Minnow"); + } + + public override void SetDefaults() + { + item.useStyle = 1; + item.autoReuse = true; + item.useTurn = true; + item.useAnimation = 15; + item.useTime = 10; + item.maxStack = 999; + item.consumable = true; + item.noUseGraphic = true; + item.value = Item.buyPrice(0, 0, 30, 0); + //item.CloneDefaults(2004); //Lightning Bug item + item.width = 26; + item.height = 24; + item.bait = 20; + item.makeNPC = (short)ModContent.NPCType(); + item.rare = 2; + } + } +} diff --git a/Items/Critters/SeaMinnowItem.png b/Items/Critters/SeaMinnowItem.png new file mode 100644 index 0000000000000000000000000000000000000000..b016fc224599f8cce854d3dd2038fa31eb995c4f GIT binary patch literal 3118 zcmV+}4AJw6P)KLZ*U+IBfRsybQWXdwQbLP>6pAqfylh#{fb6;Z(vMMVS~$e@S=j*ftg6;Uhf59&ghTmgWD0l;*T zI709Y^p6lP1rIRMx#05C~cW=H_Aw*bJ-5DT&Z2n+x)QHX^p z00esgV8|mQcmRZ%02D^@S3L16t`O%c004NIvOKvYIYoh62rY33S640`D9%Y2D-rV&neh&#Q1i z007~1e$oCcFS8neI|hJl{-P!B1ZZ9hpmq0)X0i`JwE&>$+E?>%_LC6RbVIkUx0b+_+BaR3cnT7Zv!AJxW zizFb)h!jyGOOZ85F;a?DAXP{m@;!0_IfqH8(HlgRxt7s3}k3K`kFu>>-2Q$QMFfPW!La{h336o>X zu_CMttHv6zR;&ZNiS=X8v3CR#fknUxHUxJ0uoBa_M6WNWeqIg~6QE69c9o#eyhGvpiOA@W-aonk<7r1(?fC{oI5N*U!4 zfg=2N-7=cNnjjOr{yriy6mMFgG#l znCF=fnQv8CDz++o6_Lscl}eQ+l^ZHARH>?_s@|##Rr6KLRFA1%Q+=*RRWnoLsR`7U zt5vFIcfW3@?wFpwUVxrVZ>QdQz32KIeJ}k~{cZZE^+ya? z2D1z#2HOnI7(B%_ac?{wFUQ;QQA1tBKtrWrm0_3Rgps+?Jfqb{jYbcQX~taRB;#$y zZN{S}1|}gUOHJxc?wV3fxuz+mJ4`!F$IZ;mqRrNsHJd##*D~ju=bP7?-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&bn)_Q~Te?roKGD|d-g^8;+aC{{G(1^(O7m37Y1-+6)01cN&y1aw zoqc{T`P^XJqPBbIW6s}d4{z_f5Om?vMgNQEJG?v2T=KYd^0M3I6IZxbny)%vZR&LD zJpPl@Psh8QyPB@KTx+@RdcC!KX7}kEo;S|j^u2lU7XQ}Oo;f|;z4Ll+_r>@1-xl3| zawq-H%e&ckC+@AhPrP6BKT#_XdT7&;F71j}Joy zkC~6lh7E@6o;W@^IpRNZ{ptLtL(gQ-CY~4mqW;US7Zxvm_|@yz&e53Bp_lTPlfP|z zrTyx_>lv@x#=^!PzR7qqF<$gm`|ZJZ+;<)Cqu&ot2z=0000WV@Og>004R=004l4008;_004mL004C`008P>0026e000+nl3&F} z00045Nkl`mYc7Fk%yD9Ci+ZIV5gLEsD69jSULFN5LJhLxzrn zMA=mTGcYhPa7lBah`;$Kiq!x~Ic*ev^r1cm1_lO(Ycq~BFfcGMZ0l$s${~Z_LGp_F z{}~t<7`zibQ4~D5|AK*mfq~&JpBV!K0|SGeh8|XfF5S4qz`(%3@b}zJ1_lNO24*95 z1_lNOh9?`=VRaC$OfdKygzk_thc7TNFfcH9?%IkH^j}ZSff!_#g4H1~hZ1ra43s?B zi8av=J_o@Pv1zn5YIcTNETZ$5fq{X6;cQbo0|NsC!$&PY6m^6g0^_3t!>CZKiGJuf z=*^QCDExOnAQrf`1wrJmFryfVp8a9q`J<~?#nB7WMKR3`gVRCi1tKo+O;R2uF~So2 z`DLr|T8yheBv=j&ItP(jnc~W}#8wehtL+D!g9ruruyYV#0B(Q>jKFH6W&i*H07*qo IM6N<$g2OzyVgLXD literal 0 HcmV?d00001 diff --git a/Items/Fishing/AstralCatches/TwinklerItem.cs b/Items/Critters/TwinklerItem.cs similarity index 94% rename from Items/Fishing/AstralCatches/TwinklerItem.cs rename to Items/Critters/TwinklerItem.cs index f7eeb72a99..db7cc03a0b 100644 --- a/Items/Fishing/AstralCatches/TwinklerItem.cs +++ b/Items/Critters/TwinklerItem.cs @@ -2,7 +2,7 @@ using Terraria; using Terraria.ModLoader; -namespace CalamityMod.Items.Fishing.AstralCatches +namespace CalamityMod.Items.Critters { public class TwinklerItem : ModItem { diff --git a/Items/Fishing/AstralCatches/TwinklerItem.png b/Items/Critters/TwinklerItem.png similarity index 100% rename from Items/Fishing/AstralCatches/TwinklerItem.png rename to Items/Critters/TwinklerItem.png diff --git a/Items/Fishing/AstralCatches/AstralCrate.cs b/Items/Fishing/AstralCatches/AstralCrate.cs index 5186279a4e..352c2a6725 100644 --- a/Items/Fishing/AstralCatches/AstralCrate.cs +++ b/Items/Fishing/AstralCatches/AstralCrate.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.Items.Critters; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Potions; diff --git a/NPCs/Astral/Twinkler.cs b/NPCs/Astral/Twinkler.cs index d6c52c78eb..464ddc8cfa 100644 --- a/NPCs/Astral/Twinkler.cs +++ b/NPCs/Astral/Twinkler.cs @@ -1,5 +1,5 @@ using CalamityMod.Dusts; -using CalamityMod.Items.Fishing.AstralCatches; +using CalamityMod.Items.Critters; using Terraria; using Terraria.ID; using Terraria.ModLoader; diff --git a/NPCs/NormalNPCs/Piggy.cs b/NPCs/NormalNPCs/Piggy.cs index 13bafc2a53..17220b7cde 100644 --- a/NPCs/NormalNPCs/Piggy.cs +++ b/NPCs/NormalNPCs/Piggy.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Critters; using System; using Terraria; using Terraria.ID; @@ -11,6 +12,7 @@ namespace CalamityMod.NPCs.NormalNPCs { DisplayName.SetDefault("Piggy"); Main.npcFrameCount[npc.type] = 5; + Main.npcCatchable[npc.type] = true; } public override void SetDefaults() @@ -29,6 +31,7 @@ namespace CalamityMod.NPCs.NormalNPCs npc.DeathSound = SoundID.NPCDeath1; banner = npc.type; bannerItem = ModContent.ItemType(); + npc.catchItem = (short)ModContent.ItemType(); } public override float SpawnChance(NPCSpawnInfo spawnInfo) @@ -79,7 +82,7 @@ namespace CalamityMod.NPCs.NormalNPCs public override void NPCLoot() { - Item.NewItem((int)npc.position.X, (int)npc.position.Y, npc.width, npc.height, ItemID.Bacon); + DropHelper.DropItem(npc, ItemID.Bacon, 1, 1); } public override void HitEffect(int hitDirection, double damage) @@ -96,5 +99,15 @@ namespace CalamityMod.NPCs.NormalNPCs } } } + + public override void OnCatchNPC(Player player, Item item) + { + try + { + } catch + { + return; + } + } } } diff --git a/NPCs/SunkenSea/GhostBellSmall.cs b/NPCs/SunkenSea/GhostBellSmall.cs index 75b989c9bd..bdd6b1b5c0 100644 --- a/NPCs/SunkenSea/GhostBellSmall.cs +++ b/NPCs/SunkenSea/GhostBellSmall.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Critters; using Microsoft.Xna.Framework; using Microsoft.Xna.Framework.Graphics; using System.IO; @@ -16,6 +17,7 @@ namespace CalamityMod.NPCs.SunkenSea { DisplayName.SetDefault("Baby Ghost Bell"); Main.npcFrameCount[npc.type] = 4; + Main.npcCatchable[npc.type] = true; } public override void SetDefaults() @@ -36,6 +38,7 @@ namespace CalamityMod.NPCs.SunkenSea npc.DeathSound = SoundID.NPCDeath28; banner = npc.type; bannerItem = ModContent.ItemType(); + npc.catchItem = (short)ModContent.ItemType(); } public override void SendExtraAI(BinaryWriter writer) @@ -54,7 +57,8 @@ namespace CalamityMod.NPCs.SunkenSea { if (npc.localAI[0] == 0f) { - npc.catchItem = (Main.rand.NextBool(20)) ? (short)ModContent.ItemType() : ItemID.None; + if (Main.rand.NextBool(20)) + npc.catchItem = (short)ModContent.ItemType(); npc.localAI[0] = 1f; npc.velocity.Y = -3f; npc.netUpdate = true; diff --git a/NPCs/SunkenSea/SeaMinnow.cs b/NPCs/SunkenSea/SeaMinnow.cs index 8d75c70f0d..1c9b39c44f 100644 --- a/NPCs/SunkenSea/SeaMinnow.cs +++ b/NPCs/SunkenSea/SeaMinnow.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Placeables.Banners; +using CalamityMod.Items.Critters; using System; using Terraria; using Terraria.ID; @@ -11,6 +12,7 @@ namespace CalamityMod.NPCs.SunkenSea { DisplayName.SetDefault("Sea Minnow"); Main.npcFrameCount[npc.type] = 4; + Main.npcCatchable[npc.type] = true; } public override void SetDefaults() @@ -29,6 +31,7 @@ namespace CalamityMod.NPCs.SunkenSea banner = npc.type; bannerItem = ModContent.ItemType(); npc.chaseable = false; + npc.catchItem = (short)ModContent.ItemType(); } public override void AI() @@ -212,5 +215,15 @@ namespace CalamityMod.NPCs.SunkenSea Dust.NewDust(npc.position, npc.width, npc.height, 68, hitDirection, -1f, 0, default, 1f); } } + + public override void OnCatchNPC(Player player, Item item) + { + try + { + } catch + { + return; + } + } } } From 1d948a84d5dbd71b2e1b232ef197c12851c7a4fb Mon Sep 17 00:00:00 2001 From: termigator1359 <45545085+termigator1359@users.noreply.github.com> Date: Tue, 14 Jan 2020 16:44:31 -0500 Subject: [PATCH 11/11] added sea minnows to sunken crate --- Items/Fishing/SunkenSeaCatches/SunkenCrate.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs b/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs index 1fa9781e91..027f00b0db 100644 --- a/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs +++ b/Items/Fishing/SunkenSeaCatches/SunkenCrate.cs @@ -1,4 +1,5 @@ using CalamityMod.Items.Materials; +using CalamityMod.Items.Critters; using CalamityMod.Items.Placeables; using CalamityMod.Items.Placeables.Ores; using CalamityMod.Items.Potions; @@ -69,6 +70,7 @@ namespace CalamityMod.Items.Fishing.SunkenSeaCatches //Bait DropHelper.DropItemChance(player, ItemID.MasterBait, 10, 1, 2); DropHelper.DropItemChance(player, ItemID.JourneymanBait, 5, 1, 3); + DropHelper.DropItemChance(player, ModContent.ItemType(), 5, 1, 3); DropHelper.DropItemChance(player, ItemID.ApprenticeBait, 3, 2, 3); //Potions