Fixed Bees from Bee Hives not counting towards Rev+ Queen Bee's bee limit
This commit is contained in:
1 parent
b32f00b820
commit
dea24d78aa
3 files changed
+12
-17
No files matched your search
@@ -4185,3 +4185,6 @@ MiniAgedFloodlightItem: {
|
||||
DisplayName: Mini Aged Floodlight
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
ProbesnoutBanner.DisplayName: Probesnout Banner
|
||||
SharkoonBanner.DisplayName: Sharkoon Banner
|
||||
@@ -458,10 +458,7 @@ EarthenPike: {
|
||||
|
||||
EmpyreanKnives: {
|
||||
DisplayName: Empyrean Knives
|
||||
Tooltip:
|
||||
'''
|
||||
Throws a flurry of homing knives that bounce off of tiles and heal the user
|
||||
'''
|
||||
Tooltip: Throws a flurry of homing knives that bounce off of tiles and heal the user
|
||||
}
|
||||
|
||||
EntropicClaymore: {
|
||||
@@ -779,10 +776,7 @@ HolyCollider: {
|
||||
|
||||
IllustriousKnives: {
|
||||
DisplayName: Illustrious Knives
|
||||
Tooltip:
|
||||
'''
|
||||
Throws a barrage of fast-moving homing knives that heal the user
|
||||
'''
|
||||
Tooltip: Throws a barrage of fast-moving homing knives that heal the user
|
||||
}
|
||||
|
||||
InsidiousImpaler: {
|
||||
@@ -876,10 +870,7 @@ MonolithSword: {
|
||||
|
||||
MonstrousKnives: {
|
||||
DisplayName: Monstrous Knives
|
||||
Tooltip:
|
||||
'''
|
||||
Throws a spread of short-range knives that have a chance to heal the user
|
||||
'''
|
||||
Tooltip: Throws a spread of short-range knives that have a chance to heal the user
|
||||
}
|
||||
|
||||
Mourningstar: {
|
||||
|
||||
@@ -4629,7 +4629,7 @@ namespace CalamityMod.Projectiles
|
||||
public override bool PreKill(Projectile projectile, int timeLeft)
|
||||
{
|
||||
bool masterRevSkeletronPrimeBomb = projectile.type == ProjectileID.BombSkeletronPrime && projectile.ai[0] < 0f && (Main.masterMode || BossRushEvent.BossRushActive);
|
||||
bool revQueenBeeBeeHive = projectile.type == ProjectileID.BeeHive && (CalamityWorld.revenge || BossRushEvent.BossRushActive) && (projectile.ai[2] == 1f || CalamityWorld.death) && projectile.wet;
|
||||
bool revQueenBeeBeeHive = projectile.type == ProjectileID.BeeHive && (CalamityWorld.revenge || BossRushEvent.BossRushActive) && (projectile.ai[2] == 1f || CalamityWorld.death);
|
||||
bool revGolemInferno = projectile.type == ProjectileID.InfernoHostileBolt && projectile.ai[2] > 0f;
|
||||
|
||||
if (revQueenBeeBeeHive)
|
||||
@@ -4743,11 +4743,12 @@ namespace CalamityMod.Projectiles
|
||||
{
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int beeAmt = Main.rand.Next(2, 6);
|
||||
int availableAmountOfNPCsToSpawnUpToSlot = NPC.GetAvailableAmountOfNPCsToSpawnUpToSlot(beeAmt);
|
||||
for (int i = 0; i < availableAmountOfNPCsToSpawnUpToSlot; i++)
|
||||
int beeAmt = Main.rand.Next(2, 5 + 1);
|
||||
int totalBeesAlive = NPC.CountNPCS(NPCID.Bee) + NPC.CountNPCS(NPCID.BeeSmall);
|
||||
int finalBeeAmtToSpawn = NPC.AnyNPCs(NPCID.QueenBee) ? Math.Min(beeAmt, (Main.masterMode ? 9 : 15) - totalBeesAlive) : NPC.GetAvailableAmountOfNPCsToSpawnUpToSlot(beeAmt);
|
||||
for (int i = 0; i < finalBeeAmtToSpawn; i++)
|
||||
{
|
||||
int beeType = Main.rand.Next(NPCID.Bee, NPCID.BeeSmall + 1);
|
||||
int beeType = Main.rand.NextBool() ? NPCID.Bee : NPCID.BeeSmall;
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
beeType = Main.rand.NextBool(3) ? NPCType<PlagueChargerLarge>() : NPCType<PlagueCharger>();
|
||||
|
||||
Reference in new issue
Block a user