Removed SCal's loot timer
This commit is contained in:
1 parent
beb669be04
commit
b8f5cfa72e
1 file changed
-20
@@ -75,7 +75,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
private bool hasSummonedBrothers = false;
|
||||
|
||||
private int giveUpCounter = 1200;
|
||||
private int lootTimer = 0; //900 * 5 = 4500
|
||||
private int phaseChange = 0;
|
||||
private int spawnX = 0;
|
||||
private int spawnX2 = 0;
|
||||
@@ -243,7 +242,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
writer.Write(npc.chaseable);
|
||||
|
||||
writer.Write(giveUpCounter);
|
||||
writer.Write(lootTimer);
|
||||
writer.Write(phaseChange);
|
||||
writer.Write(spawnX);
|
||||
writer.Write(spawnX2);
|
||||
@@ -295,7 +293,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
npc.chaseable = reader.ReadBoolean();
|
||||
|
||||
giveUpCounter = reader.ReadInt32();
|
||||
lootTimer = reader.ReadInt32();
|
||||
phaseChange = reader.ReadInt32();
|
||||
spawnX = reader.ReadInt32();
|
||||
spawnX2 = reader.ReadInt32();
|
||||
@@ -327,8 +324,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
CalamityGlobalNPC.SCal = npc.whoAmI;
|
||||
|
||||
lootTimer++;
|
||||
|
||||
bool wormAlive = false;
|
||||
if (CalamityGlobalNPC.SCalWorm != -1)
|
||||
{
|
||||
@@ -2716,21 +2711,6 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
potionType = ModContent.ItemType<OmegaHealingPotion>();
|
||||
}
|
||||
|
||||
// If SCal is killed too quickly, cancel all drops and chastise the player
|
||||
public override bool SpecialNPCLoot()
|
||||
{
|
||||
//75 seconds for bullet hells + 25 seconds for normal phases.
|
||||
//Does not occur in Boss Rush due to weakened SCal + stronger weapons (rarely occurs with just Cal gear)
|
||||
if ((lootTimer < 6000) && !BossRushEvent.BossRushActive)
|
||||
{
|
||||
if (!BossRushEvent.BossRushActive)
|
||||
CalamityUtils.DisplayLocalizedText("Mods.CalamityMod.SCalFunnyCheatText", textColor);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void NPCLoot()
|
||||
{
|
||||
// Create a teleport line effect
|
||||
|
||||
Reference in new issue
Block a user