sounds and ounds

fully integrated the gfb bool
gfb polter gets a bit spookier (wip)
resprited armor crunch, cal eye banner
added sounds:
- astrum deus shoot sounds
- final dawn use sound
- supernova explosion sound
- plasma rifle use sounds
- aew charge and death sounds
This commit is contained in:
Altixal committed 2023-07-12 23:54:33 +07:00
1 parent 06b762eb94
commit 8cc0d88cf6
190 files changed
+461 -420

No files matched your search

+2 -2
View File
@@ -14,8 +14,8 @@ namespace CalamityMod.BiomeManagers
{
public class SulphurousSeaBiome : ModBiome
{
public override ModWaterStyle WaterStyle => CalamityWorld.getFixedBoi ? ModContent.Find<ModWaterStyle>("CalamityMod/PissWater") : ModContent.Find<ModWaterStyle>("CalamityMod/SulphuricWater");
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => CalamityWorld.getFixedBoi ?ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/PissSeaSurfaceBGStyle") : ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/SulphurSeaSurfaceBGStyle");
public override ModWaterStyle WaterStyle => Main.zenithWorld ? ModContent.Find<ModWaterStyle>("CalamityMod/PissWater") : ModContent.Find<ModWaterStyle>("CalamityMod/SulphuricWater");
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => Main.zenithWorld ?ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/PissSeaSurfaceBGStyle") : ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/SulphurSeaSurfaceBGStyle");
public override int BiomeTorchItemType => ModContent.ItemType<SulphurousTorch>();
public override SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
public override string BestiaryIcon => "CalamityMod/BiomeManagers/SulphurousSeaIcon";
Binary file not shown.

Before

Width:  |  Height:  |  Size: 448 B

After

Width:  |  Height:  |  Size: 455 B

+3 -3
View File
@@ -5028,7 +5028,7 @@ namespace CalamityMod.CalPlayer
if (proj.type == ProjectileID.TorchGod)
{
int fireDebuffTypes = CalamityWorld.death ? 9 : CalamityWorld.revenge ? 7 : Main.expertMode ? 5 : 3;
int choice = CalamityWorld.getFixedBoi ? 9 : Main.rand.Next(fireDebuffTypes);
int choice = Main.zenithWorld ? 9 : Main.rand.Next(fireDebuffTypes);
switch (choice)
{
case 0:
@@ -5145,7 +5145,7 @@ namespace CalamityMod.CalPlayer
{
Player.AddBuff(ModContent.BuffType<BurningBlood>(), 180);
}
else if (proj.type == ProjectileID.RuneBlast && CalamityWorld.getFixedBoi)
else if (proj.type == ProjectileID.RuneBlast && Main.zenithWorld)
{
Player.AddBuff(ModContent.BuffType<MiracleBlight>(), 600);
}
@@ -6516,7 +6516,7 @@ namespace CalamityMod.CalPlayer
#region Nurse Modifications
public override bool ModifyNurseHeal(NPC nurse, ref int health, ref bool removeDebuffs, ref string chatText)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
// https://github.com/tModLoader/tModLoader/wiki/IEntitySource#detailed-list
// The meteor is considered to be spawned from the Nurse herself
+1 -1
View File
@@ -170,7 +170,7 @@ namespace CalamityMod.CalPlayer
}
float ASPoisonLevel = 0f;
if (CalamityGlobalNPC.aquaticScourge >= 0 && CalamityWorld.getFixedBoi)
if (CalamityGlobalNPC.aquaticScourge >= 0 && Main.zenithWorld)
{
NPC AS = Main.npc[CalamityGlobalNPC.aquaticScourge];
//if the player is 50 blocks or more away from the head
+1 -1
View File
@@ -1391,7 +1391,7 @@ namespace CalamityMod.CalPlayer
if (necroReviveCounter >= NecroArmorSetChange.PostMortemDuration * 60)
Player.KillMe(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.NecroRevive").Format(Player.name)), 1000, -1);
else if (necroReviveCounter % 60 == 59)
SoundEngine.PlaySound(SoundID.Item17, Player.Center);
SoundEngine.PlaySound(NecroArmorSetChange.TimerSound, Player.Center);
}
// Silva invincibility effects
Binary file not shown.

Before

Width:  |  Height:  |  Size: 315 B

After

Width:  |  Height:  |  Size: 351 B

+3 -3
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.SummonItems
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/CryoKey").Value;
Color overlay = CalamityWorld.getFixedBoi ? Color.Red : Color.White;
Color overlay = Main.zenithWorld ? Color.Red : Color.White;
spriteBatch.Draw(texture, position, null, overlay, 0f, origin, scale, 0, 0);
return false;
}
@@ -63,7 +63,7 @@ namespace CalamityMod.Items.SummonItems
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/CryoKey").Value;
Color overlay = CalamityWorld.getFixedBoi ? Color.Red : lightColor;
Color overlay = Main.zenithWorld ? Color.Red : lightColor;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, overlay, 0f, Vector2.Zero, 1f, 0, 0);
return false;
}
@@ -74,7 +74,7 @@ namespace CalamityMod.Items.SummonItems
TooltipLine name = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "ItemName");
TooltipLine line0 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
name.Text = "Pyro Key";
line0.Text = "Summons Cryogen when used in the tundra...?";
+3 -3
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.SummonItems
public int spawnYAdd = 0;
public override void SetStaticDefaults()
{
ItemID.Sets.SortingPriorityBossSpawns[Type] = 10; // Pirate Map
ItemID.Sets.SortingPriorityBossSpawns[Type] = 10; // Pirate Map
}
public override void SetDefaults()
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.SummonItems
else
NetMessage.SendData(MessageID.SpawnBossUseLicenseStartEvent, -1, -1, null, player.whoAmI, ModContent.NPCType<CalamitasClone>());
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
safeBox.X = spawnX = spawnXReset = (int)(player.Center.X - 1250f);
spawnX2 = spawnXReset2 = (int)(player.Center.X + 1250f);
@@ -105,7 +105,7 @@ namespace CalamityMod.Items.SummonItems
Player player = Main.LocalPlayer;
TooltipLine line3 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2");
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
line3.Text = "Creates a square arena of blocks, with you at its center\nEnrages during the day";
}
+2 -2
View File
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
public override bool CanUseItem(Player player)
{
return !NPC.AnyNPCs(ModContent.NPCType<ProfanedGuardianCommander>()) && (Main.dayTime || CalamityWorld.getFixedBoi) && (player.ZoneHallow || player.ZoneUnderworldHeight) && !BossRushEvent.BossRushActive;
return !NPC.AnyNPCs(ModContent.NPCType<ProfanedGuardianCommander>()) && (Main.dayTime || Main.zenithWorld) && (player.ZoneHallow || player.ZoneUnderworldHeight) && !BossRushEvent.BossRushActive;
}
public override bool? UseItem(Player player)
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.SummonItems
Player player = Main.LocalPlayer;
TooltipLine line1 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1");
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
line1.Text = "Summons the Profaned Guardians when used in the Hallow or Underworld";
}
+2 -2
View File
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.SummonItems
public override bool CanUseItem(Player player)
{
return player.ZoneDesert && !(CalamityWorld.getFixedBoi && !player.Calamity().ZoneAstral) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark>());
return player.ZoneDesert && !(Main.zenithWorld && !player.Calamity().ZoneAstral) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark>());
}
public override bool? UseItem(Player player)
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.SummonItems
Player player = Main.LocalPlayer;
TooltipLine line0 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
line0.Text = "Summons the Great Sand Shark when used in the astral desert";
}
+5 -5
View File
@@ -17,8 +17,8 @@ namespace CalamityMod.Items.SummonItems
public override void SetDefaults()
{
Item.rare = ItemRarityID.Blue;
Item.width = CalamityWorld.getFixedBoi ? 54 : 28;
Item.height = CalamityWorld.getFixedBoi ? 78 : 28;
Item.width = Main.zenithWorld ? 54 : 28;
Item.height = Main.zenithWorld ? 78 : 28;
Item.useAnimation = 45;
Item.useTime = 45;
Item.channel = true;
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.SummonItems
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/Terminus_GFB").Value;
Color overlay = Color.White;
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.SummonItems
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/Terminus_GFB").Value;
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, lightColor, 0f, Vector2.Zero, 1f, 0, 0);
@@ -58,7 +58,7 @@ namespace CalamityMod.Items.SummonItems
Player player = Main.LocalPlayer;
TooltipLine name = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "ItemName");
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
name.Text = "Ogscule";
}
@@ -1,4 +1,5 @@
using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
@@ -17,6 +18,7 @@ namespace CalamityMod.Items.VanillaArmorChanges
public override string ArmorSetName => "Necro";
public const int PostMortemDuration = 7;
public static readonly SoundStyle TimerSound = new("CalamityMod/Sounds/Custom/TickingTimer");
public override void UpdateSetBonusText(ref string setBonusText)
{
+7 -3
View File
@@ -4,6 +4,7 @@ using CalamityMod.Rarities;
using CalamityMod.Sounds;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -13,9 +14,12 @@ namespace CalamityMod.Items.Weapons.Magic
public class PlasmaRifle : ModItem, ILocalizedModType
{
public new string LocalizationCategory => "Items.Weapons.Magic";
public static readonly SoundStyle HeavyShotSound = new("CalamityMod/Sounds/Item/PlasmaRifleMain");
public static readonly SoundStyle FastShotSound = new("CalamityMod/Sounds/Item/PlasmaRifleAlt");
public override void SetStaticDefaults()
{
ItemID.Sets.ItemsThatAllowRepeatedRightClick[Item.type] = true;
}
@@ -46,11 +50,11 @@ namespace CalamityMod.Items.Weapons.Magic
{
if (player.altFunctionUse == 2)
{
Item.UseSound = CommonCalamitySounds.PlasmaBoltSound;
Item.UseSound = FastShotSound;
}
else
{
Item.UseSound = CommonCalamitySounds.PlasmaBlastSound;
Item.UseSound = HeavyShotSound;
}
return base.CanUseItem(player);
}
+3 -3
View File
@@ -42,17 +42,17 @@ namespace CalamityMod.Items.Weapons.Magic
public override void ModifyTooltips(List<TooltipLine> list)
{
TooltipLine name = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "ItemName");
if (name != null && CalamityWorld.getFixedBoi)
if (name != null && Main.zenithWorld)
name.Text = "yermes christal";
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
if (line != null && CalamityWorld.getFixedBoi)
if (line != null && Main.zenithWorld)
line.Text = "...throughs a pice of dnimite";
}
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ProjectileID.Dynamite, 250, 0, player.whoAmI);
return false;
+1 -1
View File
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Melee
Player player = Main.LocalPlayer;
TooltipLine line3 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2");
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
line3.Text = "May be viable weapon against DoG...";
}
+2 -2
View File
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
if (line != null && CalamityWorld.getFixedBoi)
if (line != null && Main.zenithWorld)
line.Text = "No, it sucks";
}
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.Weapons.Ranged
SoundEngine.PlaySound(SoundID.Item38, player.Center);
// Really jammed in GFB
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
return Main.rand.NextBool(5);
int bulletAmt = Main.rand.Next(25, 36);
+2
View File
@@ -2,6 +2,7 @@
using CalamityMod.Rarities;
using Terraria;
using Terraria.ID;
using Terraria.Audio;
using Terraria.ModLoader;
using static Terraria.ModLoader.ModContent;
@@ -9,6 +10,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
public class FinalDawn : RogueWeapon
{
public static readonly SoundStyle UseSound = new("CalamityMod/Sounds/Item/FinalDawnSlash");
public override void SetDefaults()
{
Item.damage = 1500;
+2
View File
@@ -5,6 +5,7 @@ using CalamityMod.Rarities;
using CalamityMod.Tiles.Furniture.CraftingStations;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.ID;
using Terraria.ModLoader;
@@ -13,6 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
public class Supernova : RogueWeapon
{
public static readonly SoundStyle ExplosionSound = new("CalamityMod/Sounds/Item/SupernovaBoom") { Volume = 0.8f };
public override void SetDefaults()
{
Item.width = 34;
+1 -1
View File
@@ -216,7 +216,7 @@ namespace CalamityMod.NPCs.Abyss
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("Bloatfish3").Type, NPC.scale);
}
}
if (NPC.scale < 2f || CalamityWorld.getFixedBoi)
if (NPC.scale < 2f || Main.zenithWorld)
{
NPC.scale += 0.05f;
}
+2 -2
View File
@@ -347,7 +347,7 @@ namespace CalamityMod.NPCs.Abyss
(Main.player[NPC.target].Center - NPC.Center).Length() < Main.player[NPC.target].Calamity().GetAbyssAggro(240f)) ||
NPC.justHit)
{
if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient && !clone && !hasBeenHit)
if (Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient && !clone && !hasBeenHit)
{
// spawn some baby colossal squids in gfb
for (int i = 0; i < 3; i++)
@@ -635,7 +635,7 @@ namespace CalamityMod.NPCs.Abyss
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi && clone)
if (Main.zenithWorld && clone)
{
typeName = CalamityUtils.GetTextValue("NPCs.TinySquid");
}
+1 -1
View File
@@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Abyss
public override void AI()
{
bool adultWyrmAlive = false;
SoundStyle roar = CalamityWorld.getFixedBoi ? Sunskater.DeathSound with { Pitch = Sunskater.DeathSound.Pitch - 0.5f } : CommonCalamitySounds.WyrmScreamSound;
SoundStyle roar = Main.zenithWorld ? Sunskater.DeathSound with { Pitch = Sunskater.DeathSound.Pitch - 0.5f } : CommonCalamitySounds.WyrmScreamSound;
if (CalamityGlobalNPC.adultEidolonWyrmHead != -1)
{
if (Main.npc[CalamityGlobalNPC.adultEidolonWyrmHead].active)
+1 -1
View File
@@ -605,7 +605,7 @@ namespace CalamityMod.NPCs.Abyss
NPC.netUpdate = true;
return;
}
if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient && NPC.ai[2] % 5 == 0)
if (Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient && NPC.ai[2] % 5 == 0)
{
Vector2 direction = vector - player.Center;
direction.Normalize();
+1 -1
View File
@@ -482,7 +482,7 @@ namespace CalamityMod.NPCs.AcidRain
public override void OnKill()
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Vector2 valueBoom = new Vector2(NPC.position.X + (float)NPC.width * 0.5f, NPC.position.Y + (float)NPC.height * 0.5f);
float spreadBoom = 15f * 0.0174f;
+1 -1
View File
@@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.AcidRain
Walking = false;
if (CalamityWorld.getFixedBoi && !hasDoneDeathray && NPC.life <= NPC.lifeMax * 0.1f)
if (Main.zenithWorld && !hasDoneDeathray && NPC.life <= NPC.lifeMax * 0.1f)
{
DeathrayTime++;
MasterSpark();
+1 -1
View File
@@ -206,7 +206,7 @@ namespace CalamityMod.NPCs.AcidRain
// Prevent yeeting into the sky at the speed of light.
NPC.velocity = Vector2.Clamp(NPC.velocity, new Vector2(-maxSpeed), new Vector2(maxSpeed));
if (CalamityWorld.getFixedBoi && !(!NPC.wet && NPC.collideY))
if (Main.zenithWorld && !(!NPC.wet && NPC.collideY))
{
// Spread the wrath of the damned
NPC.Calamity().newAI[0]++;
+1 -1
View File
@@ -169,7 +169,7 @@ namespace CalamityMod.NPCs.AcidRain
projDamage = (int)Math.Round(projDamage * 0.8);
Vector2 spikeVelocity = -NPC.velocity.RotatedByRandom(0.18f);
if (CalamityWorld.getFixedBoi) // more true to the original concept art.
if (Main.zenithWorld) // more true to the original concept art.
{
spikeVelocity = -projectile.velocity;
spikeVelocity.Normalize();
@@ -196,7 +196,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.Jared");
}
@@ -196,7 +196,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.Jared");
}
@@ -77,7 +77,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
//Sounds
public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/Scare");
public static readonly SoundStyle RoarSound = new("CalamityMod/Sounds/Custom/EidolonWyrmRoarClose");
public static readonly SoundStyle ChargeSound = new("CalamityMod/Sounds/Custom/AdultEidolonCharge");
public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AdultEidolonDeath");
public override void SetStaticDefaults()
{
@@ -113,7 +114,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
NPC.noGravity = true;
NPC.noTileCollide = true;
NPC.HitSound = SoundID.NPCHit1;
NPC.DeathSound = SoundID.NPCDeath6;
NPC.DeathSound = DeathSound;
NPC.netAlways = true;
NPC.boss = true;
NPC.Calamity().VulnerableToHeat = false;
@@ -121,7 +122,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
NPC.Calamity().VulnerableToElectricity = true;
NPC.Calamity().VulnerableToWater = false;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.defense = 999;
NPC.DR_NERD(0.9f);
@@ -530,7 +531,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
if (calamityGlobalNPC.newAI[2] == chargePhaseGateValue + 1f)
{
if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, NPC.Center) < soundDistance)
SoundEngine.PlaySound(RoarSound, Main.player[Main.myPlayer].Center);
SoundEngine.PlaySound(ChargeSound, Main.player[Main.myPlayer].Center);
}
// Lock into the charge phase and use this for a charge time check
@@ -718,7 +719,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
if (calamityGlobalNPC.newAI[2] == chargePhaseGateValue + 1f)
{
if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, NPC.Center) < soundDistance)
SoundEngine.PlaySound(RoarSound, Main.player[Main.myPlayer].Center);
SoundEngine.PlaySound(ChargeSound, Main.player[Main.myPlayer].Center);
}
// Lock into the charge phase and use this for a charge time check
@@ -830,7 +831,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
if (calamityGlobalNPC.newAI[2] == chargePhaseGateValue + 1f)
{
if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, NPC.Center) < soundDistance)
SoundEngine.PlaySound(RoarSound, Main.player[Main.myPlayer].Center);
SoundEngine.PlaySound(ChargeSound, Main.player[Main.myPlayer].Center);
}
// Lock into the charge phase and use this for a charge time check
@@ -1110,7 +1111,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
if (calamityGlobalNPC.newAI[2] == lightningChargePhaseGateValue + 1f)
{
if (Main.player[Main.myPlayer].active && !Main.player[Main.myPlayer].dead && Vector2.Distance(Main.player[Main.myPlayer].Center, NPC.Center) < soundDistance)
SoundEngine.PlaySound(RoarSound, Main.player[Main.myPlayer].Center);
SoundEngine.PlaySound(ChargeSound, Main.player[Main.myPlayer].Center);
}
// Lock into the charge phase and use this for a charge time check
@@ -1484,7 +1485,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.Jared");
}
@@ -158,7 +158,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.Jared");
}
+1 -1
View File
@@ -104,7 +104,7 @@ namespace CalamityMod.NPCs.AquaticScourge
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
Color color = NPC.GetAlpha(drawColor);
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi)
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || Main.zenithWorld)
{
if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] > 300f)
color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] - 300f) / 180f, 0f, 1f));
+1 -1
View File
@@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.AquaticScourge
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
Color color = NPC.GetAlpha(drawColor);
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi)
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || Main.zenithWorld)
{
if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] > 300f)
color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] - 300f) / 180f, 0f, 1f));
+1 -1
View File
@@ -144,7 +144,7 @@ namespace CalamityMod.NPCs.AquaticScourge
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
Color color = NPC.GetAlpha(drawColor);
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi)
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || Main.zenithWorld)
{
if (NPC.Calamity().newAI[3] > 300f)
color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((NPC.Calamity().newAI[3] - 300f) / 180f, 0f, 1f));
+1 -1
View File
@@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.AquaticScourge
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
Color color = NPC.GetAlpha(drawColor);
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi)
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || Main.zenithWorld)
{
if (Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] > 300f)
color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((Main.npc[(int)NPC.ai[2]].Calamity().newAI[3] - 300f) / 180f, 0f, 1f));
+1 -1
View File
@@ -278,7 +278,7 @@ namespace CalamityMod.NPCs.Astral
swingYeet = false;
if (Main.rand.NextBool(1000) || CalamityWorld.getFixedBoi) //Launch the player very fast very rarely
if (Main.rand.NextBool(1000) || Main.zenithWorld) //Launch the player very fast very rarely
{
horMult = 12f;
verMult = 2.3f;
+1 -1
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.Astral
NPC.Calamity().VulnerableToHeat = true;
NPC.Calamity().VulnerableToSickness = false;
SpawnModBiomes = new int[1] { ModContent.GetInstance<UndergroundAstralBiome>().Type };
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.scale = 3f;
}
+6 -6
View File
@@ -84,7 +84,7 @@ namespace CalamityMod.NPCs.AstrumAureus
if (Main.getGoodWorld)
NPC.scale *= 0.8f;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
NPC.scale *= 1.5f;
}
@@ -230,7 +230,7 @@ namespace CalamityMod.NPCs.AstrumAureus
if (NPC.spriteDirection == 1)
spriteEffects = SpriteEffects.FlipHorizontally;
if (NPC.ai[0] == 0f || (slimePhaseHP && CalamityWorld.getFixedBoi))
if (NPC.ai[0] == 0f || (slimePhaseHP && Main.zenithWorld))
{
NPCTexture = TextureAssets.Npc[NPC.type].Value;
GlowMaskTexture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AstrumAureus/AstrumAureusGlow").Value;
@@ -283,7 +283,7 @@ namespace CalamityMod.NPCs.AstrumAureus
float rotation = NPC.rotation;
float offsetY = NPC.gfxOffY;
Color color36 = Color.White;
if (CalamityWorld.getFixedBoi && slimePhaseHP)
if (Main.zenithWorld && slimePhaseHP)
{
color36 = slimePhase == 0 ? Color.Yellow : Color.Violet;
}
@@ -310,14 +310,14 @@ namespace CalamityMod.NPCs.AstrumAureus
Vector2 vector43 = NPC.Center - screenPos;
vector43 -= new Vector2(NPCTexture.Width, NPCTexture.Height / frameCount) * scale / 2f;
vector43 += vector11 * scale + new Vector2(0f, 4f + offsetY);
Color toUse = CalamityWorld.getFixedBoi && slimePhaseHP ? color36 : drawColor;
Color toUse = Main.zenithWorld && slimePhaseHP ? color36 : drawColor;
spriteBatch.Draw(NPCTexture, vector43, frame, NPC.GetAlpha(toUse), rotation, vector11, scale, spriteEffects, 0f);
if (NPC.ai[0] != 1 || (slimePhaseHP && CalamityWorld.getFixedBoi)) //draw only if not recharging
if (NPC.ai[0] != 1 || (slimePhaseHP && Main.zenithWorld)) //draw only if not recharging
{
Color color = new Color(127 - NPC.alpha, 127 - NPC.alpha, 127 - NPC.alpha, 0).MultiplyRGBA(Color.Gold);
Color color40 = Color.Lerp(Color.White, color, 0.5f);
if (CalamityWorld.getFixedBoi && slimePhaseHP)
if (Main.zenithWorld && slimePhaseHP)
{
color40 = slimePhase == 0 ? Color.Violet : Color.Yellow;
}
+1 -1
View File
@@ -377,7 +377,7 @@ namespace CalamityMod.NPCs.AstrumAureus
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
{
int debuffType = CalamityWorld.getFixedBoi ? ModContent.BuffType<GodSlayerInferno>() : ModContent.BuffType<AstralInfectionDebuff>();
int debuffType = Main.zenithWorld ? ModContent.BuffType<GodSlayerInferno>() : ModContent.BuffType<AstralInfectionDebuff>();
target.AddBuff(debuffType, (int)(180 * NPC.scale), true);
}
}
+1 -1
View File
@@ -180,7 +180,7 @@ namespace CalamityMod.NPCs.AstrumDeus
public override void HitEffect(NPC.HitInfo hit)
{
if (NPC.life <= 0 && CalamityWorld.getFixedBoi) // I value people's computers
if (NPC.life <= 0 && Main.zenithWorld) // I value people's computers
{
NPC.position.X = NPC.position.X + (NPC.width / 2);
NPC.position.Y = NPC.position.Y + (NPC.height / 2);
+4 -2
View File
@@ -35,6 +35,8 @@ namespace CalamityMod.NPCs.AstrumDeus
public class AstrumDeusHead : ModNPC
{
public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/AstrumDeusSpawn");
public static readonly SoundStyle LaserSound = new("CalamityMod/Sounds/Custom/AstrumDeusLaser");
public static readonly SoundStyle MineSound = new("CalamityMod/Sounds/Custom/AstrumDeusMine");
public static readonly SoundStyle SplitSound = new("CalamityMod/Sounds/Custom/AstrumDeusSplit");
public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AstrumDeusDeath");
@@ -92,7 +94,7 @@ namespace CalamityMod.NPCs.AstrumDeus
NPC.Calamity().VulnerableToSickness = false;
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbovegroundAstralBiome>().Type };
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
if (CalamityWorld.death) // killing 10 worms with half of the og's health is ridiculous
NPC.lifeMax /= 3;
@@ -218,7 +220,7 @@ namespace CalamityMod.NPCs.AstrumDeus
{
if (NPC.life <= 0)
{
if (CalamityWorld.getFixedBoi && Main.rand.NextBool(5)) // I value people's computers
if (Main.zenithWorld && Main.rand.NextBool(5)) // I value people's computers
{
NPC.position.X = NPC.position.X + (NPC.width / 2);
NPC.position.Y = NPC.position.Y + (NPC.height / 2);
+1 -1
View File
@@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.AstrumDeus
public override void HitEffect(NPC.HitInfo hit)
{
if (NPC.life <= 0 && CalamityWorld.getFixedBoi) // I value people's computers
if (NPC.life <= 0 && Main.zenithWorld) // I value people's computers
{
NPC.position.X = NPC.position.X + (NPC.width / 2);
NPC.position.Y = NPC.position.Y + (NPC.height / 2);
+1 -1
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
NPC.Calamity().VulnerableToWater = true;
SpawnModBiomes = new int[1] { ModContent.GetInstance<BrimstoneCragsBiome>().Type };
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
NPC.scale *= 0.7f;
}
@@ -310,7 +310,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
npcOffset += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY);
// Give brimmy an outline based on current elemental mode
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color baseColor = Color.Red;
switch (currentMode)
+4 -4
View File
@@ -131,7 +131,7 @@ namespace CalamityMod.NPCs.Bumblebirb
bool birbSpawn = NPC.ai[0] == 4f && NPC.ai[1] > 0f;
// Animation goes nyoom
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.frameCounter += 4;
}
@@ -412,7 +412,7 @@ namespace CalamityMod.NPCs.Bumblebirb
public override void BossLoot(ref string name, ref int potionType)
{
name = CalamityWorld.getFixedBoi ? "A Bumblebirb" : "A Dragonfolly";
name = Main.zenithWorld ? "A Bumblebirb" : "A Dragonfolly";
potionType = ItemID.SuperHealingPotion;
}
@@ -465,7 +465,7 @@ namespace CalamityMod.NPCs.Bumblebirb
DownedBossSystem.downedDragonfolly = true;
CalamityNetcode.SyncWorld();
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
int spacing = 40;
int amt = 7;
@@ -490,7 +490,7 @@ namespace CalamityMod.NPCs.Bumblebirb
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.Bumblebirb");
}
+3 -3
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.NPCs.Bumblebirb
if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2)
Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart);
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
SoundEngine.PlaySound(CommonCalamitySounds.LightningSound, NPC.Center - Vector2.UnitY * 300f);
for (int i = 0; i < 5; i++)
@@ -72,7 +72,7 @@ namespace CalamityMod.NPCs.Bumblebirb
public override void FindFrame(int frameHeight)
{
NPC.frameCounter += NPC.ai[0] == 2.1f ? 1.5 : 1D;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.frameCounter += 2D;
}
@@ -124,7 +124,7 @@ namespace CalamityMod.NPCs.Bumblebirb
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.Bumblebirb");
}
+1 -1
View File
@@ -157,7 +157,7 @@ namespace CalamityMod.NPCs.CalClone
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/CalClone/CalamitasCloneGlow").Value;
Color color = Color.Lerp(Color.White, Color.Red, 0.5f);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
color = Color.CornflowerBlue;
}
+32 -32
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.NPCs
bool revenge = CalamityWorld.revenge || bossRush;
bool death = CalamityWorld.death || bossRush;
bool getFuckedAI = CalamityWorld.getFixedBoi;
bool getFuckedAI = Main.zenithWorld;
if (head)
CalamityGlobalNPC.aquaticScourge = npc.whoAmI;
@@ -758,7 +758,7 @@ namespace CalamityMod.NPCs
}
}
if (CalamityWorld.getFixedBoi) // in gfb, Brimmy channels the power of the other elementals.
if (Main.zenithWorld) // in gfb, Brimmy channels the power of the other elementals.
{
int newMode;
if (lifeRatio <= 0.8f && lifeRatio > 0.6f)
@@ -907,7 +907,7 @@ namespace CalamityMod.NPCs
if (npc.alpha >= 255)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
SoundEngine.PlaySound(SoundID.Item68, npc.Center);
int type = ModContent.ProjectileType<BrimstoneRay>();
@@ -1202,7 +1202,7 @@ namespace CalamityMod.NPCs
Projectile.NewProjectile(npc.GetSource_FromAI(), source, laserVelocity2, type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI);
if (Main.getGoodWorld)
Projectile.NewProjectile(npc.GetSource_FromAI(), source, -laserVelocity2, type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Projectile.NewProjectile(npc.GetSource_FromAI(), source, new Vector2(-laserVelocity2.X, laserVelocity2.Y), type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI);
Projectile.NewProjectile(npc.GetSource_FromAI(), source, new Vector2(laserVelocity2.X, -laserVelocity2.Y), type, damage, 0f, Main.myPlayer, 0f, npc.whoAmI);
@@ -1243,7 +1243,7 @@ namespace CalamityMod.NPCs
if (Main.getGoodWorld)
Projectile.NewProjectile(npc.GetSource_FromAI(), source, -laserVelocity, ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 0f, npc.whoAmI);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Projectile.NewProjectile(npc.GetSource_FromAI(), source, new Vector2(-laserVelocity.X, laserVelocity.Y), ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 0f, npc.whoAmI);
Projectile.NewProjectile(npc.GetSource_FromAI(), source, new Vector2(laserVelocity.X, -laserVelocity.Y), ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 0f, npc.whoAmI);
@@ -1260,7 +1260,7 @@ namespace CalamityMod.NPCs
Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, npc.localAI[0], npc.localAI[1], ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI);
if (Main.getGoodWorld)
Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, -npc.localAI[0], -npc.localAI[1], ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, -npc.localAI[0], npc.localAI[1], ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI);
Projectile.NewProjectile(npc.GetSource_FromAI(), source.X, source.Y, npc.localAI[0], -npc.localAI[1], ModContent.ProjectileType<BrimstoneTargetRay>(), 0, 0f, Main.myPlayer, 1f, npc.whoAmI);
@@ -1608,7 +1608,7 @@ namespace CalamityMod.NPCs
{
int type = ModContent.ProjectileType<SCalBrimstoneFireblast>();
int damage = npc.GetProjectileDamage(type);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
type = ModContent.ProjectileType<SCalBrimstoneGigablast>();
}
@@ -2207,7 +2207,7 @@ namespace CalamityMod.NPCs
npc.velocity.Y = num872 * num873;
npc.ai[1] = 2f;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
SoundEngine.PlaySound(SupremeCalamitas.SupremeCalamitas.BrimstoneShotSound, npc.Center);
@@ -2514,7 +2514,7 @@ namespace CalamityMod.NPCs
npc.velocity.Y = num872 * num873;
npc.ai[1] = 2f;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
SoundEngine.PlaySound(SupremeCalamitas.SupremeCalamitas.BrimstoneShotSound, npc.Center);
@@ -2701,7 +2701,7 @@ namespace CalamityMod.NPCs
bool geldonPhase1 = lifeRatio > 0.6f && lifeRatio <= 0.7f;
bool geldonPhase2 = lifeRatio <= 0.1f;
if (CalamityWorld.getFixedBoi && (geldonPhase1 || geldonPhase2))
if (Main.zenithWorld && (geldonPhase1 || geldonPhase2))
{
AstrumAureus.AstrumAureus astrumAureus = npc.ModNPC<AstrumAureus.AstrumAureus>();
astrumAureus.slimeProjCounter++;
@@ -3087,10 +3087,10 @@ namespace CalamityMod.NPCs
if (npc.velocity.Y == 0f)
{
// Play stomp sound. Gotta specify the filepath to avoid confusion between the namespace and npc
SoundStyle soundToPlay = CalamityWorld.getFixedBoi ? NPCs.ExoMechs.Ares.AresGaussNuke.NukeExplosionSound : NPCs.AstrumAureus.AstrumAureus.StompSound;
SoundStyle soundToPlay = Main.zenithWorld ? NPCs.ExoMechs.Ares.AresGaussNuke.NukeExplosionSound : NPCs.AstrumAureus.AstrumAureus.StompSound;
SoundEngine.PlaySound(soundToPlay, npc.Center);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
float screenShakePower = 16 * Utils.GetLerpValue(1300f, 0f, npc.Distance(Main.LocalPlayer.Center), true);
if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower)
@@ -3137,7 +3137,7 @@ namespace CalamityMod.NPCs
SoundEngine.PlaySound(SoundID.Item33, npc.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
int type = Main.rand.NextBool(2) ? ModContent.ProjectileType<AstralLaser>() : ModContent.ProjectileType<AstralFlame>();
int damage = npc.GetProjectileDamage(type);
@@ -3560,7 +3560,7 @@ namespace CalamityMod.NPCs
int phase1Length = death ? 80 : revenge ? 70 : expertMode ? 60 : 50;
int phase2Length = phase1Length / 2;
int gfbLength = phase1Length / 10;
int maxLength = CalamityWorld.getFixedBoi && doubleWormPhase ? gfbLength : doubleWormPhase ? phase2Length : phase1Length;
int maxLength = Main.zenithWorld && doubleWormPhase ? gfbLength : doubleWormPhase ? phase2Length : phase1Length;
// Become gradually more pissed as more worms are killed
int gfbMaxWormCount = 10;
@@ -3655,7 +3655,7 @@ namespace CalamityMod.NPCs
// Do not spawn worms client side. The server handles this.
if (Main.netMode != NetmodeID.MultiplayerClient)
{
int wormamt = CalamityWorld.getFixedBoi ? 5 : 1;
int wormamt = Main.zenithWorld ? 5 : 1;
for (int i = 0; i < wormamt; i++)
{
// Now that the original worm doesn't exist, startCount can be zero.
@@ -3709,7 +3709,7 @@ namespace CalamityMod.NPCs
}
}
if (CalamityWorld.getFixedBoi && calamityGlobalNPC.newAI[1] < 10f) // desync the deuses
if (Main.zenithWorld && calamityGlobalNPC.newAI[1] < 10f) // desync the deuses
{
float pushForce = 0.25f;
for (int k = 0; k < Main.maxNPCs; k++)
@@ -3758,7 +3758,7 @@ namespace CalamityMod.NPCs
npc.realLife = (int)npc.ai[2];
// Emit light
if (!CalamityWorld.getFixedBoi)
if (!Main.zenithWorld)
Lighting.AddLight((int)((npc.position.X + (npc.width / 2)) / 16f), (int)((npc.position.Y + (npc.height / 2)) / 16f), 0.2f, 0.05f, 0.2f);
// Dust and alpha effects
@@ -4195,7 +4195,7 @@ namespace CalamityMod.NPCs
if (Vector2.Distance(player.Center, npc.Center) > 80f)
{
SoundEngine.PlaySound(shootGodRays ? SoundID.Item91 : SoundID.Item12, npc.Center);
SoundEngine.PlaySound(AstrumDeusHead.LaserSound, npc.Center);
float num941 = (death ? 16f : revenge ? 14f : 13f) + enrageScale * 4f;
Vector2 vector104 = new Vector2(npc.position.X + npc.width * 0.5f, npc.position.Y + (npc.height / 2));
float num942 = player.position.X + player.width * 0.5f - vector104.X;
@@ -4967,10 +4967,10 @@ namespace CalamityMod.NPCs
// Sound
if (calamityGlobalNPC.newAI[1] == newPhaseTimer - 60f)
{
float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f;
float squawkpitch = Main.zenithWorld ? 1.3f : 0.25f;
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center);
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
int spacing = 20;
int amt = 5;
@@ -5005,10 +5005,10 @@ namespace CalamityMod.NPCs
// Sound
if (calamityGlobalNPC.newAI[0] == newPhaseTimer - 60f)
{
float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f;
float squawkpitch = Main.zenithWorld ? 1.3f : 0.25f;
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center);
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
int spacing = 20;
int amt = 3;
@@ -5503,10 +5503,10 @@ namespace CalamityMod.NPCs
// Sound
if (npc.ai[1] == birbSpawnPhaseTimer - 60f)
{
float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f;
float squawkpitch = Main.zenithWorld ? 1.3f : 0.25f;
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center);
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
int spacing = 30;
int amt = 3;
@@ -5572,7 +5572,7 @@ namespace CalamityMod.NPCs
npc.netUpdate = true;
}
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
int spacing = 30;
int amt = 3;
@@ -5678,7 +5678,7 @@ namespace CalamityMod.NPCs
value44.Normalize();
value44 *= scaleFactor20;
npc.velocity = (npc.velocity * (num1377 - 1f) + value44) / num1377;
if (Main.getGoodWorld && !CalamityWorld.getFixedBoi)
if (Main.getGoodWorld && !Main.zenithWorld)
npc.velocity *= 1.15f;
}
else if (npc.velocity.Length() > 2f)
@@ -5728,7 +5728,7 @@ namespace CalamityMod.NPCs
value45.Normalize();
value45 *= scaleFactor21;
npc.velocity = (npc.velocity * (num1378 - 1f) + value45) / num1378;
if (Main.getGoodWorld && !CalamityWorld.getFixedBoi)
if (Main.getGoodWorld && !Main.zenithWorld)
npc.velocity *= 1.15f;
npc.netSpam = 5;
@@ -5757,7 +5757,7 @@ namespace CalamityMod.NPCs
vector242.Normalize();
vector242 *= scaleFactor22;
npc.velocity = (npc.velocity * (num1379 - 1f) + vector242) / num1379;
if (Main.getGoodWorld && !CalamityWorld.getFixedBoi)
if (Main.getGoodWorld && !Main.zenithWorld)
npc.velocity *= 1.15f;
if (npc.velocity.X < 0f)
@@ -5773,7 +5773,7 @@ namespace CalamityMod.NPCs
if (npc.ai[1] > 10f)
{
npc.velocity = vector242;
if (Main.getGoodWorld && !CalamityWorld.getFixedBoi)
if (Main.getGoodWorld && !Main.zenithWorld)
npc.velocity *= 1.15f;
if (npc.velocity.X < 0f)
@@ -5960,7 +5960,7 @@ namespace CalamityMod.NPCs
int num13 = maxToothBallBelches * toothBallSpinPhaseDivisor;
float spinTime = num13 / 2f;
float toothBallSpinToothBallVelocity = bossRush ? 14f : death ? 9.5f : 9f;
float scaleFactor4 = CalamityWorld.getFixedBoi ? 44f : 22f;
float scaleFactor4 = Main.zenithWorld ? 44f : 22f;
float num15 = MathHelper.TwoPi / spinTime;
int num16 = 75;
@@ -6014,7 +6014,7 @@ namespace CalamityMod.NPCs
if (calamityGlobalNPC.newAI[0] % 60f == 0f)
SoundEngine.PlaySound(OldDuke.OldDuke.HuffSound, player.Center);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
float screenShakePower = 10 * Utils.GetLerpValue(800f, 0f, npc.Distance(Main.LocalPlayer.Center), true);
if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower)
@@ -7667,7 +7667,7 @@ namespace CalamityMod.NPCs
{
Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.Brimstone, 0f, -1f, 0, default, 1f);
}
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
float screenShakePower = 2 * Utils.GetLerpValue(1300f, 0f, npc.Distance(Main.LocalPlayer.Center), true);
if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower)
+3 -3
View File
@@ -5221,9 +5221,9 @@ namespace CalamityMod.NPCs
}
if (npc.justHit)
npc.ai[0] = (npc.type == NPCID.RuneWizard && CalamityWorld.getFixedBoi) ? 5f : 2f;
npc.ai[0] = (npc.type == NPCID.RuneWizard && Main.zenithWorld) ? 5f : 2f;
npc.ai[0] += (npc.type == NPCID.RuneWizard && CalamityWorld.getFixedBoi) ? 5f : 2f;
npc.ai[0] += (npc.type == NPCID.RuneWizard && Main.zenithWorld) ? 5f : 2f;
if (npc.type == NPCID.Necromancer || npc.type == NPCID.NecromancerArmored)
{
@@ -6603,7 +6603,7 @@ namespace CalamityMod.NPCs
if (Main.getGoodWorld)
{
projAmt = Main.rand.Next(8, 14);
if (Main.rand.NextBool(1000) || CalamityWorld.getFixedBoi)
if (Main.rand.NextBool(1000) || Main.zenithWorld)
projAmt = Main.rand.Next(80, 131);
}
+7 -7
View File
@@ -1313,7 +1313,7 @@ namespace CalamityMod.NPCs
else if (CalamityLists.DestroyerIDs.Contains(npc.type))
{
npc.lifeMax = (int)(npc.lifeMax * 1.25);
npc.scale *= CalamityWorld.getFixedBoi ? 2.5f : CalamityWorld.death ? 1.7f : 1.5f;
npc.scale *= Main.zenithWorld ? 2.5f : CalamityWorld.death ? 1.7f : 1.5f;
npc.npcSlots = 10f;
}
else if (npc.type == NPCID.Probe)
@@ -1321,7 +1321,7 @@ namespace CalamityMod.NPCs
if (CalamityWorld.death)
npc.lifeMax = (int)(npc.lifeMax * 2.0);
npc.scale *= CalamityWorld.getFixedBoi ? 2f : CalamityWorld.death ? 1.3f : 1.2f;
npc.scale *= Main.zenithWorld ? 2f : CalamityWorld.death ? 1.3f : 1.2f;
}
else if (npc.type == NPCID.SkeletronPrime)
{
@@ -2812,7 +2812,7 @@ namespace CalamityMod.NPCs
}
// Setting this in SetDefaults will disable expert mode scaling, so put it here instead
if (CalamityLists.ZeroContactDamageNPCList.Contains(npc.type) && (npc.type != NPCID.RuneWizard || !CalamityWorld.getFixedBoi))
if (CalamityLists.ZeroContactDamageNPCList.Contains(npc.type) && (npc.type != NPCID.RuneWizard || !Main.zenithWorld))
npc.damage = npc.defDamage = 0;
// Don't do damage for 42 frames after spawning in
@@ -2874,7 +2874,7 @@ namespace CalamityMod.NPCs
}
}
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
if (npc.type == NPCID.QueenBee)
return QueenBeeAI.BuffedQueenBeeAI(npc, Mod);
@@ -4396,7 +4396,7 @@ namespace CalamityMod.NPCs
break;
case NPCID.RuneWizard:
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
target.AddBuff(BuffType<MiracleBlight>(), 600);
break;
@@ -5496,7 +5496,7 @@ namespace CalamityMod.NPCs
if (Main.LocalPlayer.Calamity().trippy || (npc.type == NPCID.KingSlime && CalamityWorld.LegendaryMode && CalamityWorld.revenge))
return new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, npc.alpha);
if (npc.type == NPCID.QueenBee && CalamityWorld.getFixedBoi)
if (npc.type == NPCID.QueenBee && Main.zenithWorld)
{
if (npc.life / (float)npc.lifeMax < 0.5f)
return new Color(0, 255, 0, npc.alpha);
@@ -5838,7 +5838,7 @@ namespace CalamityMod.NPCs
}
}
if (CalamityWorld.getFixedBoi && NPC.AnyNPCs(NPCType<CeaselessVoid.CeaselessVoid>()))
if (Main.zenithWorld && NPC.AnyNPCs(NPCType<CeaselessVoid.CeaselessVoid>()))
{
Main.spriteBatch.End();
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.AlphaBlend, SamplerState.LinearClamp, DepthStencilState.Default, RasterizerState.CullNone, null, Main.GameViewMatrix.ZoomMatrix);
+1 -1
View File
@@ -2101,7 +2101,7 @@ namespace CalamityMod.NPCs
}
bool normalShark = npc.type == NPCID.SandShark || npc.type == NPCID.SandsharkHallow || npc.type == NPCID.SandsharkCorrupt || npc.type == NPCID.SandsharkCrimson;
if (NPC.downedPlantBoss && (normalShark || (npc.type == ModContent.NPCType<FusionFeeder>() && CalamityWorld.getFixedBoi)) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark.GreatSandShark>()))
if (NPC.downedPlantBoss && (normalShark || (npc.type == ModContent.NPCType<FusionFeeder>() && Main.zenithWorld)) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark.GreatSandShark>()))
{
CalamityMod.sharkKillCount++;
if (CalamityMod.sharkKillCount == 4)
+1 -1
View File
@@ -263,7 +263,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
{
NPC.soundDelay = 8;
float pitchVar = 0;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
pitchVar = Main.rand.Next(-60, 41) * 0.01f;
}
+2 -2
View File
@@ -273,8 +273,8 @@ namespace CalamityMod.NPCs.CeaselessVoid
public override void OnHitPlayer(Player target, Player.HurtInfo hurtInfo)
{
int debufftype = CalamityWorld.getFixedBoi ? BuffID.Obstructed : BuffID.VortexDebuff;
int duration = CalamityWorld.getFixedBoi ? 30 : 60;
int debufftype = Main.zenithWorld ? BuffID.Obstructed : BuffID.VortexDebuff;
int duration = Main.zenithWorld ? 30 : 60;
if (hurtInfo.Damage > 0)
target.AddBuff(debufftype, duration, true);
}
+3 -3
View File
@@ -128,7 +128,7 @@ namespace CalamityMod.NPCs.Crabulon
}
}
public override Color? GetAlpha(Color drawColor) => CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, drawColor.A) * NPC.Opacity : null;
public override Color? GetAlpha(Color drawColor) => Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, drawColor.A) * NPC.Opacity : null;
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
{
@@ -138,10 +138,10 @@ namespace CalamityMod.NPCs.Crabulon
Texture2D texture = TextureAssets.Npc[NPC.type].Value;
Texture2D glow = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabShroomGlow").Value;
Color colorToShift = CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan;
Color colorToShift = Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan;
Color glowColor = Color.Lerp(Color.White, colorToShift, 0.5f);
int ClonesAroundShroom = CalamityWorld.getFixedBoi ? 4 : 0;
int ClonesAroundShroom = Main.zenithWorld ? 4 : 0;
for (int c = 0; c < 1 + ClonesAroundShroom; c++)
{
Vector2 drawOrigin = new Vector2(texture.Width / 2, texture.Height / Main.npcFrameCount[NPC.type] / 2);
+5 -5
View File
@@ -540,7 +540,7 @@ namespace CalamityMod.NPCs.Crabulon
int num624 = Dust.NewDust(new Vector2(NPC.position.X - 20f, NPC.position.Y + NPC.height), NPC.width + 20, 4, 56, 0f, 0f, 100, default, 1.5f);
Main.dust[num624].velocity *= 0.2f;
}
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
int x = num622 / 16;
int y = (int)(NPC.position.Y + NPC.height) / 16;
@@ -769,7 +769,7 @@ namespace CalamityMod.NPCs.Crabulon
}
}
public override Color? GetAlpha(Color drawColor) => CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, drawColor.A) * NPC.Opacity : null;
public override Color? GetAlpha(Color drawColor) => Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, drawColor.A) * NPC.Opacity : null;
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
{
@@ -783,10 +783,10 @@ namespace CalamityMod.NPCs.Crabulon
Texture2D glowWalk = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonAltGlow").Value;
Texture2D textureAttack = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonAttack").Value;
Texture2D glowAttack = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabulonAttackGlow").Value;
Color colorToShift = CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan;
Color colorToShift = Main.zenithWorld ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan;
Color glowColor = Color.Lerp(Color.White, colorToShift, 0.5f);
int ClonesOnEachSide = CalamityWorld.getFixedBoi ? 2 : 0;
int ClonesOnEachSide = Main.zenithWorld ? 2 : 0;
for (int c = 0 - ClonesOnEachSide; c < 1 + ClonesOnEachSide; c++)
{
Vector2 drawOrigin = new Vector2(textureIdle.Width / 2, textureIdle.Height / Main.npcFrameCount[NPC.type] / 2);
@@ -871,7 +871,7 @@ namespace CalamityMod.NPCs.Crabulon
DownedBossSystem.downedCrabulon = true;
CalamityNetcode.SyncWorld();
if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient)
if (Main.zenithWorld && Main.netMode != NetmodeID.MultiplayerClient)
{
for (int i = 0; i < Main.rand.Next(10, 23); i++)
{
+1 -1
View File
@@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.Crags
}
if (Main.netMode != NetmodeID.Server)
{
int count = CalamityWorld.getFixedBoi ? 20 : 1; // remember that old oversight in the draedon update?
int count = Main.zenithWorld ? 20 : 1; // remember that old oversight in the draedon update?
for (int g = 0; g < count; g++)
{
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("RenegadeWarlock").Type, NPC.scale);
+33 -33
View File
@@ -103,7 +103,7 @@ namespace CalamityMod.NPCs.Cryogen
if (Main.getGoodWorld)
NPC.scale *= 0.8f;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.Calamity().VulnerableToHeat = false;
NPC.Calamity().VulnerableToCold = true;
@@ -119,7 +119,7 @@ namespace CalamityMod.NPCs.Cryogen
public override void BossHeadSlot(ref int index)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
index = pyroIconIndex;
else
index = cryoIconIndex;
@@ -213,14 +213,14 @@ namespace CalamityMod.NPCs.Cryogen
bool phase7 = lifeRatio < (death ? 0.25f : 0.15f) && revenge;
// Projectile and sound variables
int iceBlast = CalamityWorld.getFixedBoi ? ModContent.ProjectileType<BrimstoneBarrage>() : ModContent.ProjectileType<IceBlast>();
int iceBomb = CalamityWorld.getFixedBoi ? ModContent.ProjectileType<SCalBrimstoneFireblast>() : ModContent.ProjectileType<IceBomb>();
int iceRain = CalamityWorld.getFixedBoi ? ModContent.ProjectileType<BrimstoneBarrage>() : ModContent.ProjectileType<IceRain>();
int dustType = CalamityWorld.getFixedBoi ? 235 : 67;
int iceBlast = Main.zenithWorld ? ModContent.ProjectileType<BrimstoneBarrage>() : ModContent.ProjectileType<IceBlast>();
int iceBomb = Main.zenithWorld ? ModContent.ProjectileType<SCalBrimstoneFireblast>() : ModContent.ProjectileType<IceBomb>();
int iceRain = Main.zenithWorld ? ModContent.ProjectileType<BrimstoneBarrage>() : ModContent.ProjectileType<IceRain>();
int dustType = Main.zenithWorld ? 235 : 67;
SoundStyle frostSound = CalamityWorld.getFixedBoi ? SoundID.Item20 : SoundID.Item28;
NPC.HitSound = CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound;
NPC.DeathSound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : DeathSound;
SoundStyle frostSound = Main.zenithWorld ? SoundID.Item20 : SoundID.Item28;
NPC.HitSound = Main.zenithWorld ? SoundID.NPCHit41 : HitSound;
NPC.DeathSound = Main.zenithWorld ? SoundID.NPCDeath14 : DeathSound;
// Reset damage
NPC.damage = NPC.defDamage;
@@ -290,7 +290,7 @@ namespace CalamityMod.NPCs.Cryogen
if (CalamityWorld.LegendaryMode && CalamityWorld.revenge)
{
int spawnType = CalamityWorld.getFixedBoi ? NPCID.RedDevil : NPCID.IceGolem;
int spawnType = Main.zenithWorld ? NPCID.RedDevil : NPCID.IceGolem;
if (!NPC.AnyNPCs(spawnType))
{
int num167 = 1000;
@@ -338,7 +338,7 @@ namespace CalamityMod.NPCs.Cryogen
if (calamityGlobalNPC.newAI[3] >= (bossRush ? 660f : 900f))
{
calamityGlobalNPC.newAI[3] = 0f;
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int totalProjectiles = 3;
float radians = MathHelper.TwoPi / totalProjectiles;
int type = iceBomb;
@@ -369,7 +369,7 @@ namespace CalamityMod.NPCs.Cryogen
NPC.TargetClosest();
if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height))
{
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int totalProjectiles = bossRush ? 24 : 16;
float radians = MathHelper.TwoPi / totalProjectiles;
int type = iceBlast;
@@ -429,7 +429,7 @@ namespace CalamityMod.NPCs.Cryogen
NPC.TargetClosest();
if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height))
{
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int totalProjectiles = bossRush ? 18 : 12;
float radians = MathHelper.TwoPi / totalProjectiles;
int type = iceBlast;
@@ -503,7 +503,7 @@ namespace CalamityMod.NPCs.Cryogen
{
if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height))
{
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int type = iceRain;
int damage = NPC.GetProjectileDamage(type);
float maxVelocity = 9f + enrageScale;
@@ -603,7 +603,7 @@ namespace CalamityMod.NPCs.Cryogen
NPC.TargetClosest();
if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height))
{
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int totalProjectiles = bossRush ? 18 : 12;
float radians = MathHelper.TwoPi / totalProjectiles;
int type = iceBlast;
@@ -649,7 +649,7 @@ namespace CalamityMod.NPCs.Cryogen
{
if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height))
{
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int type = iceRain;
int damage = NPC.GetProjectileDamage(type);
float maxVelocity = 9f + enrageScale;
@@ -751,7 +751,7 @@ namespace CalamityMod.NPCs.Cryogen
NPC.localAI[0] = 0f;
if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height))
{
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int totalProjectiles = bossRush ? 18 : 12;
float radians = MathHelper.TwoPi / totalProjectiles;
int type = iceBlast;
@@ -861,7 +861,7 @@ namespace CalamityMod.NPCs.Cryogen
if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height))
{
NPC.localAI[0] = 0f;
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int type = iceRain;
int damage = NPC.GetProjectileDamage(type);
float velocity = 9f + enrageScale;
@@ -921,13 +921,13 @@ namespace CalamityMod.NPCs.Cryogen
int chance = 100;
if (DateTime.Now.Month == 4 && DateTime.Now.Day == 1)
chance = 20;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
chance = 1;
if (Main.rand.NextBool(chance))
{
string key = CalamityWorld.getFixedBoi ? "Mods.CalamityMod.Status.Boss.PyrogenBossText" : "Mods.CalamityMod.Status.Boss.CryogenBossText";
Color messageColor = CalamityWorld.getFixedBoi ? Color.Orange : Color.Cyan;
string key = Main.zenithWorld ? "Mods.CalamityMod.Status.Boss.PyrogenBossText" : "Mods.CalamityMod.Status.Boss.CryogenBossText";
Color messageColor = Main.zenithWorld ? Color.Orange : Color.Cyan;
CalamityUtils.DisplayLocalizedText(key, messageColor);
}
}
@@ -944,7 +944,7 @@ namespace CalamityMod.NPCs.Cryogen
{
if (Collision.CanHit(NPC.position, NPC.width, NPC.height, player.position, player.width, player.height))
{
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int type = iceBlast;
int damage = NPC.GetProjectileDamage(type);
float velocity = 1.5f + enrageScale * 0.5f;
@@ -955,7 +955,7 @@ namespace CalamityMod.NPCs.Cryogen
float radians = MathHelper.TwoPi / totalProjectiles;
float newVelocity = velocity - (velocity * (phase7 ? 0.25f : 0.5f) * i);
float velocityX = 0f;
float ai = CalamityWorld.getFixedBoi ? 2f : NPC.target;
float ai = Main.zenithWorld ? 2f : NPC.target;
if (i > 0)
{
double angleA = radians * (phase7 ? 0.25 : 0.5) * (totalSpreads - i);
@@ -1058,7 +1058,7 @@ namespace CalamityMod.NPCs.Cryogen
if (calamityGlobalNPC.newAI[3] >= (bossRush ? 50f : 75f))
{
calamityGlobalNPC.newAI[3] = 0f;
SoundEngine.PlaySound(CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound, NPC.Center);
SoundEngine.PlaySound(Main.zenithWorld ? SoundID.NPCHit41 : HitSound, NPC.Center);
int totalProjectiles = 2;
float radians = MathHelper.TwoPi / totalProjectiles;
int type = iceBomb;
@@ -1137,9 +1137,9 @@ namespace CalamityMod.NPCs.Cryogen
private void HandlePhaseTransition(int newPhase)
{
SoundStyle sound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : TransitionSound;
SoundStyle sound = Main.zenithWorld ? SoundID.NPCDeath14 : TransitionSound;
SoundEngine.PlaySound(sound, NPC.Center);
if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.Server && !Main.zenithWorld)
{
int chipGoreAmount = newPhase >= 5 ? 3 : newPhase >= 3 ? 2 : 1;
for (int i = 1; i < chipGoreAmount; i++)
@@ -1175,7 +1175,7 @@ namespace CalamityMod.NPCs.Cryogen
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
float compactness = NPC.width * 0.6f;
if (compactness < 10f)
@@ -1204,13 +1204,13 @@ namespace CalamityMod.NPCs.Cryogen
if (NPC.spriteDirection == 1)
spriteEffects = SpriteEffects.FlipHorizontally;
NPC.DrawBackglow(CalamityWorld.getFixedBoi ? Color.Red : BackglowColor, 4f, spriteEffects, NPC.frame, screenPos);
NPC.DrawBackglow(Main.zenithWorld ? Color.Red : BackglowColor, 4f, spriteEffects, NPC.frame, screenPos);
Vector2 origin = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2);
Vector2 drawPos = NPC.Center - screenPos;
drawPos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[NPC.type]) * NPC.scale / 2f;
drawPos += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY);
Color overlay = CalamityWorld.getFixedBoi ? Color.Red : drawColor;
Color overlay = Main.zenithWorld ? Color.Red : drawColor;
spriteBatch.Draw(texture, drawPos, NPC.frame, NPC.GetAlpha(overlay), NPC.rotation, origin, NPC.scale, spriteEffects, 0f);
return false;
@@ -1224,7 +1224,7 @@ namespace CalamityMod.NPCs.Cryogen
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.Pyrogen");
}
@@ -1232,7 +1232,7 @@ namespace CalamityMod.NPCs.Cryogen
public override void HitEffect(NPC.HitInfo hit)
{
int dusttype = CalamityWorld.getFixedBoi ? 235 : 67;
int dusttype = Main.zenithWorld ? 235 : 67;
for (int k = 0; k < 3; k++)
{
Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, hit.HitDirection, -1f, 0, default, 1f);
@@ -1257,7 +1257,7 @@ namespace CalamityMod.NPCs.Cryogen
num624 = Dust.NewDust(new Vector2(NPC.position.X, NPC.position.Y), NPC.width, NPC.height, dusttype, 0f, 0f, 100, default, 2f);
Main.dust[num624].velocity *= 2f;
}
if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.Server && !Main.zenithWorld)
{
float randomSpread = Main.rand.Next(-200, 201) / 100f;
for (int i = 1; i < 4; i++)
@@ -1370,7 +1370,7 @@ namespace CalamityMod.NPCs.Cryogen
{
if (hurtInfo.Damage > 0)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240, true);
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120, true);
+9 -9
View File
@@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.Cryogen
NPC.Opacity = 0f;
NPC.HitSound = Cryogen.HitSound;
NPC.DeathSound = BreakSound;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.Calamity().VulnerableToHeat = false;
NPC.Calamity().VulnerableToCold = true;
@@ -58,8 +58,8 @@ namespace CalamityMod.NPCs.Cryogen
public override void AI()
{
NPC.HitSound = CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : Cryogen.HitSound;
NPC.DeathSound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : BreakSound;
NPC.HitSound = Main.zenithWorld ? SoundID.NPCHit41 : Cryogen.HitSound;
NPC.DeathSound = Main.zenithWorld ? SoundID.NPCDeath14 : BreakSound;
NPC.Opacity += 0.012f;
if (NPC.Opacity > 1f)
@@ -113,7 +113,7 @@ namespace CalamityMod.NPCs.Cryogen
{
if (hurtInfo.Damage > 0)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
target.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240, true);
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120, true);
@@ -130,13 +130,13 @@ namespace CalamityMod.NPCs.Cryogen
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/Cryogen/CryogenShield").Value;
NPC.DrawBackglow(CalamityWorld.getFixedBoi ? Color.Red : Cryogen.BackglowColor, 4f, SpriteEffects.None, NPC.frame, screenPos);
NPC.DrawBackglow(Main.zenithWorld ? Color.Red : Cryogen.BackglowColor, 4f, SpriteEffects.None, NPC.frame, screenPos);
Vector2 origin = new Vector2(TextureAssets.Npc[NPC.type].Value.Width / 2, TextureAssets.Npc[NPC.type].Value.Height / Main.npcFrameCount[NPC.type] / 2);
Vector2 drawPos = NPC.Center - screenPos;
drawPos -= new Vector2(texture.Width, texture.Height / Main.npcFrameCount[NPC.type]) * NPC.scale / 2f;
drawPos += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY);
Color overlay = CalamityWorld.getFixedBoi ? Color.Red : drawColor;
Color overlay = Main.zenithWorld ? Color.Red : drawColor;
spriteBatch.Draw(texture, drawPos, NPC.frame, NPC.GetAlpha(overlay), NPC.rotation, origin, NPC.scale, SpriteEffects.None, 0f);
return false;
}
@@ -148,7 +148,7 @@ namespace CalamityMod.NPCs.Cryogen
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.PyrogenShield");
}
@@ -156,7 +156,7 @@ namespace CalamityMod.NPCs.Cryogen
public override void HitEffect(NPC.HitInfo hit)
{
int dusttype = CalamityWorld.getFixedBoi ? 235 : 67;
int dusttype = Main.zenithWorld ? 235 : 67;
for (int k = 0; k < 3; k++)
{
Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, hit.HitDirection, -1f, 0, default, 1f);
@@ -183,7 +183,7 @@ namespace CalamityMod.NPCs.Cryogen
Main.dust[num624].velocity *= 2f;
}
if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.Server && !Main.zenithWorld)
{
int totalGores = 16;
double radians = MathHelper.TwoPi / totalGores;
+1 -1
View File
@@ -169,7 +169,7 @@ namespace CalamityMod.NPCs.DesertScourge
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.Orange * drawColor.A;
return lightColor * NPC.Opacity;
+2 -2
View File
@@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.DesertScourge
NPC.Calamity().VulnerableToSickness = true;
NPC.Calamity().VulnerableToWater = true;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
NPC.scale *= 2;
}
@@ -459,7 +459,7 @@ namespace CalamityMod.NPCs.DesertScourge
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.Orange * drawColor.A;
return lightColor * NPC.Opacity;
+1 -1
View File
@@ -166,7 +166,7 @@ namespace CalamityMod.NPCs.DesertScourge
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.Orange * drawColor.A;
return lightColor * NPC.Opacity;
+2 -2
View File
@@ -173,7 +173,7 @@ namespace CalamityMod.NPCs.DesertScourge
public override void OnHitByProjectile(Projectile projectile, NPC.HitInfo hit, int damageDone)
{
// Sometimes "Deflect" projectiles in gfb into water blasts.
if (Main.rand.NextBool(20) && CalamityWorld.getFixedBoi)
if (Main.rand.NextBool(20) && Main.zenithWorld)
{
if (Main.netMode != NetmodeID.Server)
{
@@ -197,7 +197,7 @@ namespace CalamityMod.NPCs.DesertScourge
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.MediumBlue * drawColor.A;
return lightColor * NPC.Opacity;
+4 -4
View File
@@ -96,7 +96,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (Main.getGoodWorld)
NPC.scale *= 0.4f;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
NPC.scale *= 4f;
@@ -217,7 +217,7 @@ namespace CalamityMod.NPCs.DesertScourge
if (Main.netMode != NetmodeID.MultiplayerClient)
{
// become moist if in an aquatic biome
if (CalamityWorld.getFixedBoi && (player.ZoneBeach || player.Calamity().ZoneAbyss || player.Calamity().ZoneSunkenSea || player.Calamity().ZoneSulphur) && NPC.CountNPCS(ModContent.NPCType<AquaticScourgeHead>()) < 1)
if (Main.zenithWorld && (player.ZoneBeach || player.Calamity().ZoneAbyss || player.Calamity().ZoneSunkenSea || player.Calamity().ZoneSulphur) && NPC.CountNPCS(ModContent.NPCType<AquaticScourgeHead>()) < 1)
{
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + (NPC.width / 2), (int)NPC.position.Y + (NPC.height / 2), ModContent.NPCType<AquaticScourgeHead>());
NPC.active = false;
@@ -282,7 +282,7 @@ namespace CalamityMod.NPCs.DesertScourge
perturbedSpeed *= Main.rand.NextFloat() + 0.5f;
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.Normalize(perturbedSpeed) * 5f, perturbedSpeed, type, damage, 0f, Main.myPlayer);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.Normalize(perturbedSpeed) * 3f, perturbedSpeed, type2, damage, 0f, Main.myPlayer);
}
}
@@ -799,7 +799,7 @@ namespace CalamityMod.NPCs.DesertScourge
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.MediumBlue * drawColor.A;
return lightColor * NPC.Opacity;
+1 -1
View File
@@ -183,7 +183,7 @@ namespace CalamityMod.NPCs.DesertScourge
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.MediumBlue * drawColor.A;
return lightColor * NPC.Opacity;
+2 -2
View File
@@ -50,7 +50,7 @@ namespace CalamityMod.NPCs.DevourerofGods
NPC.height = 56;
NPC.defense = 70;
CalamityGlobalNPC global = NPC.Calamity();
if (!CalamityWorld.getFixedBoi)
if (!Main.zenithWorld)
{
global.DR = 0.925f;
global.unbreakableDR = true;
@@ -429,7 +429,7 @@ namespace CalamityMod.NPCs.DevourerofGods
public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers)
{
// viable???, done here since it's conditional
if (CalamityWorld.getFixedBoi && projectile.type == ModContent.ProjectileType<LaceratorYoyo>())
if (Main.zenithWorld && projectile.type == ModContent.ProjectileType<LaceratorYoyo>())
{
modifiers.SourceDamage *= 40f;
}
+3 -3
View File
@@ -391,7 +391,7 @@ namespace CalamityMod.NPCs.DevourerofGods
}
// Sound pitch
extrapitch = CalamityWorld.getFixedBoi ? 0.3f : 0f;
extrapitch = Main.zenithWorld ? 0.3f : 0f;
// Velocity variables
float fallSpeed = bossRush ? 19f : death ? 17.5f : 16f;
@@ -1571,7 +1571,7 @@ namespace CalamityMod.NPCs.DevourerofGods
if (!tail && NPC.ai[0] == 0f)
{
int Previous = NPC.whoAmI;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
maxLength = 2;
minLength = 1;
@@ -2650,7 +2650,7 @@ namespace CalamityMod.NPCs.DevourerofGods
public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers)
{
// viable???, done here since it's conditional
if (CalamityWorld.getFixedBoi && projectile.type == ModContent.ProjectileType<LaceratorYoyo>())
if (Main.zenithWorld && projectile.type == ModContent.ProjectileType<LaceratorYoyo>())
{
modifiers.SourceDamage *= 40f;
}
+2 -2
View File
@@ -384,7 +384,7 @@ namespace CalamityMod.NPCs.DevourerofGods
if (NPC.soundDelay == 0)
{
NPC.soundDelay = 8;
float extrapitch = CalamityWorld.getFixedBoi ? 0.3f : 0f;
float extrapitch = Main.zenithWorld ? 0.3f : 0f;
SoundEngine.PlaySound(CommonCalamitySounds.OtherwordlyHitSound with { Pitch = CommonCalamitySounds.OtherwordlyHitSound.Pitch + extrapitch }, NPC.Center);
}
if (NPC.life <= 0)
@@ -427,7 +427,7 @@ namespace CalamityMod.NPCs.DevourerofGods
public override void ModifyHitByProjectile(Projectile projectile, ref NPC.HitModifiers modifiers)
{
// viable???, done here since it's conditional
if (CalamityWorld.getFixedBoi && projectile.type == ModContent.ProjectileType<LaceratorYoyo>())
if (Main.zenithWorld && projectile.type == ModContent.ProjectileType<LaceratorYoyo>())
{
modifiers.SourceDamage *= 40f;
}
+2 -2
View File
@@ -1206,7 +1206,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
NPC.netSpam -= 5;
// Plasma bolts on charge
if (Main.netMode != NetmodeID.MultiplayerClient && (!(CalamityWorld.getFixedBoi && !exoMechdusa) || (CalamityWorld.LegendaryMode && revenge))) // I'm not that evil (you aren't, but I am - Fab)
if (Main.netMode != NetmodeID.MultiplayerClient && (!(Main.zenithWorld && !exoMechdusa) || (CalamityWorld.LegendaryMode && revenge))) // I'm not that evil (you aren't, but I am - Fab)
{
int totalProjectiles = bossRush ? 16 : death ? 12 : 8;
float radians = MathHelper.TwoPi / totalProjectiles;
@@ -1294,7 +1294,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
// Reset phase and variables
if (calamityGlobalNPC.newAI[2] >= maxCharges - 1)
{
if (CalamityWorld.getFixedBoi && !exoMechdusa)
if (Main.zenithWorld && !exoMechdusa)
{
pickNewLocation = NPC.localAI[2] == 0f;
calamityGlobalNPC.newAI[3] = 0f;
+1 -1
View File
@@ -969,7 +969,7 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
if (calamityGlobalNPC.newAI[2] >= deathrayTelegraphDuration + deathrayDuration)
{
if (!CalamityWorld.getFixedBoi || exoMechdusa)
if (!Main.zenithWorld || exoMechdusa)
{
AIState = (float)Phase.Normal;
calamityGlobalNPC.newAI[2] = 0f;
+1 -1
View File
@@ -1131,7 +1131,7 @@ namespace CalamityMod.NPCs.ExoMechs.Artemis
// Reset phase and variables
if (calamityGlobalNPC.newAI[2] >= deathrayTelegraphDuration + deathrayDuration)
{
if (CalamityWorld.getFixedBoi && !exoMechdusa)
if (Main.zenithWorld && !exoMechdusa)
{
calamityGlobalNPC.newAI[3] = 0f;
AIState = (float)Phase.Deathray;
+6 -6
View File
@@ -205,7 +205,7 @@ namespace CalamityMod.NPCs.ExoMechs
NPC.spriteDirection = (PlayerToFollow.Center.X < NPC.Center.X).ToDirectionInt();
// Exo Mechdusa bool setting
if (!exoMechdusa && CalamityWorld.DraedonMechdusa && CalamityWorld.getFixedBoi)
if (!exoMechdusa && CalamityWorld.DraedonMechdusa && Main.zenithWorld)
{
exoMechdusa = true;
CalamityWorld.DraedonMechdusa = false;
@@ -512,7 +512,7 @@ namespace CalamityMod.NPCs.ExoMechs
TalkTimer++;
if (ExoMechIsPresent && CalamityWorld.getFixedBoi && GeneralTimer % 60 == 0 && !exoMechdusa)
if (ExoMechIsPresent && Main.zenithWorld && GeneralTimer % 60 == 0 && !exoMechdusa)
{
SoundEngine.PlaySound(SoundID.Item33, NPC.Center);
if (Main.netMode != NetmodeID.MultiplayerClient)
@@ -535,7 +535,7 @@ namespace CalamityMod.NPCs.ExoMechs
// Define a hover destination offset if one hasn't been decided yet.
if (Main.netMode != NetmodeID.MultiplayerClient && HoverDestinationOffset == Vector2.Zero)
{
float factor = CalamityWorld.getFixedBoi && !exoMechdusa ? 300f : 700f;
float factor = Main.zenithWorld && !exoMechdusa ? 300f : 700f;
HoverDestinationOffset = -Vector2.UnitY * factor;
NPC.netUpdate = true;
}
@@ -553,8 +553,8 @@ namespace CalamityMod.NPCs.ExoMechs
offsetDirection = Main.rand.NextVector2Unit();
while (Vector2.Dot(directionToTarget, offsetDirection) > 0.2f);
float factormin = CalamityWorld.getFixedBoi && !exoMechdusa ? 300f : 750f;
float factormax = CalamityWorld.getFixedBoi && !exoMechdusa ? 700f : 1100f;
float factormin = Main.zenithWorld && !exoMechdusa ? 300f : 750f;
float factormax = Main.zenithWorld && !exoMechdusa ? 700f : 1100f;
HoverDestinationOffset = offsetDirection * Main.rand.NextFloat(factormin, factormax);
NPC.netUpdate = true;
}
@@ -883,7 +883,7 @@ namespace CalamityMod.NPCs.ExoMechs
spriteBatch.Draw(glowmask, drawPosition, frame, Color.White * NPC.Opacity, NPC.rotation, origin, NPC.scale, direction, 0f);
}
if (CalamityWorld.getFixedBoi && !HasBeenKilled && HologramEffectTimer >= HologramFadeinTime && !exoMechdusa)
if (Main.zenithWorld && !HasBeenKilled && HologramEffectTimer >= HologramFadeinTime && !exoMechdusa)
{
CalamityUtils.EnterShaderRegion(spriteBatch);
Color outlineColor = Color.Lerp(Color.Magenta, Color.White, 0.4f);
+2 -2
View File
@@ -230,7 +230,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
}
public float GetSlowdownAreaEdgeRadius(bool lastMechAlive) =>
(BossRushEvent.BossRushActive ? 400f : CalamityWorld.death ? 600f : CalamityWorld.revenge ? 700f : Main.expertMode ? 800f : 1000f) * (lastMechAlive ? 0.6f : 1f) * (CalamityWorld.getFixedBoi && !exoMechdusa ? 2 : Main.getGoodWorld ? 0.5f : 1f);
(BossRushEvent.BossRushActive ? 400f : CalamityWorld.death ? 600f : CalamityWorld.revenge ? 700f : Main.expertMode ? 800f : 1000f) * (lastMechAlive ? 0.6f : 1f) * (Main.zenithWorld && !exoMechdusa ? 2 : Main.getGoodWorld ? 0.5f : 1f);
public int CheckForOtherMechs(ref Player target, out bool exoPrimeAlive, out bool exoTwinsAlive)
{
@@ -916,7 +916,7 @@ namespace CalamityMod.NPCs.ExoMechs.Thanatos
if (calamityGlobalNPC.newAI[2] >= deathrayTelegraphDuration + deathrayDuration)
{
if (CalamityWorld.getFixedBoi && !exoMechdusa)
if (Main.zenithWorld && !exoMechdusa)
{
AIState = (float)Phase.Deathray;
}
+5 -5
View File
@@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.GreatSandShark
NPC.DeathSound = SoundID.NPCDeath1;
NPC.timeLeft = NPC.activeTime * 30;
NPC.rarity = 2;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.Calamity().VulnerableToHeat = true;
NPC.Calamity().VulnerableToSickness = false;
@@ -333,7 +333,7 @@ namespace CalamityMod.NPCs.GreatSandShark
if (spawnFlag && Main.netMode != NetmodeID.MultiplayerClient)
{
int npcType = CalamityWorld.getFixedBoi ? ModContent.NPCType<FusionFeeder>() : NPCID.SandShark;
int npcType = Main.zenithWorld ? ModContent.NPCType<FusionFeeder>() : NPCID.SandShark;
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y + 50, npcType, 0, 0f, 0f, 0f, 0f, 255);
SoundEngine.PlaySound(RoarSound, NPC.position);
}
@@ -447,7 +447,7 @@ namespace CalamityMod.NPCs.GreatSandShark
Main.dust[num624].velocity.X *= 2f;
}
int spawnX = (int)(NPC.width / 2);
int projType = CalamityWorld.getFixedBoi ? ModContent.ProjectileType<AstralMeteorProj>() : ModContent.ProjectileType<GreatSandBlast>();
int projType = Main.zenithWorld ? ModContent.ProjectileType<AstralMeteorProj>() : ModContent.ProjectileType<GreatSandBlast>();
for (int sand = 0; sand < 5; sand++)
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center.X + (float)Main.rand.Next(-spawnX, spawnX), NPC.Center.Y,
(float)Main.rand.Next(-3, 4), (float)Main.rand.Next(-12, -6), projType, 40, 0f, Main.myPlayer);
@@ -547,7 +547,7 @@ namespace CalamityMod.NPCs.GreatSandShark
NPC.rotation = MathHelper.Clamp(NPC.rotation, -0.1f, 0.1f);
}
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.Calamity().newAI[0]++;
if (NPC.Calamity().newAI[0] >= 120)
@@ -589,7 +589,7 @@ namespace CalamityMod.NPCs.GreatSandShark
}
Color color24 = NPC.GetAlpha(drawColor);
Color color25 = Lighting.GetColor((int)((double)NPC.position.X + (double)NPC.width * 0.5) / 16, (int)(((double)NPC.position.Y + (double)NPC.height * 0.5) / 16.0));
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
color24 = Color.Silver;
color25 = Color.Orange;
+1 -1
View File
@@ -67,7 +67,7 @@ namespace CalamityMod.NPCs.HiveMind
bool revenge = CalamityWorld.revenge || BossRushEvent.BossRushActive;
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
bool getFuckedAI = CalamityWorld.getFixedBoi;
bool getFuckedAI = Main.zenithWorld;
int num750 = CalamityGlobalNPC.hiveMind;
if (num750 < 0 || !Main.npc[num750].active)
+2 -2
View File
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.HiveMind
bool revenge = CalamityWorld.revenge || BossRushEvent.BossRushActive;
bool death = CalamityWorld.death || BossRushEvent.BossRushActive;
bool getFuckedAI = CalamityWorld.getFixedBoi;
bool getFuckedAI = Main.zenithWorld;
int num750 = CalamityGlobalNPC.hiveMind;
if (num750 < 0 || !Main.npc[num750].active)
@@ -195,7 +195,7 @@ namespace CalamityMod.NPCs.HiveMind
{
Dust.NewDust(NPC.position, NPC.width, NPC.height, 14, hit.HitDirection, -1f, 0, default, 1f);
}
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
//Spawn even more blobs on death
for (int i = 1; i < 3; i++)
+3 -3
View File
@@ -352,7 +352,7 @@ namespace CalamityMod.NPCs.HiveMind
}
//Spawn a Hive Cyst
if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType<HiveTumor>()) < 3)
if (Main.zenithWorld && NPC.CountNPCS(ModContent.NPCType<HiveTumor>()) < 3)
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.position.X + Main.rand.Next(NPC.width), (int)NPC.position.Y + Main.rand.Next(NPC.height), ModContent.NPCType<HiveTumor>());
}
@@ -512,7 +512,7 @@ namespace CalamityMod.NPCs.HiveMind
int maxBlobs = death ? 15 : revenge ? 7 : expertMode ? 6 : 5;
if (Main.getGoodWorld)
maxBlobs *= 2;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
maxBlobs = 50;
for (int i = 0; i < maxBlobs; i++)
@@ -1053,7 +1053,7 @@ namespace CalamityMod.NPCs.HiveMind
if (phase2)
{
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi ? NPC.CountNPCS(ModContent.NPCType<HiveBlob2>()) < 10 : (Main.rand.NextBool(15) && NPC.CountNPCS(ModContent.NPCType<HiveBlob2>()) < 2))
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld ? NPC.CountNPCS(ModContent.NPCType<HiveBlob2>()) < 10 : (Main.rand.NextBool(15) && NPC.CountNPCS(ModContent.NPCType<HiveBlob2>()) < 2))
{
Vector2 spawnAt = NPC.Center + new Vector2(0f, NPC.height / 2f);
NPC.NewNPC(NPC.GetSource_FromThis(), (int)spawnAt.X, (int)spawnAt.Y, ModContent.NPCType<HiveBlob2>());
+1 -1
View File
@@ -59,7 +59,7 @@ namespace CalamityMod.NPCs.HiveMind
{
float timeToSpawn = 120f;
if (CalamityWorld.getFixedBoi && NPC.AnyNPCs(ModContent.NPCType<HiveMind>()))
if (Main.zenithWorld && NPC.AnyNPCs(ModContent.NPCType<HiveMind>()))
{
//Passively spawns random enemies
NPC.ai[0]++;
+3 -3
View File
@@ -77,7 +77,7 @@ namespace CalamityMod.NPCs.Leviathan
if (Main.getGoodWorld)
NPC.scale *= 0.8f;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
NPC.scale *= 4f;
}
@@ -336,7 +336,7 @@ namespace CalamityMod.NPCs.Leviathan
}
// Play sound
float extrapitch = CalamityWorld.getFixedBoi ? -0.5f : 0;
float extrapitch = Main.zenithWorld ? -0.5f : 0;
if (Main.rand.NextBool(300))
SoundEngine.PlaySound(SoundID.Zombie35 with { Pitch = SoundID.Zombie35.Pitch + extrapitch}, NPC.Center);
@@ -585,7 +585,7 @@ namespace CalamityMod.NPCs.Leviathan
{
NPC.rotation = NPC.velocity.X * 0.02f;
float basey = CalamityWorld.getFixedBoi ? -100 : -350;
float basey = Main.zenithWorld ? -100 : -350;
Vector2 targetVector = player.Center + new Vector2(0f, basey) * NPC.scale;
float velocity = death ? 13.5f : 12f;
velocity += 6f * enrageScale;
+1 -1
View File
@@ -255,7 +255,7 @@ namespace CalamityMod.NPCs.Leviathan
Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart);
// Explode into bubbles on gfb
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
if (Main.netMode != NetmodeID.MultiplayerClient)
{
+5 -5
View File
@@ -86,7 +86,7 @@ namespace CalamityMod.NPCs.Leviathan
if (Main.getGoodWorld)
NPC.scale *= 1.3f;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
NPC.scale *= 0.3f;
}
@@ -173,7 +173,7 @@ namespace CalamityMod.NPCs.Leviathan
if (soundDelay > 0)
soundDelay--;
extrapitch = CalamityWorld.getFixedBoi ? 0.3f : 0f;
extrapitch = Main.zenithWorld ? 0.3f : 0f;
if (Main.rand.NextBool(600) && !spawnAnimation)
SoundEngine.PlaySound(((sirenAlive && !death) ? soundChoice : soundChoiceRage) with { Pitch = soundChoice.Pitch + extrapitch }, vector);
@@ -395,7 +395,7 @@ namespace CalamityMod.NPCs.Leviathan
vector40.X += num415 * 4f;
vector40.Y += num416 * 4f;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
type = (CalamityWorld.LegendaryMode && CalamityWorld.revenge) ? ProjectileID.BouncyBoulder : ProjectileID.Boulder;
vector40.Y -= 5; //Shoot a bit more up since boulders are affected by gravity
@@ -403,7 +403,7 @@ namespace CalamityMod.NPCs.Leviathan
}
int proj = Projectile.NewProjectile(NPC.GetSource_FromAI(), vector40.X, vector40.Y, num415, num416, type, damage, 0f, Main.myPlayer);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
Main.projectile[proj].scale *= 5f;
if (soundDelay <= 0)
@@ -516,7 +516,7 @@ namespace CalamityMod.NPCs.Leviathan
return;
}
float gfbchargeboost = CalamityWorld.getFixedBoi ? 1100 : 0;
float gfbchargeboost = Main.zenithWorld ? 1100 : 0;
float chargeDistance = ((sirenAlive && !phase4) ? 1100f : 900f) * NPC.scale + gfbchargeboost;
chargeDistance -= 50f * enrageScale;
if (!sirenAlive || phase4)
+1 -1
View File
@@ -82,7 +82,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = "YuH";
}
+4 -4
View File
@@ -68,7 +68,7 @@ namespace CalamityMod.NPCs.NormalNPCs
}
if (flag)
{
if (!CalamityWorld.getFixedBoi)
if (!Main.zenithWorld)
{
NPC.life = 0;
NPC.HitEffect(0, 10.0);
@@ -115,7 +115,7 @@ namespace CalamityMod.NPCs.NormalNPCs
num6 *= num8;
num7 *= num8;
int num9 = 30;
int num10 = CalamityWorld.getFixedBoi ? ModContent.ProjectileType<ProvidenceCrystalShard>() : ProjectileID.SaucerScrap;
int num10 = Main.zenithWorld ? ModContent.ProjectileType<ProvidenceCrystalShard>() : ProjectileID.SaucerScrap;
vector.X += num6 * 5f;
vector.Y += num7 * 5f;
Projectile.NewProjectile(NPC.GetSource_FromAI(), vector.X, vector.Y, num6, num7, num10, num9, 0f, Main.myPlayer, 0f, 0f);
@@ -182,7 +182,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.MechanizedSerpent");
}
@@ -190,7 +190,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.Orange * drawColor.A;
return lightColor * NPC.Opacity;
+5 -5
View File
@@ -189,7 +189,7 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.localAI[1] = 0f;
}
float num17 = death ? 13.5f : 10f;
if (Main.player[NPC.target].dead || (!CalamityWorld.getFixedBoi && (double)Main.player[NPC.target].position.Y < Main.rockLayer * 16.0))
if (Main.player[NPC.target].dead || (!Main.zenithWorld && (double)Main.player[NPC.target].position.Y < Main.rockLayer * 16.0))
{
flag2 = false;
NPC.velocity.Y = NPC.velocity.Y + 1f;
@@ -459,13 +459,13 @@ namespace CalamityMod.NPCs.NormalNPCs
npcLoot.Add(ModContent.ItemType<DemonicBoneAsh>(), 1, 2, 4);
npcLoot.Add(ModContent.ItemType<MysteriousCircuitry>(), 1, 4, 8);
npcLoot.Add(ModContent.ItemType<DubiousPlating>(), 1, 4, 8);
npcLoot.AddIf(() => CalamityWorld.getFixedBoi, ModContent.ItemType<UnholyEssence>(), 1, 3, 6);
npcLoot.AddIf(() => CalamityWorld.getFixedBoi, ModContent.ItemType<SanctifiedSpark>(), 10);
npcLoot.AddIf(() => Main.zenithWorld, ModContent.ItemType<UnholyEssence>(), 1, 3, 6);
npcLoot.AddIf(() => Main.zenithWorld, ModContent.ItemType<SanctifiedSpark>(), 10);
}
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.MechanizedSerpent");
}
@@ -473,7 +473,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.Orange * drawColor.A;
return lightColor * NPC.Opacity;
+3 -3
View File
@@ -65,7 +65,7 @@ namespace CalamityMod.NPCs.NormalNPCs
{
flag = true;
}
if (flag && !CalamityWorld.getFixedBoi)
if (flag && !Main.zenithWorld)
{
NPC.life = 0;
NPC.HitEffect(0, 10.0);
@@ -130,7 +130,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.MechanizedSerpent");
}
@@ -138,7 +138,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override Color? GetAlpha(Color drawColor)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
Color lightColor = Color.Orange * drawColor.A;
return lightColor * NPC.Opacity;
+1 -1
View File
@@ -107,7 +107,7 @@ namespace CalamityMod.NPCs.NormalNPCs
{
num823 = 4f;
}
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
num823 = 8f;
}
+1 -1
View File
@@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.NormalNPCs
{
if (NPC.ai[0] == 0f)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
SoundEngine.PlaySound(SoundID.ScaryScream, Main.player[NPC.target].Center);
}
+1 -1
View File
@@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.NormalNPCs
else
NPC.velocity.Y = 12f;
}
if (!CalamityWorld.getFixedBoi)
if (!Main.zenithWorld)
SoundEngine.PlaySound(JumpSound, NPC.Center);
}
NPC.netUpdate = true;
+2 -2
View File
@@ -40,7 +40,7 @@ namespace CalamityMod.NPCs.NormalNPCs
AIType = -1;
NPC.value = Item.buyPrice(0, 0, 5, 0);
NPC.HitSound = SoundID.NPCHit50;
NPC.DeathSound = CalamityWorld.getFixedBoi ? AresGaussNuke.NukeExplosionSound : DeathSound;
NPC.DeathSound = Main.zenithWorld ? AresGaussNuke.NukeExplosionSound : DeathSound;
NPC.knockBackResist = 0.7f;
Banner = NPC.type;
BannerItem = ModContent.ItemType<SunskaterBanner>();
@@ -243,7 +243,7 @@ namespace CalamityMod.NPCs.NormalNPCs
{
Dust.NewDust(NPC.position, NPC.width, NPC.height, 64, hit.HitDirection, -1f, 0, default, 1f);
}
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
float screenShakePower = 16 * Utils.GetLerpValue(1300f, 0f, NPC.Distance(Main.LocalPlayer.Center), true);
if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower)
+2 -2
View File
@@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override bool PreAI()
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
deathCounter++;
// If you don't attack the Dummy for a minute in gfb, it becomes sentient
@@ -63,7 +63,7 @@ namespace CalamityMod.NPCs.NormalNPCs
NPC.lifeRegen += 2000000;
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot) => CalamityWorld.getFixedBoi;
public override bool CanHitPlayer(Player target, ref int cooldownSlot) => Main.zenithWorld;
public override bool? DrawHealthBar(byte hbPosition, ref float scale, ref Vector2 position) => false;
+1 -1
View File
@@ -395,7 +395,7 @@ namespace CalamityMod.NPCs.NormalNPCs
texture = ModContent.Request<Texture2D>(Texture).Value;
Main.EntitySpriteDraw(texture, NPC.Center - screenPos, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, NPC.frame.Size() * 0.5f, NPC.scale, direction, 0);
}
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
// I ran out of ideas, so Cloud just gets a hat like how I wanted GSS to
Texture2D hattexture = ModContent.Request<Texture2D>("CalamityMod/Particles/WulfrumHat").Value;
+2 -2
View File
@@ -78,7 +78,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void ModifyNPCLoot(NPCLoot npcLoot) => npcLoot.Add(ModContent.ItemType<EffulgentFeather>(), 1, 5, 7);
public override void OnKill()
{
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
SoundEngine.PlaySound(CommonCalamitySounds.LightningSound, NPC.Center - Vector2.UnitY * 300f);
for (int i = 0; i < 5; i++)
@@ -95,7 +95,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void FindFrame(int frameHeight)
{
NPC.frameCounter += NPC.ai[0] == 2.1f ? 1.5 : 1D;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.frameCounter += 2D;
}
+1 -1
View File
@@ -79,7 +79,7 @@ namespace CalamityMod.NPCs.NormalNPCs
public override void FindFrame(int frameHeight)
{
NPC.frameCounter++;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.frameCounter += 1;
}
+2 -2
View File
@@ -126,7 +126,7 @@ namespace CalamityMod.NPCs.OldDuke
public override void ModifyTypeName(ref string typeName)
{
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
typeName = CalamityUtils.GetTextValue("NPCs.BoomerDuke");
}
@@ -476,7 +476,7 @@ namespace CalamityMod.NPCs.OldDuke
if (hurtInfo.Damage > 0)
{
target.AddBuff(ModContent.BuffType<Irradiated>(), 480);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
target.AddBuff(BuffID.Rabies, Main.rand.Next(180, 601));
}
+1 -1
View File
@@ -194,7 +194,7 @@ namespace CalamityMod.NPCs.OldDuke
}
}
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
if (Main.netMode != NetmodeID.MultiplayerClient)
{
+1 -1
View File
@@ -201,7 +201,7 @@ namespace CalamityMod.NPCs.Perforator
if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2)
Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart);
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
int type = ModContent.ProjectileType<IchorBlob>();
int damage = NPC.GetProjectileDamage(type);
+1 -1
View File
@@ -308,7 +308,7 @@ namespace CalamityMod.NPCs.Perforator
int type = ModContent.ProjectileType<DoGDeath>();
int damage = NPC.GetProjectileDamage(type);
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
NPC.Calamity().newAI[3]++;
if (NPC.Calamity().newAI[3] > 180f) //Effectively 10 seconds but give a little headstart in case players kill it too fast
+1 -1
View File
@@ -470,7 +470,7 @@ namespace CalamityMod.NPCs.Perforator
if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2)
Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart);
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
int type = ModContent.ProjectileType<IchorBlob>();
int damage = NPC.GetProjectileDamage(type);
+1 -1
View File
@@ -274,7 +274,7 @@ namespace CalamityMod.NPCs.Perforator
}
}
if (CalamityWorld.getFixedBoi && CalamityGlobalNPC.perfHive >= 0)
if (Main.zenithWorld && CalamityGlobalNPC.perfHive >= 0)
NPC.ai[0]++;
//GFB movement
+1 -1
View File
@@ -192,7 +192,7 @@ namespace CalamityMod.NPCs.Perforator
if (Main.rand.NextBool(4) && Main.player[closestPlayer].statLife < Main.player[closestPlayer].statLifeMax2)
Item.NewItem(NPC.GetSource_Loot(), (int)NPC.position.X, (int)NPC.position.Y, NPC.width, NPC.height, ItemID.Heart);
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
if (Main.netMode != NetmodeID.MultiplayerClient && Main.zenithWorld)
{
int type = ModContent.ProjectileType<IchorBlob>();
int damage = NPC.GetProjectileDamage(type);
+1 -1
View File
@@ -57,7 +57,7 @@ namespace CalamityMod.NPCs.PlagueEnemies
BannerItem = ModContent.ItemType<PlaguebringerBanner>();
NPC.Calamity().VulnerableToSickness = false;
NPC.Calamity().VulnerableToElectricity = true;
if (CalamityWorld.getFixedBoi)
if (Main.zenithWorld)
{
NPC.scale = 2f;
}
@@ -217,7 +217,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
SoundEngine.PlaySound(SoundID.Item14, NPC.Center);
NPC.position.X = NPC.position.X + (float)(NPC.width / 2);
NPC.position.Y = NPC.position.Y + (float)(NPC.height / 2);
NPC.width = NPC.height = CalamityWorld.getFixedBoi ? 300 : 216;
NPC.width = NPC.height = Main.zenithWorld ? 300 : 216;
NPC.position.X = NPC.position.X - (float)(NPC.width / 2);
NPC.position.Y = NPC.position.Y - (float)(NPC.height / 2);
for (int num621 = 0; num621 < 15; num621++)
@@ -247,7 +247,7 @@ namespace CalamityMod.NPCs.PlaguebringerGoliath
{
if (hurtInfo.Damage > 0)
{
if (CalamityWorld.getFixedBoi) // it is the plague, you get very sick.
if (Main.zenithWorld) // it is the plague, you get very sick.
{
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 240, true);
target.AddBuff(BuffID.Poisoned, 240, true);
Loaded 100 of 190 files, more files were not shown because too many files have changed in this diff. Show more