Bestiary things and various fixes
This commit is contained in:
1 parent
e667832da1
commit
e6dddd34aa
25 files changed
+90
-31
No files matched your search
@@ -454,7 +454,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
Texture2D texture = InPhase2 ? ModContent.Request<Texture2D>("CalamityMod/NPCs/AcidRain/CragmawMire2").Value : ModContent.Request<Texture2D>("CalamityMod/NPCs/AcidRain/CragmawMire").Value;
|
||||
Main.EntitySpriteDraw(texture, screenPos, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, NPC.frame.Size() * 0.5f, NPC.scale, 0, 0);
|
||||
Main.EntitySpriteDraw(texture, NPC.Center - screenPos, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, NPC.frame.Size() * 0.5f, NPC.scale, 0, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -152,9 +152,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrabGore1").Type, 0.5f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrabGore2").Type, 0.5f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrabGore3").Type, 0.5f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,9 +213,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrabGore1").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrabGore2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrabGore3").Type, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,11 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
DisplayName.SetDefault("Skyfin");
|
||||
Main.npcFrameCount[NPC.type] = 5;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
|
||||
{
|
||||
Rotation = MathHelper.Pi
|
||||
};
|
||||
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -453,7 +453,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
//hand
|
||||
Gore.NewGore(NPC.direction == 1 ? NPC.Right : NPC.Left, NPC.velocity * 0.5f, Mod.Find<ModGore>("AtlasGore2").Type);
|
||||
//rest
|
||||
Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find<ModGore>("Atlas/AtlasGore0").Type);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find<ModGore>("AtlasGore0").Type);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find<ModGore>("AtlasGore1").Type);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find<ModGore>("AtlasGore3").Type);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity * 0.5f, Mod.Find<ModGore>("AtlasGore5").Type);
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
}
|
||||
}
|
||||
|
||||
if (NPC.velocity.X == 0f && NPC.velocity.Y == 0f)
|
||||
if ((NPC.velocity.X == 0f && NPC.velocity.Y == 0f) && !NPC.IsABestiaryIconDummy)
|
||||
{
|
||||
NPC.frame.Y = 0;
|
||||
NPC.frameCounter = 0.0;
|
||||
@@ -129,6 +129,9 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return true;
|
||||
|
||||
if (NPC.ai[0] == 0f)
|
||||
{
|
||||
Vector2 position = NPC.Bottom - new Vector2(19f, 42f);
|
||||
|
||||
@@ -124,6 +124,15 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
DisplayName.SetDefault(NameToDisplay);
|
||||
NPCID.Sets.TrailingMode[NPC.type] = 3;
|
||||
NPCID.Sets.TrailCacheLength[NPC.type] = 15;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
|
||||
{
|
||||
PortraitPositionXOverride = 50f,
|
||||
PortraitPositionYOverride = 40f,
|
||||
PortraitScale = 0.75f,
|
||||
Scale = 0.45f,
|
||||
Rotation = -MathHelper.PiOver4
|
||||
};
|
||||
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -1319,6 +1328,9 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
NPC.Opacity = 1f;
|
||||
|
||||
// Use telegraph frames before each attack
|
||||
bool phase2 = NPC.life / (float)NPC.lifeMax < 0.6f;
|
||||
NPC.frameCounter += 1D;
|
||||
@@ -1393,6 +1405,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
}
|
||||
}
|
||||
}
|
||||
NPC.frame = new Rectangle(NPC.width * frameX, NPC.height * frameY, NPC.width, NPC.height);
|
||||
}
|
||||
|
||||
public float FlameTrailWidthFunction(float completionRatio) => MathHelper.SmoothStep(21f, 8f, completionRatio) * ChargeComboFlash;
|
||||
@@ -1459,7 +1472,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
// This is created to allow easy duplication of them when drawing the charge.
|
||||
void drawInstance(Vector2 drawOffset, Color baseColor)
|
||||
{
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
|
||||
{
|
||||
for (int i = 1; i < numAfterimages; i += 2)
|
||||
{
|
||||
@@ -1481,6 +1494,9 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
// Draw ribbons near the main thruster
|
||||
for (int direction = -1; direction <= 1; direction += 2)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
break;
|
||||
|
||||
Vector2 ribbonOffset = -Vector2.UnitY.RotatedBy(NPC.rotation) * 14f;
|
||||
ribbonOffset += Vector2.UnitX.RotatedBy(NPC.rotation) * direction * 26f;
|
||||
|
||||
@@ -1511,7 +1527,8 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
Color baseInstanceColor = Color.Lerp(drawColor, Color.White, ChargeComboFlash);
|
||||
baseInstanceColor.A = (byte)(int)(255f - ChargeComboFlash * 255f);
|
||||
|
||||
spriteBatch.EnterShaderRegion();
|
||||
if (!NPC.IsABestiaryIconDummy)
|
||||
spriteBatch.EnterShaderRegion();
|
||||
|
||||
drawInstance(Vector2.Zero, baseInstanceColor);
|
||||
if (instanceCount > 1)
|
||||
@@ -1526,7 +1543,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
}
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Apollo/ApolloGlow").Value;
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
|
||||
{
|
||||
for (int i = 1; i < numAfterimages; i += 2)
|
||||
{
|
||||
@@ -1543,10 +1560,11 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
|
||||
|
||||
spriteBatch.Draw(texture, center, frame, Color.White * NPC.Opacity, NPC.rotation, origin, NPC.scale, SpriteEffects.None, 0f);
|
||||
|
||||
spriteBatch.ExitShaderRegion();
|
||||
if (!NPC.IsABestiaryIconDummy)
|
||||
spriteBatch.ExitShaderRegion();
|
||||
|
||||
// Draw a flame trail on the thrusters if needed. This happens during charges.
|
||||
if (ChargeComboFlash > 0f)
|
||||
if (ChargeComboFlash > 0f && !NPC.IsABestiaryIconDummy)
|
||||
{
|
||||
for (int direction = -1; direction <= 1; direction++)
|
||||
{
|
||||
|
||||
@@ -138,6 +138,12 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
DisplayName.SetDefault("XF-09 Ares");
|
||||
NPCID.Sets.TrailingMode[NPC.type] = 3;
|
||||
NPCID.Sets.TrailCacheLength[NPC.type] = NPC.oldPos.Length;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
|
||||
{
|
||||
PortraitScale = 0.6f,
|
||||
Scale = 0.4f
|
||||
};
|
||||
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -857,9 +863,12 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
NPC.Opacity = 1f;
|
||||
|
||||
// Use telegraph frames when using deathrays
|
||||
NPC.frameCounter += 1D;
|
||||
if (AIState == (float)Phase.Normal || NPC.Calamity().newAI[3] == 0f)
|
||||
if ((AIState == (float)Phase.Normal || NPC.Calamity().newAI[3] == 0f) && !NPC.IsABestiaryIconDummy)
|
||||
{
|
||||
if (NPC.frameCounter >= 6D)
|
||||
{
|
||||
@@ -903,6 +912,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
frameX = frameY = 4;
|
||||
}
|
||||
}
|
||||
NPC.frame = new Rectangle(NPC.width * frameX, NPC.height * frameY, NPC.width, NPC.height);
|
||||
}
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
@@ -1063,6 +1073,9 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
|
||||
|
||||
public void DrawArm(SpriteBatch spriteBatch, Vector2 handPosition, Color glowmaskColor, int direction, bool backArm)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return;
|
||||
|
||||
if (LightningDrawer is null)
|
||||
LightningDrawer = new PrimitiveTrail(WidthFunction, ColorFunction, PrimitiveTrail.RigidPointRetreivalFunction);
|
||||
if (LightningBackgroundDrawer is null)
|
||||
|
||||
@@ -136,6 +136,15 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
DisplayName.SetDefault(NameToDisplay);
|
||||
NPCID.Sets.TrailingMode[NPC.type] = 3;
|
||||
NPCID.Sets.TrailCacheLength[NPC.type] = 15;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
|
||||
{
|
||||
PortraitPositionXOverride = -50f,
|
||||
PortraitPositionYOverride = -40f,
|
||||
PortraitScale = 0.75f,
|
||||
Scale = 0.45f,
|
||||
Rotation = MathHelper.Pi - MathHelper.PiOver4
|
||||
};
|
||||
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -1126,6 +1135,9 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
NPC.Opacity = 1f;
|
||||
|
||||
// Use telegraph frames before each attack
|
||||
bool phase2 = NPC.life / (float)NPC.lifeMax < 0.6f;
|
||||
NPC.frameCounter += 1D;
|
||||
@@ -1200,6 +1212,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
}
|
||||
}
|
||||
}
|
||||
NPC.frame = new Rectangle(NPC.width * frameX, NPC.height * frameY, NPC.width, NPC.height);
|
||||
}
|
||||
|
||||
public float FlameTrailWidthFunction(float completionRatio) => MathHelper.SmoothStep(21f, 8f, completionRatio) * ChargeFlash;
|
||||
@@ -1266,7 +1279,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
// This is created to allow easy duplication of them when drawing the charge.
|
||||
void drawInstance(Vector2 drawOffset, Color baseColor)
|
||||
{
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
|
||||
{
|
||||
for (int i = 1; i < numAfterimages; i += 2)
|
||||
{
|
||||
@@ -1288,6 +1301,9 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
// Draw ribbons near the main thruster
|
||||
for (int direction = -1; direction <= 1; direction += 2)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
break;
|
||||
|
||||
Vector2 ribbonOffset = -Vector2.UnitY.RotatedBy(NPC.rotation) * 14f;
|
||||
ribbonOffset += Vector2.UnitX.RotatedBy(NPC.rotation) * direction * 26f;
|
||||
|
||||
@@ -1318,7 +1334,8 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
Color baseInstanceColor = Color.Lerp(drawColor, Color.White, ChargeFlash);
|
||||
baseInstanceColor.A = (byte)(int)(255f - ChargeFlash * 255f);
|
||||
|
||||
spriteBatch.EnterShaderRegion();
|
||||
if (!NPC.IsABestiaryIconDummy)
|
||||
spriteBatch.EnterShaderRegion();
|
||||
|
||||
drawInstance(Vector2.Zero, baseInstanceColor);
|
||||
if (instanceCount > 1)
|
||||
@@ -1333,7 +1350,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
}
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Artemis/ArtemisGlow").Value;
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
if (CalamityConfig.Instance.Afterimages && !NPC.IsABestiaryIconDummy)
|
||||
{
|
||||
for (int i = 1; i < numAfterimages; i += 2)
|
||||
{
|
||||
@@ -1350,7 +1367,8 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
|
||||
|
||||
spriteBatch.Draw(texture, center, frame, Color.White * NPC.Opacity, NPC.rotation, origin, NPC.scale, SpriteEffects.None, 0f);
|
||||
|
||||
spriteBatch.ExitShaderRegion();
|
||||
if (!NPC.IsABestiaryIconDummy)
|
||||
spriteBatch.ExitShaderRegion();
|
||||
|
||||
// Draw a flame trail on the thrusters if needed. This happens during charges.
|
||||
if (ChargeFlash > 0f)
|
||||
|
||||
@@ -16,6 +16,11 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
DisplayName.SetDefault("Angry Dog");
|
||||
Main.npcFrameCount[NPC.type] = 9;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
|
||||
{
|
||||
Velocity = 1.2f
|
||||
};
|
||||
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -479,6 +479,9 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
NPC.Opacity = 1f;
|
||||
|
||||
NPC.frameCounter += 1.0;
|
||||
if (NPC.frameCounter > 6.0)
|
||||
{
|
||||
|
||||
@@ -1106,6 +1106,9 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
NPC.Opacity = 1f;
|
||||
|
||||
// Percent life remaining
|
||||
float lifeRatio = NPC.life / (float)NPC.lifeMax;
|
||||
|
||||
|
||||
@@ -99,6 +99,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
NPC.Opacity = 1f;
|
||||
|
||||
int frame = (int)Math.Round((float)Math.Pow(Math.Sin(Main.GlobalTimeWrappedHourly * 2.6f + NPC.whoAmI * 1.3f), 6D) * Main.npcFrameCount[NPC.type]);
|
||||
if (frame >= Main.npcFrameCount[NPC.type])
|
||||
frame = Main.npcFrameCount[NPC.type] - 1;
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class AEWBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<EidolonWyrmHeadHuge>());
|
||||
|
||||
@@ -5,7 +5,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class AstralScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => player.Calamity().ZoneAstral;
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class CalamitasCloneBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<CalamitasRun3>());
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class CryogenBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player)
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class DoGBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("DevourerOfGodsP2") ?? MusicID.LunarBoss;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<DevourerofGodsHead>());
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class ExoMechBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => ExoMechsSky.CanSkyBeActive;
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class LeviathanBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<Leviathan>());
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class PBGBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<PlaguebringerGoliath>());
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class ProvBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<Providence>());
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class SCalBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<SupremeCalamitas>()) || SCalSky.OverridingIntensity > 0f;
|
||||
|
||||
@@ -7,7 +7,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class StormWeaverBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossMedium;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<StormWeaverHead>());
|
||||
|
||||
@@ -6,7 +6,6 @@ namespace CalamityMod.Systems
|
||||
{
|
||||
public class YharonBackgroundScene : ModSceneEffect
|
||||
{
|
||||
public override int Music => Main.curMusic;
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
|
||||
public override bool IsSceneEffectActive(Player player) => NPC.AnyNPCs(ModContent.NPCType<Yharon>());
|
||||
|
||||
Reference in new issue
Block a user