1 - Fixed Levi/Ana not spawning in multiplayer I hope.
This commit is contained in:
1 parent
90b8168ea3
commit
fbf2edc27c
3 files changed
+5
-13
No files matched your search
@@ -727,11 +727,10 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
Texture2D texture = Main.npcTexture[npc.type];
|
||||
int verticalFrameCount = 3;
|
||||
int horizontalFrameCount = 2;
|
||||
int height = texture.Height / verticalFrameCount;
|
||||
int width = texture.Width / horizontalFrameCount;
|
||||
int verticalFrameCount = 3;
|
||||
int width = 2022 / horizontalFrameCount;
|
||||
int height = 1458 / verticalFrameCount;
|
||||
int timeBetweenFrames = 8;
|
||||
|
||||
if (!initialised)
|
||||
|
||||
@@ -735,23 +735,17 @@ namespace CalamityMod.NPCs.Leviathan
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
Texture2D texture = Main.npcTexture[npc.type];
|
||||
if (npc.ai[0] > 2f || forceChargeFrames)
|
||||
{
|
||||
frameUsed = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
frameUsed = 0;
|
||||
}
|
||||
int frameY = texture.Height / Main.npcFrameCount[npc.type];
|
||||
int timeBetweenFrames = 8;
|
||||
|
||||
int timeBetweenFrames = 8;
|
||||
npc.frameCounter++;
|
||||
if (npc.frameCounter > timeBetweenFrames * Main.npcFrameCount[npc.type])
|
||||
npc.frameCounter = 0;
|
||||
|
||||
npc.frame.Y = frameY * (int)(npc.frameCounter / timeBetweenFrames);
|
||||
npc.frame.Y = frameHeight * (int)(npc.frameCounter / timeBetweenFrames);
|
||||
if (npc.frame.Y >= frameHeight * Main.npcFrameCount[npc.type])
|
||||
npc.frame.Y = 0;
|
||||
|
||||
|
||||
@@ -1111,7 +1111,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
|
||||
int width = !charging ? (532 / 2) : (644 / 2);
|
||||
int height = !charging ? (768 / 3) : (636 / 3);
|
||||
npc.frameCounter += 1.0;
|
||||
|
||||
Reference in new issue
Block a user