Replaced DestroyerGlowmasks to each segments name variable
This commit is contained in:
1 parent
8a7bbdc80e
commit
b44522d10a
2 files changed
+9
-7
No files matched your search
@@ -15,7 +15,9 @@ namespace CalamityMod.ExtraTextures
|
||||
internal sealed class ExtraTextureRefs : ModSystem
|
||||
{
|
||||
// Destroyer glowmasks
|
||||
public static Asset<Texture2D>[] DestroyerGlowmasks = new Asset<Texture2D>[3];
|
||||
public static Asset<Texture2D> DestroyerHeadGlowmask;
|
||||
public static Asset<Texture2D> DestroyerBodyGlowmask;
|
||||
public static Asset<Texture2D> DestroyerTailGlowmask;
|
||||
public static Asset<Texture2D> ProbeGlowmask;
|
||||
|
||||
// Master Rev+ Skeletron Prime
|
||||
@@ -32,9 +34,9 @@ namespace CalamityMod.ExtraTextures
|
||||
|
||||
public override void OnModLoad()
|
||||
{
|
||||
DestroyerGlowmasks[0] = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow", AssetRequestMode.AsyncLoad);
|
||||
DestroyerGlowmasks[1] = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow", AssetRequestMode.AsyncLoad);
|
||||
DestroyerGlowmasks[2] = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow", AssetRequestMode.AsyncLoad);
|
||||
DestroyerHeadGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerHeadGlow", AssetRequestMode.AsyncLoad);
|
||||
DestroyerBodyGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerBodyGlow", AssetRequestMode.AsyncLoad);
|
||||
DestroyerTailGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/DestroyerTailGlow", AssetRequestMode.AsyncLoad);
|
||||
|
||||
ProbeGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaBossGlowmasks/ProbeGlow", AssetRequestMode.AsyncLoad);
|
||||
|
||||
|
||||
@@ -7658,7 +7658,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
Texture2D glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? ExtraTextureRefs.DestroyerGlowmasks[0].Value : TextureAssets.Dest[0].Value;
|
||||
Texture2D glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? ExtraTextureRefs.DestroyerHeadGlowmask.Value : TextureAssets.Dest[0].Value;
|
||||
switch (npc.type)
|
||||
{
|
||||
default:
|
||||
@@ -7666,11 +7666,11 @@ namespace CalamityMod.NPCs
|
||||
break;
|
||||
|
||||
case NPCID.TheDestroyerBody:
|
||||
glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? ExtraTextureRefs.DestroyerGlowmasks[1].Value : TextureAssets.Dest[1].Value;
|
||||
glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? ExtraTextureRefs.DestroyerBodyGlowmask.Value : TextureAssets.Dest[1].Value;
|
||||
break;
|
||||
|
||||
case NPCID.TheDestroyerTail:
|
||||
glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? ExtraTextureRefs.DestroyerGlowmasks[2].Value : TextureAssets.Dest[2].Value;
|
||||
glowTexture = CalamityClientConfig.Instance.NewVanillaTextures ? ExtraTextureRefs.DestroyerTailGlowmask.Value : TextureAssets.Dest[2].Value;
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user