Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
14d4b448ea
3 files changed
+3
-30
No files matched your search
@@ -22,15 +22,6 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
if (CalIndex == -1 || BossRushEvent.BossRushActive)
|
||||
isActive = false;
|
||||
}
|
||||
|
||||
if (isActive && intensity < 1f)
|
||||
{
|
||||
intensity += 0.01f;
|
||||
}
|
||||
else if (!isActive && intensity > 0f)
|
||||
{
|
||||
intensity -= 0.01f;
|
||||
}
|
||||
}
|
||||
|
||||
private float GetIntensity()
|
||||
@@ -42,7 +33,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
{
|
||||
x = Vector2.Distance(Main.player[Main.myPlayer].Center, Main.npc[this.CalIndex].Center);
|
||||
}
|
||||
return (1f - Utils.SmoothStep(3000f, 6000f, x)) * intensity;
|
||||
return (1f - Utils.SmoothStep(3000f, 6000f, x));
|
||||
}
|
||||
return 0f;
|
||||
}
|
||||
|
||||
@@ -22,15 +22,6 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
if (PbGIndex == -1 || BossRushEvent.BossRushActive)
|
||||
isActive = false;
|
||||
}
|
||||
|
||||
if (isActive && intensity < 1f)
|
||||
{
|
||||
intensity += 0.01f;
|
||||
}
|
||||
else if (!isActive && intensity > 0f)
|
||||
{
|
||||
intensity -= 0.01f;
|
||||
}
|
||||
}
|
||||
|
||||
private float GetIntensity()
|
||||
@@ -42,7 +33,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
|
||||
{
|
||||
x = Vector2.Distance(Main.player[Main.myPlayer].Center, Main.npc[this.PbGIndex].Center);
|
||||
}
|
||||
return (1f - Utils.SmoothStep(3000f, 6000f, x)) * intensity;
|
||||
return (1f - Utils.SmoothStep(3000f, 6000f, x));
|
||||
}
|
||||
return 0f;
|
||||
}
|
||||
|
||||
+1
-10
@@ -110,15 +110,6 @@ namespace CalamityMod.Skies
|
||||
isActive = false;
|
||||
}
|
||||
|
||||
if (isActive && intensity < 1f)
|
||||
{
|
||||
intensity += 0.01f;
|
||||
}
|
||||
else if (!isActive && intensity > 0f)
|
||||
{
|
||||
intensity -= 0.01f;
|
||||
}
|
||||
|
||||
if (!Main.npc.IndexInRange(CalamityGlobalNPC.SCal) || Main.npc[CalamityGlobalNPC.SCal].type != ModContent.NPCType<SupremeCalamitas>())
|
||||
isActive = false;
|
||||
|
||||
@@ -140,7 +131,7 @@ namespace CalamityMod.Skies
|
||||
}
|
||||
|
||||
// Randomly add cinders.
|
||||
if (intensity >= 1f && Main.rand.NextBool(CinderReleaseChance))
|
||||
if (Main.rand.NextBool(CinderReleaseChance))
|
||||
{
|
||||
int lifetime = Main.rand.Next(285, 445);
|
||||
float depth = Main.rand.NextFloat(1.8f, 5f);
|
||||
|
||||
Reference in new issue
Block a user