1 - Fixed an exploit with the RE weapons.

2 - Reduced how many small slimes the Slime Gods spawn as they take damage.
3 - Hopefully fixed Astrum Deus in Boss Rush.
This commit is contained in:
Andrew Marheine committed 2020-08-11 13:07:59 -05:00
1 parent e31601e07a
commit f2564445ca
11 files changed
+45 -41

No files matched your search

+2 -1
View File
@@ -72,7 +72,8 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse
{
if (CalamityPlayer.areThereAnyDamnBosses)
{
for (int i = 0; i < 58; i++)
player.inventory[player.selectedItem].Calamity().timesUsed++;
for (int i = 0; i < Main.maxInventory; i++)
{
if (player.inventory[i].type == item.type)
{
@@ -74,14 +74,15 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse
{
if (CalamityPlayer.areThereAnyDamnBosses)
{
for (int i = 0; i < 58; i++)
{
if (player.inventory[i].type == item.type)
{
player.inventory[i].Calamity().timesUsed++;
}
}
}
player.inventory[player.selectedItem].Calamity().timesUsed++;
for (int i = 0; i < Main.maxInventory; i++)
{
if (player.inventory[i].type == item.type)
{
player.inventory[i].Calamity().timesUsed++;
}
}
}
return true;
}
+9 -8
View File
@@ -78,14 +78,15 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse
}
if (CalamityPlayer.areThereAnyDamnBosses)
{
for (int i = 0; i < 58; i++)
{
if (player.inventory[i].type == item.type)
{
player.inventory[i].Calamity().timesUsed++;
}
}
}
player.inventory[player.selectedItem].Calamity().timesUsed++;
for (int i = 0; i < Main.maxInventory; i++)
{
if (player.inventory[i].type == item.type)
{
player.inventory[i].Calamity().timesUsed++;
}
}
}
return false;
}
@@ -73,14 +73,15 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse
{
if (CalamityPlayer.areThereAnyDamnBosses)
{
for (int i = 0; i < 58; i++)
{
if (player.inventory[i].type == item.type)
{
player.inventory[i].Calamity().timesUsed++;
}
}
}
player.inventory[player.selectedItem].Calamity().timesUsed++;
for (int i = 0; i < Main.maxInventory; i++)
{
if (player.inventory[i].type == item.type)
{
player.inventory[i].Calamity().timesUsed++;
}
}
}
return true;
}
+9 -8
View File
@@ -73,14 +73,15 @@ namespace CalamityMod.Items.Weapons.Typeless.FiniteUse
{
if (CalamityPlayer.areThereAnyDamnBosses)
{
for (int i = 0; i < 58; i++)
{
if (player.inventory[i].type == item.type)
{
player.inventory[i].Calamity().timesUsed++;
}
}
}
player.inventory[player.selectedItem].Calamity().timesUsed++;
for (int i = 0; i < Main.maxInventory; i++)
{
if (player.inventory[i].type == item.type)
{
player.inventory[i].Calamity().timesUsed++;
}
}
}
return true;
}
+2 -2
View File
@@ -3009,8 +3009,8 @@ namespace CalamityMod.NPCs
Main.npc[lol].localAI[3] = 1f;
Main.npc[lol].realLife = npc.whoAmI;
Main.npc[lol].Calamity().newAI[0] = calamityGlobalNPC.newAI[0];
Main.npc[lol].Calamity().newAI[3] = calamityGlobalNPC.newAI[3];
Main.npc[lol].Calamity().newAI[0] = Main.npc[Previous].Calamity().newAI[0];
Main.npc[lol].Calamity().newAI[3] = Main.npc[Previous].Calamity().newAI[3];
if (Main.netMode == NetmodeID.Server)
{
var netMessage = mod.GetPacket();
+1 -2
View File
@@ -14,7 +14,6 @@ using CalamityMod.Items.Weapons.Ranged;
using CalamityMod.Items.Weapons.Rogue;
using CalamityMod.Items.Weapons.Summon;
using CalamityMod.NPCs.AquaticScourge;
using CalamityMod.NPCs.Astral;
using CalamityMod.NPCs.AstrumDeus;
using CalamityMod.NPCs.Bumblebirb;
using CalamityMod.NPCs.Calamitas;
@@ -489,7 +488,7 @@ namespace CalamityMod.NPCs
CalamityUtils.KillAllHostileProjectiles();
CalamityWorld.bossRushHostileProjKillCounter = 3;
}
else if (npc.type == ModContent.NPCType<AstrumDeusHeadSpectral>())
else if (npc.type == ModContent.NPCType<AstrumDeusHeadSpectral>() && npc.Calamity().newAI[0] != 0f)
{
CalamityWorld.bossRushStage = 30;
CalamityUtils.KillAllHostileProjectiles();
+1 -1
View File
@@ -516,7 +516,7 @@ namespace CalamityMod.NPCs.SlimeGod
}
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int num660 = (int)((double)npc.lifeMax * 0.15);
int num660 = (int)((double)npc.lifeMax * 0.2);
if ((float)(npc.life + num660) < bossLife)
{
bossLife = (float)npc.life;
+1 -1
View File
@@ -528,7 +528,7 @@ namespace CalamityMod.NPCs.SlimeGod
}
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int num660 = (int)((double)npc.lifeMax * 0.05);
int num660 = (int)((double)npc.lifeMax * 0.15);
if ((float)(npc.life + num660) < bossLife)
{
bossLife = (float)npc.life;
+1 -1
View File
@@ -504,7 +504,7 @@ namespace CalamityMod.NPCs.SlimeGod
}
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int num660 = (int)((double)npc.lifeMax * 0.05);
int num660 = (int)((double)npc.lifeMax * 0.15);
if ((float)(npc.life + num660) < bossLife)
{
bossLife = (float)npc.life;
+1 -1
View File
@@ -498,7 +498,7 @@ namespace CalamityMod.NPCs.SlimeGod
}
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int num660 = (int)((double)npc.lifeMax * 0.15);
int num660 = (int)((double)npc.lifeMax * 0.2);
if ((float)(npc.life + num660) < bossLife)
{
bossLife = (float)npc.life;