1 - Fixed Ares afterimages.
This commit is contained in:
1 parent
64de584add
commit
136e860fca
6 files changed
+21
-21
No files matched your search
@@ -670,9 +670,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, SpriteEffects.None, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, SpriteEffects.None, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -690,9 +690,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, SpriteEffects.None, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, SpriteEffects.None, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -450,9 +450,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -470,9 +470,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -504,9 +504,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -524,9 +524,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -428,9 +428,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -448,9 +448,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -440,9 +440,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -460,9 +460,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
afterimageColor = npc.GetAlpha(afterimageColor);
|
||||
afterimageColor *= (numAfterimages - i) / 15f;
|
||||
Vector2 afterimageCenter = npc.oldPos[i] + new Vector2(npc.width, npc.height) / 2f - Main.screenPosition;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[npc.type]) * npc.scale / 2f;
|
||||
afterimageCenter -= new Vector2(texture.Width, texture.Height) / new Vector2(maxFramesX, maxFramesY) * npc.scale / 2f;
|
||||
afterimageCenter += vector * npc.scale + new Vector2(0f, npc.gfxOffY);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.rotation, vector, npc.scale, spriteEffects, 0f);
|
||||
spriteBatch.Draw(texture, afterimageCenter, npc.frame, afterimageColor, npc.oldRot[i], vector, npc.scale, spriteEffects, 0f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.NPCs.TownNPCs
|
||||
if (Main.player[Main.myPlayer].HasItem(ModContent.ItemType<Fabsol>()))
|
||||
{
|
||||
dialogue.Add("So...you found my special bottle. Hope you enjoy it, I know I will.");
|
||||
dialogue.Add("Be sure to dismount me once in a while, I get tired. And besides, I can't rip you off-I mean give you excellent deals you won't find anywhere else if you're riding me 24/7.");
|
||||
dialogue.Add("Be sure to dismount me once in a while, I get tired. And besides, I can't rip you off-I mean offer you excellent deals you won't find anywhere else if you're riding me 24/7.");
|
||||
dialogue.Add("Before you ask, no, I do NOT have a heart on my butt while in human form. Don't question my transformation preferences!");
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user