Astrum Aureus only enrages while both outside the Astral Infection and it's daytime.
This commit is contained in:
1 parent
2295aa47b7
commit
7a3d659488
3 files changed
+4
-8
No files matched your search
@@ -13,10 +13,6 @@ namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
// DisplayName.SetDefault("Astral Chunk");
|
||||
/* Tooltip.SetDefault("Summons Astrum Aureus when used in the Astral Infection during nighttime\n" +
|
||||
"Enrages during the day\n" +
|
||||
"Not consumable"); */
|
||||
ItemID.Sets.SortingPriorityBossSpawns[Type] = 14; // Frost Moon
|
||||
}
|
||||
|
||||
@@ -38,7 +34,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !Main.dayTime && player.Calamity().ZoneAstral && !NPC.AnyNPCs(ModContent.NPCType<AstrumAureus>()) && !BossRushEvent.BossRushActive;
|
||||
return player.Calamity().ZoneAstral && !NPC.AnyNPCs(ModContent.NPCType<AstrumAureus>()) && !BossRushEvent.BossRushActive;
|
||||
}
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
|
||||
@@ -16,8 +16,8 @@ Mods: {
|
||||
DisplayName: Astral Chunk
|
||||
Tooltip:
|
||||
'''
|
||||
Summons Astrum Aureus when used in the Astral Infection during nighttime
|
||||
Enrages during the day
|
||||
Summons Astrum Aureus when used in the Astral Infection
|
||||
Enrages during the day while outside the Astral Infection
|
||||
Not consumable
|
||||
'''
|
||||
}
|
||||
|
||||
+1
-1
@@ -2625,7 +2625,7 @@ namespace CalamityMod.NPCs
|
||||
Player player = Main.player[npc.target];
|
||||
|
||||
float enrageScale = bossRush ? 1f : 0f;
|
||||
if (Main.dayTime || bossRush)
|
||||
if ((Main.dayTime && !player.Calamity().ZoneAstral) || bossRush)
|
||||
{
|
||||
npc.Calamity().CurrentlyEnraged = !bossRush;
|
||||
enrageScale += 1f;
|
||||
|
||||
Reference in new issue
Block a user