diff --git a/Gores/BumbleHead.png b/Gores/BumbleHead.png index 35dd05ffdb..f57033b292 100644 Binary files a/Gores/BumbleHead.png and b/Gores/BumbleHead.png differ diff --git a/Gores/BumbleLeg.png b/Gores/BumbleLeg.png index 0893d07660..5c919ca8b2 100644 Binary files a/Gores/BumbleLeg.png and b/Gores/BumbleLeg.png differ diff --git a/Gores/BumbleWing.png b/Gores/BumbleWing.png index ad84e202e3..e3bd52dca9 100644 Binary files a/Gores/BumbleWing.png and b/Gores/BumbleWing.png differ diff --git a/Items/Accessories/DynamoStemCells.cs b/Items/Accessories/DynamoStemCells.cs index 32eadb71c3..d6bf9d527b 100644 --- a/Items/Accessories/DynamoStemCells.cs +++ b/Items/Accessories/DynamoStemCells.cs @@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories DisplayName.SetDefault("Dynamo Stem Cells"); Tooltip.SetDefault(@"15% increased movement speed Ranged weapons have a chance to fire miniature birbs"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(4, 4)); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 5)); } public override void SetDefaults() diff --git a/Items/Accessories/DynamoStemCells.png b/Items/Accessories/DynamoStemCells.png index 656d88f962..9102672219 100644 Binary files a/Items/Accessories/DynamoStemCells.png and b/Items/Accessories/DynamoStemCells.png differ diff --git a/Items/Materials/EffulgentFeather.cs b/Items/Materials/EffulgentFeather.cs index 9b119c3217..4ef9391a84 100644 --- a/Items/Materials/EffulgentFeather.cs +++ b/Items/Materials/EffulgentFeather.cs @@ -10,7 +10,7 @@ namespace CalamityMod.Items.Materials { DisplayName.SetDefault("Effulgent Feather"); Tooltip.SetDefault("It vibrates with fluffy golden energy"); - Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(3, 12)); + Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(3, 11)); } public override void SetDefaults() diff --git a/Items/Materials/EffulgentFeather.png b/Items/Materials/EffulgentFeather.png index ba8e7f88dc..f1852af7e9 100644 Binary files a/Items/Materials/EffulgentFeather.png and b/Items/Materials/EffulgentFeather.png differ diff --git a/Items/PermanentBoosters/RedLightningContainer.png b/Items/PermanentBoosters/RedLightningContainer.png index 2aba920004..c859aca470 100644 Binary files a/Items/PermanentBoosters/RedLightningContainer.png and b/Items/PermanentBoosters/RedLightningContainer.png differ diff --git a/Items/Placeables/Furniture/Trophies/BumblebirbTrophy.png b/Items/Placeables/Furniture/Trophies/BumblebirbTrophy.png index ea1665c31d..2b2adfccb0 100644 Binary files a/Items/Placeables/Furniture/Trophies/BumblebirbTrophy.png and b/Items/Placeables/Furniture/Trophies/BumblebirbTrophy.png differ diff --git a/Items/SummonItems/BirbPheromones.png b/Items/SummonItems/BirbPheromones.png index 5aad15004d..5f104bdc6b 100644 Binary files a/Items/SummonItems/BirbPheromones.png and b/Items/SummonItems/BirbPheromones.png differ diff --git a/Items/TreasureBags/BumblebirbBag.png b/Items/TreasureBags/BumblebirbBag.png index 58e88f3e17..960db62a53 100644 Binary files a/Items/TreasureBags/BumblebirbBag.png and b/Items/TreasureBags/BumblebirbBag.png differ diff --git a/Items/Weapons/Magic/RougeSlash.png b/Items/Weapons/Magic/RougeSlash.png index a21c4f7f6b..8a8812597d 100644 Binary files a/Items/Weapons/Magic/RougeSlash.png and b/Items/Weapons/Magic/RougeSlash.png differ diff --git a/Items/Weapons/Melee/GildedProboscis.cs b/Items/Weapons/Melee/GildedProboscis.cs index 39fc2f0643..1f80a37c3c 100644 --- a/Items/Weapons/Melee/GildedProboscis.cs +++ b/Items/Weapons/Melee/GildedProboscis.cs @@ -38,7 +38,7 @@ namespace CalamityMod.Items.Weapons.Melee public override bool CanUseItem(Player player) { - for (int i = 0; i < 1000; ++i) + for (int i = 0; i < Main.maxProjectiles; ++i) { if (Main.projectile[i].active && Main.projectile[i].owner == Main.myPlayer && Main.projectile[i].type == item.shoot) { diff --git a/Items/Weapons/Melee/GildedProboscis.png b/Items/Weapons/Melee/GildedProboscis.png index c8a092a8e6..67f0197271 100644 Binary files a/Items/Weapons/Melee/GildedProboscis.png and b/Items/Weapons/Melee/GildedProboscis.png differ diff --git a/Items/Weapons/Ranged/GoldenEagle.png b/Items/Weapons/Ranged/GoldenEagle.png index 34fa33e3a3..fe794a903a 100644 Binary files a/Items/Weapons/Ranged/GoldenEagle.png and b/Items/Weapons/Ranged/GoldenEagle.png differ diff --git a/NPCs/Bumblebirb/Birb.png b/NPCs/Bumblebirb/Birb.png new file mode 100644 index 0000000000..afd119a6d9 Binary files /dev/null and b/NPCs/Bumblebirb/Birb.png differ diff --git a/NPCs/Bumblebirb/Birb_Head_Boss.png b/NPCs/Bumblebirb/Birb_Head_Boss.png new file mode 100644 index 0000000000..53a1b47d21 Binary files /dev/null and b/NPCs/Bumblebirb/Birb_Head_Boss.png differ diff --git a/NPCs/Bumblebirb/Bumblefuck.cs b/NPCs/Bumblebirb/Bumblefuck.cs index dcba3bd782..e5ab1c5d06 100644 --- a/NPCs/Bumblebirb/Bumblefuck.cs +++ b/NPCs/Bumblebirb/Bumblefuck.cs @@ -8,15 +8,11 @@ using CalamityMod.Items.TreasureBags; using CalamityMod.Items.Weapons.Magic; using CalamityMod.Items.Weapons.Melee; using CalamityMod.Items.Weapons.Ranged; -using CalamityMod.Projectiles.Boss; using CalamityMod.World; using Microsoft.Xna.Framework; -using System; using Terraria; using Terraria.ID; using Terraria.ModLoader; -using Terraria.ModLoader.Config; -using CalamityMod; namespace CalamityMod.NPCs.Bumblebirb { @@ -26,17 +22,20 @@ namespace CalamityMod.NPCs.Bumblebirb public override void SetStaticDefaults() { DisplayName.SetDefault("Bumblebirb"); - Main.npcFrameCount[npc.type] = 10; + Main.npcFrameCount[npc.type] = 6; } + public override string Texture => "CalamityMod/NPCs/Bumblebirb/Birb"; + public override string BossHeadTexture => "CalamityMod/NPCs/Bumblebirb/Birb_Head_Boss"; + public override void SetDefaults() { npc.npcSlots = 32f; npc.aiStyle = -1; aiType = -1; npc.damage = 160; - npc.width = 80; - npc.height = 80; + npc.width = 130; + npc.height = 100; npc.defense = 40; npc.LifeMaxNERB(227500, 252500, 3000000); double HPBoost = CalamityMod.CalamityConfig.BossHealthPercentageBoost * 0.01; @@ -79,6 +78,7 @@ namespace CalamityMod.NPCs.Bumblebirb public override void AI() { + npc.visualOffset = new Vector2(20f, 50f); CalamityAI.BumblebirbAI(npc, mod); } @@ -90,32 +90,27 @@ namespace CalamityMod.NPCs.Bumblebirb public override void FindFrame(int frameHeight) { - npc.frameCounter += (double)(npc.velocity.Length() / 4f); - npc.frameCounter += 1.0; - if (npc.ai[0] < 4f) + bool lightningBreathAttack = false; //leaving this for fabbo to sort + if (lightningBreathAttack) { - if (npc.frameCounter >= 6.0) - { - npc.frameCounter = 0.0; - npc.frame.Y = npc.frame.Y + frameHeight; - } - if (npc.frame.Y / frameHeight > 4) - { - npc.frame.Y = 0; - } + npc.frame.Y = npc.frame.Height * 5; } else { - if (npc.frameCounter >= 6.0) + if (npc.frameCounter >= 5) //iban said the time between frames was 5 so using that as a base { - npc.frameCounter = 0.0; - npc.frame.Y = npc.frame.Y + frameHeight; - } - if (npc.frame.Y / frameHeight > 9) - { - npc.frame.Y = frameHeight * 5; + if (npc.frame.Y >= npc.frame.Height * 4) //frame 5 or 6 for transitioning from open jaw + { + npc.frame.Y = 0; + } + else + { + npc.frame.Y += npc.frame.Height; + } + npc.frameCounter = -1; //set to -1 to account for the framecounter increment shortly after } } + npc.frameCounter++; } public override void BossLoot(ref string name, ref int potionType) @@ -171,17 +166,12 @@ namespace CalamityMod.NPCs.Bumblebirb { Dust.NewDust(npc.position, npc.width, npc.height, 244, hitDirection, -1f, 0, default, 1f); } - float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/BumbleHead"), 1f); - for (int wing = 0; wing < 2; wing++) + for (int i = 0; i < 6; i++) // 1 head, 1 wing, 4 legs = 6. one wing due to them being chonky boyes now { - randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/BumbleWing"), 1f); - } - for (int leg = 0; leg < 4; leg++) - { - randomSpread = (float)(Main.rand.Next(-200, 200) / 100); - Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot("Gores/BumbleLeg"), 1f); + string gore = "Gores/Bumble"; + float randomSpread = (float)(Main.rand.Next(-200, 200) / 100); + gore += i == 0 ? "Head" : i > 1 ? "Leg" : "Wing"; + Gore.NewGore(npc.position, npc.velocity * randomSpread, mod.GetGoreSlot(gore), 1f); } } } diff --git a/NPCs/Bumblebirb/Bumblefuck.png b/NPCs/Bumblebirb/Bumblefuck.png deleted file mode 100644 index 4b1e72a257..0000000000 Binary files a/NPCs/Bumblebirb/Bumblefuck.png and /dev/null differ diff --git a/NPCs/Bumblebirb/Bumblefuck2.cs b/NPCs/Bumblebirb/Bumblefuck2.cs index d1aceee50e..94eaf22d14 100644 --- a/NPCs/Bumblebirb/Bumblefuck2.cs +++ b/NPCs/Bumblebirb/Bumblefuck2.cs @@ -12,16 +12,18 @@ namespace CalamityMod.NPCs.Bumblebirb public override void SetStaticDefaults() { DisplayName.SetDefault("Bumblebirb"); - Main.npcFrameCount[npc.type] = 10; + Main.npcFrameCount[npc.type] = 6; } + public override string Texture => "CalamityMod/NPCs/Bumblebirb/Birb"; + public override void SetDefaults() { npc.npcSlots = 1f; npc.aiStyle = -1; aiType = -1; npc.damage = 110; - npc.width = 80; + npc.width = 120; npc.height = 80; npc.scale = 0.66f; npc.defense = 20; @@ -57,6 +59,7 @@ namespace CalamityMod.NPCs.Bumblebirb public override void AI() { + npc.visualOffset = new Vector2(10, 40); Player player = Main.player[npc.target]; Vector2 vector = npc.Center; npc.damage = npc.defDamage; @@ -309,32 +312,27 @@ namespace CalamityMod.NPCs.Bumblebirb public override void FindFrame(int frameHeight) { - npc.frameCounter += (double)(npc.velocity.Length() / 4f); - npc.frameCounter += 1.0; - if (npc.ai[0] < 4f) + bool lightningBreathAttack = false; //leaving this for fabbo to sort + if (lightningBreathAttack) { - if (npc.frameCounter >= 6.0) - { - npc.frameCounter = 0.0; - npc.frame.Y = npc.frame.Y + frameHeight; - } - if (npc.frame.Y / frameHeight > 4) - { - npc.frame.Y = 0; - } - } + npc.frame.Y = npc.frame.Height * 5; + } else { - if (npc.frameCounter >= 6.0) + if (npc.frameCounter >= 5) //iban said the time between frames was 5 so using that as a base { - npc.frameCounter = 0.0; - npc.frame.Y = npc.frame.Y + frameHeight; - } - if (npc.frame.Y / frameHeight > 9) - { - npc.frame.Y = frameHeight * 5; + if (npc.frame.Y >= npc.frame.Height * 4) //frame 5 or 6 for transitioning from open jaw + { + npc.frame.Y = 0; + } + else + { + npc.frame.Y += npc.frame.Height; + } + npc.frameCounter = -1; //set to -1 to account for the framecounter increment shortly after } } + npc.frameCounter++; } public override void HitEffect(int hitDirection, double damage) diff --git a/NPCs/Bumblebirb/Bumblefuck2.png b/NPCs/Bumblebirb/Bumblefuck2.png deleted file mode 100644 index 4b1e72a257..0000000000 Binary files a/NPCs/Bumblebirb/Bumblefuck2.png and /dev/null differ diff --git a/NPCs/Bumblebirb/Bumblefuck_Head_Boss.png b/NPCs/Bumblebirb/Bumblefuck_Head_Boss.png deleted file mode 100644 index f12a5f35cf..0000000000 Binary files a/NPCs/Bumblebirb/Bumblefuck_Head_Boss.png and /dev/null differ diff --git a/Projectiles/Boss/RedLightningFeather.png b/Projectiles/Boss/RedLightningFeather.png index 5171b52bd0..c640f42cc8 100644 Binary files a/Projectiles/Boss/RedLightningFeather.png and b/Projectiles/Boss/RedLightningFeather.png differ diff --git a/Projectiles/Melee/Spears/GildedProboscisProj.png b/Projectiles/Melee/Spears/GildedProboscisProj.png index 9e150e8847..6a2ff34917 100644 Binary files a/Projectiles/Melee/Spears/GildedProboscisProj.png and b/Projectiles/Melee/Spears/GildedProboscisProj.png differ diff --git a/Projectiles/Ranged/Minibirb.cs b/Projectiles/Ranged/Minibirb.cs index e8018455a0..d5f7f05a7b 100644 --- a/Projectiles/Ranged/Minibirb.cs +++ b/Projectiles/Ranged/Minibirb.cs @@ -16,7 +16,7 @@ namespace CalamityMod.Projectiles.Ranged public override void SetDefaults() { - projectile.width = 8; + projectile.width = 24; projectile.height = 8; projectile.friendly = true; projectile.ranged = true; diff --git a/Projectiles/Ranged/Minibirb.png b/Projectiles/Ranged/Minibirb.png index 274cf8ce26..0cfd804a6c 100644 Binary files a/Projectiles/Ranged/Minibirb.png and b/Projectiles/Ranged/Minibirb.png differ diff --git a/Tiles/Furniture/BossTrophy.png b/Tiles/Furniture/BossTrophy.png index ca34f6e080..11cffcca9c 100644 Binary files a/Tiles/Furniture/BossTrophy.png and b/Tiles/Furniture/BossTrophy.png differ