Glowmask > Texture
This commit is contained in:
1 parent
1f74e3f002
commit
ebe24fb000
2 files changed
+3
-3
No files matched your search
+2
-2
@@ -113,7 +113,7 @@ namespace CalamityMod
|
||||
|
||||
// Wall of Flesh glowmasks
|
||||
public static Asset<Texture2D> WallOfFleshEyeGlowmask;
|
||||
public static Asset<Texture2D> WallOfFleshDemonSickleGlowmask;
|
||||
public static Asset<Texture2D> WallOfFleshDemonSickleTexture;
|
||||
|
||||
// Master Rev+ Skeletron Prime
|
||||
public static Asset<Texture2D> ChadPrime;
|
||||
@@ -307,7 +307,7 @@ namespace CalamityMod
|
||||
|
||||
// Wall of Flesh glowmasks
|
||||
WallOfFleshEyeGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/WallOfFleshEyeTelegraphGlow", AssetRequestMode.AsyncLoad);
|
||||
WallOfFleshDemonSickleGlowmask = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/ForbiddenOathbladeProjectile", AssetRequestMode.AsyncLoad);
|
||||
WallOfFleshDemonSickleTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Melee/ForbiddenOathbladeProjectile", AssetRequestMode.AsyncLoad);
|
||||
|
||||
// Master Rev+ Skeletron Prime textures
|
||||
ChadPrime = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ChadPrime", AssetRequestMode.AsyncLoad);
|
||||
|
||||
@@ -4439,7 +4439,7 @@ namespace CalamityMod.Projectiles
|
||||
if (Main.wofNPCIndex < 0 || !Main.npc[Main.wofNPCIndex].active || Main.npc[Main.wofNPCIndex].life <= 0 || projectile.tileCollide)
|
||||
return true;
|
||||
|
||||
Texture2D texture = CalamityMod.WallOfFleshDemonSickleGlowmask.Value;
|
||||
Texture2D texture = CalamityMod.WallOfFleshDemonSickleTexture.Value;
|
||||
int frameHeight = texture.Height / Main.projFrames[projectile.type];
|
||||
int frameY = frameHeight * projectile.frame;
|
||||
Rectangle rectangle = new Rectangle(0, frameY, texture.Width, frameHeight);
|
||||
|
||||
Reference in new issue
Block a user