Plantera light in phase 1 and spores in phase 2.
This commit is contained in:
1 parent
0197ab2580
commit
ae4f20b0da
1 file changed
+20
@@ -237,6 +237,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
float shootBulbGateValue = death ? 60f : 120f;
|
||||
if (lifeRatio < 0.75f)
|
||||
shootBulbGateValue *= 0.5f;
|
||||
|
||||
if (absValueOfTimer % shootBulbGateValue == 0f)
|
||||
{
|
||||
float projectileSpeed = 12f;
|
||||
@@ -319,6 +322,9 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
// Phase 1
|
||||
if (!phase2)
|
||||
{
|
||||
// Emit light
|
||||
Lighting.AddLight((int)((npc.position.X + (npc.width / 2)) / 16f), (int)((npc.position.Y + (npc.height / 2)) / 16f), 0.8f, 0.2f, 0.4f);
|
||||
|
||||
// Adjust stats
|
||||
calamityGlobalNPC.DR = 0.15f;
|
||||
calamityGlobalNPC.unbreakableDR = false;
|
||||
@@ -367,6 +373,13 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
// Phase 2
|
||||
else
|
||||
{
|
||||
// Spore dust
|
||||
if (Main.rand.NextBool(10))
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(npc.position, npc.width, npc.height, 44, 0f, 0f, 250, default, 0.4f);
|
||||
dust.fadeIn = 0.7f;
|
||||
}
|
||||
|
||||
// Adjust stats
|
||||
calamityGlobalNPC.DR = 0.15f;
|
||||
calamityGlobalNPC.unbreakableDR = false;
|
||||
@@ -740,6 +753,13 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
{
|
||||
CalamityGlobalNPC calamityGlobalNPC = npc.Calamity();
|
||||
|
||||
// Spore dust
|
||||
if (Main.rand.NextBool(10))
|
||||
{
|
||||
Dust dust = Dust.NewDustDirect(npc.position, npc.width, npc.height, 44, 0f, 0f, 250, default, 0.2f);
|
||||
dust.fadeIn = 0.7f;
|
||||
}
|
||||
|
||||
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
|
||||
Reference in new issue
Block a user