Merge branch '1.4' of https://github.com/CalamityTeam/CalamityMod into 1.4
This commit is contained in:
commit
0a025ba67b
2 files changed
+29
-11
No files matched your search
+18
-4
@@ -1961,11 +1961,18 @@ namespace CalamityMod.NPCs
|
||||
if (npc.rotation > num842 - num843 && npc.rotation < num842 + num843)
|
||||
npc.rotation = num842;
|
||||
|
||||
if (!player.active || player.dead)
|
||||
bool calCloneActive = false;
|
||||
if (CalamityGlobalNPC.calamitas != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.calamitas].active)
|
||||
calCloneActive = true;
|
||||
}
|
||||
|
||||
if (!player.active || player.dead || !calCloneActive)
|
||||
{
|
||||
npc.TargetClosest(false);
|
||||
player = Main.player[npc.target];
|
||||
if (!player.active || player.dead)
|
||||
if (!player.active || player.dead || !calCloneActive)
|
||||
{
|
||||
if (npc.velocity.Y > 3f)
|
||||
npc.velocity.Y = 3f;
|
||||
@@ -2263,11 +2270,18 @@ namespace CalamityMod.NPCs
|
||||
if (npc.rotation > num842 - num843 && npc.rotation < num842 + num843)
|
||||
npc.rotation = num842;
|
||||
|
||||
if (!player.active || player.dead)
|
||||
bool calCloneActive = false;
|
||||
if (CalamityGlobalNPC.calamitas != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.calamitas].active)
|
||||
calCloneActive = true;
|
||||
}
|
||||
|
||||
if (!player.active || player.dead || !calCloneActive)
|
||||
{
|
||||
npc.TargetClosest(false);
|
||||
player = Main.player[npc.target];
|
||||
if (!player.active || player.dead)
|
||||
if (!player.active || player.dead || !calCloneActive)
|
||||
{
|
||||
if (npc.velocity.Y > 3f)
|
||||
npc.velocity.Y = 3f;
|
||||
|
||||
@@ -5098,14 +5098,18 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Increase fairy spawn rates while wearing Fairy Boots
|
||||
if (spawnInfo.Player.Calamity().fairyBoots && NPC.CountNPCS(NPCID.FairyCritterBlue) + NPC.CountNPCS(NPCID.FairyCritterGreen) + NPC.CountNPCS(NPCID.FairyCritterPink) <= 4)
|
||||
if (spawnInfo.Player.Calamity().fairyBoots)
|
||||
{
|
||||
if (!NPC.AnyNPCs(NPCID.FairyCritterBlue))
|
||||
pool[NPCID.FairyCritterBlue] = SpawnCondition.Overworld.Chance * 5f;
|
||||
if (!NPC.AnyNPCs(NPCID.FairyCritterGreen))
|
||||
pool[NPCID.FairyCritterGreen] = SpawnCondition.Overworld.Chance * 5f;
|
||||
if (!NPC.AnyNPCs(NPCID.FairyCritterPink))
|
||||
pool[NPCID.FairyCritterPink] = SpawnCondition.Overworld.Chance * 5f;
|
||||
int maxFairies = 5;
|
||||
if ((NPC.CountNPCS(NPCID.FairyCritterBlue) + NPC.CountNPCS(NPCID.FairyCritterGreen) + NPC.CountNPCS(NPCID.FairyCritterPink)) < maxFairies)
|
||||
{
|
||||
if (!NPC.AnyNPCs(NPCID.FairyCritterBlue))
|
||||
pool[NPCID.FairyCritterBlue] = SpawnCondition.Overworld.Chance * 5f;
|
||||
if (!NPC.AnyNPCs(NPCID.FairyCritterGreen))
|
||||
pool[NPCID.FairyCritterGreen] = SpawnCondition.Overworld.Chance * 5f;
|
||||
if (!NPC.AnyNPCs(NPCID.FairyCritterPink))
|
||||
pool[NPCID.FairyCritterPink] = SpawnCondition.Overworld.Chance * 5f;
|
||||
}
|
||||
}
|
||||
|
||||
if (calamityBiomeZone)
|
||||
|
||||
Reference in new issue
Block a user