Birb resprite :borbrage:

This commit is contained in:
Amber Sienna committed 2020-03-22 02:19:32 +00:00
1 parent 316583b28d
commit d49564e87f
27 files changed
+50 -62

No files matched your search

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 930 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 888 B

After

Width:  |  Height:  |  Size: 3.3 KiB

+1 -1
View File
@@ -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()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.6 KiB

+1 -1
View File
@@ -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()
Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 752 B

After

Width:  |  Height:  |  Size: 820 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 498 B

After

Width:  |  Height:  |  Size: 716 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 785 B

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.2 KiB

After

Width:  |  Height:  |  Size: 809 B

+1 -1
View File
@@ -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)
{
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.6 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 881 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 44 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 888 B

+26 -36
View File
@@ -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);
}
}
}
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

+20 -22
View File
@@ -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)
Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.5 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 403 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 813 B

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 4.4 KiB

After

Width:  |  Height:  |  Size: 1.8 KiB

+1 -1
View File
@@ -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;
Binary file not shown.

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 26 KiB

After

Width:  |  Height:  |  Size: 27 KiB