Fixed asset load issues
This commit is contained in:
1 parent
0776db57ba
commit
95ba9faeff
2 files changed
+3
-3
No files matched your search
@@ -18,7 +18,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
public class DevilFish : ModNPC
|
||||
{
|
||||
public static readonly SoundStyle MaskBreakSound = new("CalamityMod/Sounds/Item/DevilMaskBreak");
|
||||
public static readonly SoundStyle MaskBreakSound = new("CalamityMod/Sounds/Custom/DevilMaskBreak");
|
||||
|
||||
public bool brokenMask = false;
|
||||
public int hitCounter = 0;
|
||||
|
||||
@@ -144,10 +144,10 @@ namespace CalamityMod.NPCs.SunkenSea
|
||||
Vector2 center = new Vector2(NPC.Center.X, NPC.Center.Y);
|
||||
Vector2 vector11 = new Vector2((float)(TextureAssets.Npc[NPC.type].Value.Width / 2), (float)(TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2));
|
||||
Vector2 vector = center - screenPos;
|
||||
vector -= new Vector2((float)ModContent.Request<Texture2D>("CalamityMod/NPCs/SunkenSea/GhostBellSmallGlow").Value.Width, (float)(ModContent.Request<Texture2D>("CalamityMod/NPCs/SunkenSea/GhostBellSmallGlow").Value.Height / Main.npcFrameCount[NPC.type])) * 1f / 2f;
|
||||
vector -= new Vector2((float)ModContent.Request<Texture2D>("CalamityMod/NPCs/SunkenSea/BabyGhostBellGlow").Value.Width, (float)(ModContent.Request<Texture2D>("CalamityMod/NPCs/SunkenSea/BabyGhostBellGlow").Value.Height / Main.npcFrameCount[NPC.type])) * 1f / 2f;
|
||||
vector += vector11 * 1f + new Vector2(0f, 4f + NPC.gfxOffY);
|
||||
Color color = new Color(127 - NPC.alpha, 127 - NPC.alpha, 127 - NPC.alpha, 0).MultiplyRGBA(Microsoft.Xna.Framework.Color.LightBlue);
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/SunkenSea/GhostBellSmallGlow").Value, vector,
|
||||
Main.spriteBatch.Draw(ModContent.Request<Texture2D>("CalamityMod/NPCs/SunkenSea/BabyGhostBellGlow").Value, vector,
|
||||
new Microsoft.Xna.Framework.Rectangle?(NPC.frame), color, NPC.rotation, vector11, 1f, spriteEffects, 0f);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user