Merge conflicts addressed.
No files matched your search
@@ -11,8 +11,8 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
public class SulphurousSeaBiome : ModBiome
|
||||
{
|
||||
public override ModWaterStyle WaterStyle => CalamityMod.Instance.legendaryMode ? ModContent.Find<ModWaterStyle>("CalamityMod/PissWater") : ModContent.Find<ModWaterStyle>("CalamityMod/SulphuricWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => CalamityMod.Instance.legendaryMode ?ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/PissSeaSurfaceBGStyle") : ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/SulphurSeaSurfaceBGStyle");
|
||||
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 SceneEffectPriority Priority => SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/SulphurousSeaIcon";
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/SulphurBG";
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
(enrage ? "\nYour weakened life force fuels your desperate attacks" : "");
|
||||
}
|
||||
}
|
||||
else if (DownedBossSystem.downedSCal && DownedBossSystem.downedExoMechs)
|
||||
else if (DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs)
|
||||
{
|
||||
tip = "Your profaned soul is constrained by your insufficient summoning powers";
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Buffs.Summon
|
||||
Player player = Main.player[Main.myPlayer];
|
||||
bool offense = player.Calamity().gOffense;
|
||||
bool defense = player.Calamity().gDefense;
|
||||
if (player.Calamity().profanedCrystal && (!player.Calamity().profanedCrystalBuffs && (!DownedBossSystem.downedSCal || !DownedBossSystem.downedExoMechs)))
|
||||
if (player.Calamity().profanedCrystal && (!player.Calamity().profanedCrystalBuffs && (!DownedBossSystem.downedCalamitas || !DownedBossSystem.downedExoMechs)))
|
||||
{
|
||||
tip = "The Profaned Babs will accompany you!";
|
||||
}
|
||||
|
||||
@@ -3455,7 +3455,7 @@ namespace CalamityMod.CalPlayer
|
||||
public override bool CanSellItem(NPC vendor, Item[] shopInventory, Item item)
|
||||
{
|
||||
if (item.type == ModContent.ItemType<ProfanedSoulCrystal>())
|
||||
return DownedBossSystem.downedSCal; //no easy moneycoins for post doggo/yhar
|
||||
return DownedBossSystem.downedCalamitas; //no easy moneycoins for post doggo/yhar
|
||||
return base.CanSellItem(vendor, shopInventory, item);
|
||||
}
|
||||
|
||||
@@ -6416,7 +6416,7 @@ namespace CalamityMod.CalPlayer
|
||||
price += Item.buyPrice(0, 1, 20, 0);
|
||||
else if (NPC.downedGolemBoss)
|
||||
price += Item.buyPrice(0, 0, 90, 0);
|
||||
else if (NPC.downedPlantBoss || DownedBossSystem.downedCalamitas)
|
||||
else if (NPC.downedPlantBoss || DownedBossSystem.downedCalamitasClone)
|
||||
price += Item.buyPrice(0, 0, 60, 0);
|
||||
else if (NPC.downedMechBossAny)
|
||||
price += Item.buyPrice(0, 0, 40, 0);
|
||||
|
||||
@@ -438,7 +438,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
|
||||
if (Player.FindBuffIndex(BuffID.Gills) > -1 && DownedBossSystem.downedCalamitas && (attempt.legendary || (attempt.veryrare && Main.rand.NextBool())))
|
||||
if (Player.FindBuffIndex(BuffID.Gills) > -1 && DownedBossSystem.downedCalamitasClone && (attempt.legendary || (attempt.veryrare && Main.rand.NextBool())))
|
||||
{
|
||||
itemDrop = ModContent.ItemType<Floodtide>();
|
||||
}
|
||||
|
||||
@@ -170,7 +170,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
float ASPoisonLevel = 0f;
|
||||
if (CalamityGlobalNPC.aquaticScourge >= 0 && CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityGlobalNPC.aquaticScourge >= 0 && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
NPC AS = Main.npc[CalamityGlobalNPC.aquaticScourge];
|
||||
//if the player is 50 blocks or more away from the head
|
||||
|
||||
@@ -937,7 +937,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.GetCritChance<GenericDamageClass>() += critUp;
|
||||
}
|
||||
|
||||
bool canProvideBuffs = profanedCrystalBuffs || (!profanedCrystal && pArtifact) || (profanedCrystal && DownedBossSystem.downedSCal && DownedBossSystem.downedExoMechs);
|
||||
bool canProvideBuffs = profanedCrystalBuffs || (!profanedCrystal && pArtifact) || (profanedCrystal && DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs);
|
||||
bool attack = Player.ownedProjectileCounts[ModContent.ProjectileType<MiniGuardianAttack>()] > 0;
|
||||
|
||||
// Guardian bonuses if not burnt out
|
||||
|
||||
@@ -25,7 +25,7 @@ using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Crags;
|
||||
|
||||
@@ -27,7 +27,7 @@ using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
@@ -109,9 +109,6 @@ namespace CalamityMod
|
||||
public const float velocityScaleMin = 0.5f;
|
||||
public const float bitingEnemeyVelocityScale = 0.8f;
|
||||
|
||||
// TODO -- Once the Zenith seed is available, replace all instance of this with Main.zenithWorld
|
||||
internal bool legendaryMode => Main.getGoodWorld && Main.masterMode;
|
||||
|
||||
// Life steal cap
|
||||
public const int lifeStealCap = 10;
|
||||
|
||||
|
||||
@@ -4,7 +4,7 @@ using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
|
||||
@@ -8,7 +8,7 @@ using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
|
||||
@@ -77,7 +77,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> tooltips)
|
||||
{
|
||||
bool scal = DownedBossSystem.downedSCal;
|
||||
bool scal = DownedBossSystem.downedCalamitas;
|
||||
bool draedon = DownedBossSystem.downedExoMechs;
|
||||
if (!scal || !draedon)
|
||||
{
|
||||
@@ -163,7 +163,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
internal static void DetermineTransformationEligibility(Player player)
|
||||
{
|
||||
if (DownedBossSystem.downedSCal && DownedBossSystem.downedExoMechs && (player.maxMinions - player.slotsMinions) >= 10 && !player.Calamity().profanedCrystalForce && player.HasBuff<ProfanedCrystalBuff>())
|
||||
if (DownedBossSystem.downedCalamitas && DownedBossSystem.downedExoMechs && (player.maxMinions - player.slotsMinions) >= 10 && !player.Calamity().profanedCrystalForce && player.HasBuff<ProfanedCrystalBuff>())
|
||||
{
|
||||
player.Calamity().profanedCrystalBuffs = true;
|
||||
}
|
||||
|
||||
@@ -66,7 +66,7 @@ namespace CalamityMod.Items.Accessories
|
||||
numBosses += NPC.downedMechBoss2.ToInt();
|
||||
numBosses += DownedBossSystem.downedBrimstoneElemental.ToInt();
|
||||
numBosses += NPC.downedMechBoss3.ToInt();
|
||||
numBosses += DownedBossSystem.downedCalamitas.ToInt();
|
||||
numBosses += DownedBossSystem.downedCalamitasClone.ToInt();
|
||||
numBosses += NPC.downedPlantBoss.ToInt(); // 20
|
||||
numBosses += DownedBossSystem.downedLeviathan.ToInt();
|
||||
numBosses += DownedBossSystem.downedAstrumAureus.ToInt();
|
||||
@@ -89,7 +89,7 @@ namespace CalamityMod.Items.Accessories
|
||||
numBosses += DownedBossSystem.downedDoG.ToInt();
|
||||
numBosses += DownedBossSystem.downedYharon.ToInt(); // 40
|
||||
numBosses += DownedBossSystem.downedExoMechs.ToInt();
|
||||
numBosses += DownedBossSystem.downedSCal.ToInt();
|
||||
numBosses += DownedBossSystem.downedCalamitas.ToInt();
|
||||
return numBosses / (float)TotalCountedBosses;
|
||||
}
|
||||
|
||||
|
||||
@@ -314,8 +314,7 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
|
||||
public override void ModifyWeaponDamage(Item item, ref StatModifier damage)
|
||||
{
|
||||
// Prismatic Breaker is a weird hybrid melee-ranged weapon so include it too. Why are you using desert prowler post-Yharon? don't ask me
|
||||
if (desertProwlerSet && (item.CountsAsClass<RangedDamageClass>() || item.type == ModContent.ItemType<PrismaticBreaker>()) && item.ammo == AmmoID.None)
|
||||
if (desertProwlerSet && item.CountsAsClass<RangedDamageClass>() && item.ammo == AmmoID.None)
|
||||
damage.Flat += 1f;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Fishing.SulphurCatches
|
||||
{
|
||||
// The contents of this crate depend massively on progression, so it uses a large number of LeadingConditionRules.
|
||||
var tier1AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedSlimeGod || Main.hardMode);
|
||||
var tier2AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitas);
|
||||
var tier2AbyssAvailable = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitasClone);
|
||||
var scoriaAvailable = itemLoot.DefineConditionalDropSet(() => NPC.downedGolemBoss);
|
||||
var tier1AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedEoCAcidRain);
|
||||
var tier2AcidRain = itemLoot.DefineConditionalDropSet(() => DownedBossSystem.downedAquaticScourgeAcidRain);
|
||||
|
||||
@@ -32,7 +32,7 @@ I know not how it wields her brimstone magic. Perhaps some day one of us may fin
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CalamitasTrophy>().
|
||||
AddIngredient<CalamitasCloneTrophy>().
|
||||
AddTile(TileID.Bookcases).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Materials
|
||||
ItemID.Sets.ItemNoGravity[Item.type] = true;
|
||||
|
||||
DisplayName.SetDefault("Yharon Soul Fragment");
|
||||
Tooltip.SetDefault("A shard of a godly soul");
|
||||
Tooltip.SetDefault("A shard of a draconic Auric Soul");
|
||||
}
|
||||
|
||||
public override void Update(ref float gravity, ref float maxFallSpeed)
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
using CalamityMod.Tiles.Furniture.BossTrophies;
|
||||
using CalamityMod.Tiles.Furniture.BossTrophies;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Furniture.Trophies
|
||||
{
|
||||
public class CalamitasTrophy : ModItem
|
||||
[LegacyName("CalamitasTrophy")]
|
||||
public class CalamitasCloneTrophy : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Calamitas Trophy");
|
||||
DisplayName.SetDefault("Calamitas Clone Trophy");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -25,7 +26,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies
|
||||
Item.consumable = true;
|
||||
Item.value = 50000;
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.createTile = ModContent.TileType<CalamitasTrophyTile>();
|
||||
Item.createTile = ModContent.TileType<CalamitasCloneTrophyTile>();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 736 B After Width: | Height: | Size: 736 B |
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Tiles.Furniture.BossTrophies;
|
||||
using CalamityMod.Tiles.Furniture.BossTrophies;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.Furniture.Trophies
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Items.Placeables.Furniture.Trophies
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Supreme Calamitas Trophy");
|
||||
DisplayName.SetDefault("Calamitas Trophy");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
/*using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
@@ -56,4 +56,4 @@ namespace CalamityMod.Items.Potions
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}*/
|
||||
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Ceremonial Urn");
|
||||
Tooltip.SetDefault("Use at the Altar of the Accursed to summon Supreme Calamitas\n" + "Not consumable");
|
||||
Tooltip.SetDefault("Use at the Altar of the Accursed to summon the Supreme Witch, Calamitas\n" + "Not consumable");
|
||||
ItemID.Sets.SortingPriorityBossSpawns[Type] = 17; // Celestial Sigil
|
||||
}
|
||||
|
||||
|
||||
@@ -1,10 +1,11 @@
|
||||
using CalamityMod.Events;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
@@ -58,7 +59,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 = CalamityMod.Instance.legendaryMode ? Color.Red : Color.White;
|
||||
Color overlay = CalamityWorld.getFixedBoi ? Color.Red : Color.White;
|
||||
spriteBatch.Draw(texture, position, null, overlay, 0f, origin, scale, 0, 0);
|
||||
return false;
|
||||
}
|
||||
@@ -66,7 +67,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 = CalamityMod.Instance.legendaryMode ? Color.Red : lightColor;
|
||||
Color overlay = CalamityWorld.getFixedBoi ? Color.Red : lightColor;
|
||||
spriteBatch.Draw(texture, Item.position - Main.screenPosition, null, overlay, 0f, Vector2.Zero, 1f, 0, 0);
|
||||
return false;
|
||||
}
|
||||
@@ -77,7 +78,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 (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
name.Text = "Pyro Key";
|
||||
line0.Text = "Summons Cryogen when used in the tundra...?";
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
@@ -28,7 +29,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Eye of Desolation");
|
||||
Tooltip.SetDefault("Tonight is going to be a horrific night...\n" +
|
||||
"Summons Calamitas when used during nighttime\n" +
|
||||
"Summons the Calamitas Clone when used during nighttime\n" +
|
||||
"Enrages during the day\n" +
|
||||
"Not consumable");
|
||||
ItemID.Sets.SortingPriorityBossSpawns[Type] = 10; // Pirate Map
|
||||
@@ -63,7 +64,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
else
|
||||
NetMessage.SendData(MessageID.SpawnBoss, -1, -1, null, player.whoAmI, ModContent.NPCType<CalamitasClone>());
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
safeBox.X = spawnX = spawnXReset = (int)(player.Center.X - 1250f);
|
||||
spawnX2 = spawnXReset2 = (int)(player.Center.X + 1250f);
|
||||
@@ -109,7 +110,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
Player player = Main.LocalPlayer;
|
||||
TooltipLine line3 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2");
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
line3.Text = "Creates a square arena of blocks, with you at its center\nEnrages during the day";
|
||||
}
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
using CalamityMod.Events;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.NPCs.ProfanedGuardians;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
@@ -41,7 +42,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !NPC.AnyNPCs(ModContent.NPCType<ProfanedGuardianCommander>()) && (Main.dayTime || CalamityMod.Instance.legendaryMode) && (player.ZoneHallow || player.ZoneUnderworldHeight) && !BossRushEvent.BossRushActive;
|
||||
return !NPC.AnyNPCs(ModContent.NPCType<ProfanedGuardianCommander>()) && (Main.dayTime || CalamityWorld.getFixedBoi) && (player.ZoneHallow || player.ZoneUnderworldHeight) && !BossRushEvent.BossRushActive;
|
||||
}
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
@@ -59,7 +60,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
Player player = Main.LocalPlayer;
|
||||
TooltipLine line1 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1");
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
line1.Text = "Summons the Profaned Guardians when used in the Hallow or Underworld";
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.NPCs.GreatSandShark;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.NPCs.GreatSandShark;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
@@ -38,7 +39,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return player.ZoneDesert && !(CalamityMod.Instance.legendaryMode && !player.Calamity().ZoneAstral) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark>());
|
||||
return player.ZoneDesert && !(CalamityWorld.getFixedBoi && !player.Calamity().ZoneAstral) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark>());
|
||||
}
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
@@ -57,7 +58,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
Player player = Main.LocalPlayer;
|
||||
TooltipLine line0 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
line0.Text = "Summons the Great Sand Shark when used in the astral desert";
|
||||
}
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -24,8 +24,8 @@ namespace CalamityMod.Items.SummonItems
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.width = CalamityMod.Instance.legendaryMode ? 54 : 28;
|
||||
Item.height = CalamityMod.Instance.legendaryMode ? 78 : 28;
|
||||
Item.width = CalamityWorld.getFixedBoi ? 54 : 28;
|
||||
Item.height = CalamityWorld.getFixedBoi ? 78 : 28;
|
||||
Item.useAnimation = 45;
|
||||
Item.useTime = 45;
|
||||
Item.channel = true;
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool PreDrawInInventory(SpriteBatch spriteBatch, Vector2 position, Rectangle frameI, Color drawColor, Color itemColor, Vector2 origin, float scale)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Items/SummonItems/Terminus_GFB").Value;
|
||||
Color overlay = Color.White;
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
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);
|
||||
@@ -65,7 +65,7 @@ namespace CalamityMod.Items.SummonItems
|
||||
Player player = Main.LocalPlayer;
|
||||
TooltipLine name = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "ItemName");
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
name.Text = "Ogscule";
|
||||
}
|
||||
|
||||
@@ -9,18 +9,18 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.SummonItems
|
||||
{
|
||||
[LegacyName("ChickenEgg")]
|
||||
public class JungleDragonEgg : ModItem
|
||||
[LegacyName("ChickenEgg", "JungleDragonEgg")]
|
||||
public class YharonEgg : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 1;
|
||||
DisplayName.SetDefault("Jungle Dragon Egg");
|
||||
Tooltip.SetDefault("An imitation of the egg that bore the loyal guardian of the tyrant king\n" +
|
||||
"Summons Jungle Dragon, Yharon when used in the Jungle\n" +
|
||||
DisplayName.SetDefault("Blessed Phoenix Egg");
|
||||
Tooltip.SetDefault("An effigy of a Phoenix Dragon egg, used in worship\n" +
|
||||
"Summons Yharon, Stalwart Defender\n" +
|
||||
"Enrages outside the fire walls\n" +
|
||||
"Not consumable");
|
||||
ItemID.Sets.SortingPriorityBossSpawns[Type] = 17; // Celestial Sigil
|
||||
ItemID.Sets.SortingPriorityBossSpawns[Type] = 17; // Celestial Sigil
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -34,14 +34,14 @@ namespace CalamityMod.Items.SummonItems
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossItem;
|
||||
}
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossItem;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return player.ZoneJungle && !NPC.AnyNPCs(ModContent.NPCType<Yharon>()) && !BossRushEvent.BossRushActive;
|
||||
return !NPC.AnyNPCs(ModContent.NPCType<Yharon>()) && !BossRushEvent.BossRushActive;
|
||||
}
|
||||
|
||||
public override bool? UseItem(Player player)
|
||||
|
Before Width: | Height: | Size: 701 B After Width: | Height: | Size: 701 B |
@@ -6,7 +6,7 @@ using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -16,14 +16,15 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.TreasureBags
|
||||
{
|
||||
public class CalamitasBag : ModItem
|
||||
[LegacyName("CalamitasBag")]
|
||||
public class CalamitasCloneBag : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 3;
|
||||
DisplayName.SetDefault("Treasure Bag (Calamitas)");
|
||||
DisplayName.SetDefault("Treasure Bag (Calamitas Clone)");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
|
||||
ItemID.Sets.BossBag[Item.type] = true;
|
||||
ItemID.Sets.BossBag[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -36,14 +37,14 @@ namespace CalamityMod.Items.TreasureBags
|
||||
Item.expert = true;
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossBags;
|
||||
}
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossBags;
|
||||
}
|
||||
|
||||
public override bool CanRightClick() => true;
|
||||
|
||||
public override Color? GetAlpha(Color lightColor) => Color.Lerp(lightColor, Color.White, 0.4f);
|
||||
public override Color? GetAlpha(Color lightColor) => Color.Lerp(lightColor, Color.White, 0.4f);
|
||||
|
||||
public override void PostUpdate() => Item.TreasureBagLightAndDust();
|
||||
|
||||
@@ -54,8 +55,8 @@ namespace CalamityMod.Items.TreasureBags
|
||||
|
||||
public override void ModifyItemLoot(ItemLoot itemLoot)
|
||||
{
|
||||
// Money
|
||||
itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<CalamitasClone>()));
|
||||
// Money
|
||||
itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<CalamitasClone>()));
|
||||
|
||||
// Materials
|
||||
itemLoot.Add(ModContent.ItemType<AshesofCalamity>(), 1, 30, 35);
|
||||
|
Before Width: | Height: | Size: 727 B After Width: | Height: | Size: 727 B |
@@ -18,15 +18,15 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.TreasureBags
|
||||
{
|
||||
[LegacyName("SCalBag")]
|
||||
public class SupremeCalamitasCoffer : ModItem
|
||||
[LegacyName("SCalBag", "SupremeCalamitasCoffer")]
|
||||
public class CalamitasCoffer : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
SacrificeTotal = 3;
|
||||
DisplayName.SetDefault("Treasure Coffer (Supreme Calamitas)");
|
||||
DisplayName.SetDefault("Treasure Coffer (Calamitas)");
|
||||
Tooltip.SetDefault("{$CommonItemTooltip.RightClickToOpen}");
|
||||
ItemID.Sets.BossBag[Item.type] = true;
|
||||
ItemID.Sets.BossBag[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -39,14 +39,14 @@ namespace CalamityMod.Items.TreasureBags
|
||||
Item.expert = true;
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossBags;
|
||||
}
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
{
|
||||
itemGroup = ContentSamples.CreativeHelper.ItemGroup.BossBags;
|
||||
}
|
||||
|
||||
public override bool CanRightClick() => true;
|
||||
|
||||
public override Color? GetAlpha(Color lightColor) => Color.Lerp(lightColor, Color.White, 0.4f);
|
||||
public override Color? GetAlpha(Color lightColor) => Color.Lerp(lightColor, Color.White, 0.4f);
|
||||
|
||||
public override void PostUpdate() => Item.TreasureBagLightAndDust();
|
||||
|
||||
@@ -57,8 +57,8 @@ namespace CalamityMod.Items.TreasureBags
|
||||
|
||||
public override void ModifyItemLoot(ItemLoot itemLoot)
|
||||
{
|
||||
// Money
|
||||
itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<SupremeCalamitas>()));
|
||||
// Money
|
||||
itemLoot.Add(ItemDropRule.CoinsBasedOnNPCValue(ModContent.NPCType<SupremeCalamitas>()));
|
||||
|
||||
// Materials
|
||||
itemLoot.Add(ModContent.ItemType<AshesofAnnihilation>(), 1, 30, 40);
|
||||
|
Before Width: | Height: | Size: 605 B After Width: | Height: | Size: 605 B |
@@ -1,8 +1,9 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
@@ -47,17 +48,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 && CalamityMod.Instance.legendaryMode)
|
||||
if (name != null && CalamityWorld.getFixedBoi)
|
||||
name.Text = "yermes christal";
|
||||
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
if (line != null && CalamityMod.Instance.legendaryMode)
|
||||
if (line != null && CalamityWorld.getFixedBoi)
|
||||
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 (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
Projectile.NewProjectile(source, player.Center, Vector2.Zero, ProjectileID.Dynamite, 250, 0, player.whoAmI);
|
||||
return false;
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee.Yoyos;
|
||||
using CalamityMod.Rarities;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -52,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Player player = Main.LocalPlayer;
|
||||
TooltipLine line3 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2");
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
line3.Text = "May be viable weapon against DoG...";
|
||||
}
|
||||
|
||||
@@ -1,7 +1,8 @@
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Collections.Generic;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
@@ -46,7 +47,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
|
||||
if (line != null && CalamityMod.Instance.legendaryMode)
|
||||
if (line != null && CalamityWorld.getFixedBoi)
|
||||
line.Text = "No, it sucks";
|
||||
}
|
||||
|
||||
@@ -55,7 +56,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
SoundEngine.PlaySound(SoundID.Item38, player.Center);
|
||||
|
||||
// Really jammed in GFB
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
return Main.rand.NextBool(5);
|
||||
|
||||
int bulletAmt = Main.rand.Next(25, 36);
|
||||
|
||||
@@ -121,14 +121,13 @@ namespace CalamityMod
|
||||
case "brimstone elemental":
|
||||
return DownedBossSystem.downedBrimstoneElemental;
|
||||
|
||||
case "calamitas":
|
||||
case "clone":
|
||||
case "calamitasclone":
|
||||
case "calamitas clone":
|
||||
case "clonelamitas":
|
||||
case "calamitasdoppelganger":
|
||||
case "calamitas doppelganger":
|
||||
return DownedBossSystem.downedCalamitas;
|
||||
return DownedBossSystem.downedCalamitasClone;
|
||||
|
||||
case "gss":
|
||||
case "greatsandshark":
|
||||
@@ -287,10 +286,14 @@ namespace CalamityMod
|
||||
case "ares":
|
||||
return DownedBossSystem.downedExoMechs;
|
||||
|
||||
case "calamitas":
|
||||
case "scal":
|
||||
case "supremecalamitas":
|
||||
case "supreme calamitas":
|
||||
return DownedBossSystem.downedSCal;
|
||||
case "supremewitchcalamitas":
|
||||
case "supreme witch calamitas":
|
||||
case "supreme witch, calamitas":
|
||||
return DownedBossSystem.downedCalamitas;
|
||||
|
||||
case "adulteidolonwyrm":
|
||||
case "adult eidolon wyrm":
|
||||
|
||||
@@ -36,7 +36,7 @@ using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod
|
||||
{
|
||||
internal class Downed
|
||||
{
|
||||
public static readonly Func<bool> NotDownedCalamitas = () => !DownedBossSystem.downedCalamitas;
|
||||
public static readonly Func<bool> NotDownedCalClone = () => !DownedBossSystem.downedCalamitasClone;
|
||||
public static readonly Func<bool> DownedDesertScourge = () => DownedBossSystem.downedDesertScourge;
|
||||
public static readonly Func<bool> DownedGiantClam = () => DownedBossSystem.downedCLAM;
|
||||
public static readonly Func<bool> DownedCrabulon = () => DownedBossSystem.downedCrabulon;
|
||||
@@ -96,7 +96,7 @@ namespace CalamityMod
|
||||
public static readonly Func<bool> DownedBrimstoneElemental = () => DownedBossSystem.downedBrimstoneElemental;
|
||||
public static readonly Func<bool> DownedAquaticScourge = () => DownedBossSystem.downedAquaticScourge;
|
||||
public static readonly Func<bool> DownedCragmawMire = () => DownedBossSystem.downedCragmawMire;
|
||||
public static readonly Func<bool> DownedCalamitas = () => DownedBossSystem.downedCalamitas;
|
||||
public static readonly Func<bool> DownedCalClone = () => DownedBossSystem.downedCalamitasClone;
|
||||
public static readonly Func<bool> DownedGSS = () => DownedBossSystem.downedGSS;
|
||||
public static readonly Func<bool> DownedLeviathan = () => DownedBossSystem.downedLeviathan;
|
||||
public static readonly Func<bool> DownedAureus = () => DownedBossSystem.downedAstrumAureus;
|
||||
@@ -116,7 +116,7 @@ namespace CalamityMod
|
||||
public static readonly Func<bool> DownedDoG = () => DownedBossSystem.downedDoG;
|
||||
public static readonly Func<bool> DownedYharon = () => DownedBossSystem.downedYharon;
|
||||
public static readonly Func<bool> DownedExoMechs = () => DownedBossSystem.downedExoMechs;
|
||||
public static readonly Func<bool> DownedSCal = () => DownedBossSystem.downedSCal;
|
||||
public static readonly Func<bool> DownedSCal = () => DownedBossSystem.downedCalamitas;
|
||||
public static readonly Func<bool> DownedAdultEidolonWyrm = () => DownedBossSystem.downedAdultEidolonWyrm;
|
||||
|
||||
public static readonly Func<bool> DownedAcidRainInitial = () => DownedBossSystem.downedEoCAcidRain;
|
||||
@@ -141,7 +141,7 @@ namespace CalamityMod
|
||||
{ "AquaticScourge", 9.5f },
|
||||
{ "CragmawMire", 9.52f },
|
||||
{ "BrimstoneElemental", 10.5f },
|
||||
{ "Calamitas", 11.7f },
|
||||
{ "CalamitasClone", 11.7f },
|
||||
{ "GreatSandShark", 12.09f },
|
||||
{ "Leviathan", 12.8f },
|
||||
{ "AstrumAureus", 12.81f },
|
||||
@@ -161,7 +161,7 @@ namespace CalamityMod
|
||||
{ "DevourerOfGods", 21f },
|
||||
{ "Yharon", 22f },
|
||||
{ "ExoMechs", 22.5f },
|
||||
{ "SupremeCalamitas", 23f },
|
||||
{ "Calamitas", 23f },
|
||||
{ "AdultEidolonWyrm", 23.5f },
|
||||
// { "Yharim", 24f },
|
||||
// { "Noxus", 25f },
|
||||
@@ -513,17 +513,15 @@ namespace CalamityMod
|
||||
AddBoss(bossChecklist, calamity, "Brimstone Elemental", order, type, DownedBrimstoneElemental, summon, collection, instructions, despawn, () => true);
|
||||
}
|
||||
|
||||
// Calamitas
|
||||
// Calamitas Clone
|
||||
{
|
||||
BossDifficulty.TryGetValue("Calamitas", out float order);
|
||||
BossDifficulty.TryGetValue("CalamitasClone", out float order);
|
||||
int type = NPCType<CalamitasClone>();
|
||||
int summon = ItemType<EyeofDesolation>();
|
||||
List<int> collection = new List<int>() { ItemType<CalamitasTrophy>(), ItemType<CataclysmTrophy>(), ItemType<CatastropheTrophy>(), ItemType<CalamitasMask>(), ItemType<HoodOfCalamity>(), ItemType<RobesOfCalamity>(), ItemType<LoreCalamitasClone>(), ItemType<ThankYouPainting>() };
|
||||
List<int> collection = new List<int>() { ItemType<CalamitasCloneTrophy>(), ItemType<CataclysmTrophy>(), ItemType<CatastropheTrophy>(), ItemType<CalamitasMask>(), ItemType<HoodOfCalamity>(), ItemType<RobesOfCalamity>(), ItemType<LoreCalamitasClone>(), ItemType<ThankYouPainting>() };
|
||||
string instructions = $"Use an [i:{summon}] at Night";
|
||||
string despawn = CalamityUtils.ColorMessage("If you wanted a fight, you should've came more prepared.", new Color(0xFF, 0xA5, 0x00));
|
||||
//Func<bool> available = () => !DownedBossSystem.downedCalamitas;
|
||||
AddBoss(bossChecklist, calamity, "The Calamitas Clone", order, type, DownedCalamitas, summon, collection, instructions, despawn, () => true);
|
||||
//AddBoss(bossChecklist, calamity, "Calamitas", order, type, DownedCalamitas, summon, collection, instructions, despawn, available);
|
||||
AddBoss(bossChecklist, calamity, "The Calamitas Clone", order, type, DownedCalClone, summon, collection, instructions, despawn, () => true);
|
||||
}
|
||||
|
||||
// Great Sand Shark
|
||||
@@ -773,9 +771,9 @@ namespace CalamityMod
|
||||
{
|
||||
BossDifficulty.TryGetValue("Yharon", out float order);
|
||||
int type = NPCType<Yharon>();
|
||||
int summon = ItemType<JungleDragonEgg>();
|
||||
int summon = ItemType<YharonEgg>();
|
||||
List<int> collection = new List<int>() { ItemType<YharonTrophy>(), ItemType<YharonMask>(), ItemType<LoreYharon>(), ItemType<ForgottenDragonEgg>(), ItemType<McNuggets>(), ItemType<FoxDrive>(), ItemType<ThankYouPainting>() };
|
||||
string instructions = $"Use a [i:{summon}] in the Jungle Biome";
|
||||
string instructions = $"Use a [i:{summon}]";
|
||||
string despawn = CalamityUtils.ColorMessage("Yharon found you too weak to stay near your gravestone.", new Color(0xFF, 0xA5, 0x00));
|
||||
string bossLogTex = "CalamityMod/NPCs/Yharon/Yharon_Head_Boss";
|
||||
AddBoss(bossChecklist, calamity, "Yharon", order, type, DownedYharon, summon, collection, instructions, despawn, () => true, null, bossLogTex);
|
||||
@@ -802,9 +800,9 @@ namespace CalamityMod
|
||||
AddBoss(bossChecklist, calamity, "Exo Mechs", order, bosses, DownedExoMechs, null, collection, instructions, despawn, () => true, portrait);
|
||||
}
|
||||
|
||||
// Supreme Calamitas
|
||||
// Calamitas
|
||||
{
|
||||
BossDifficulty.TryGetValue("SupremeCalamitas", out float order);
|
||||
BossDifficulty.TryGetValue("Calamitas", out float order);
|
||||
int type = NPCType<SupremeCalamitas>();
|
||||
int summon1 = ItemType<AshesofCalamity>();
|
||||
int summon2 = ItemType<CeremonialUrn>();
|
||||
@@ -814,7 +812,7 @@ namespace CalamityMod
|
||||
string instructions = $"Use [i:{summon1}] or a [i:{summon2}] as offering at an [i:{altar}]";
|
||||
string despawn = CalamityUtils.ColorMessage("Please don't waste my time.", new Color(0xFF, 0xA5, 0x00));
|
||||
string bossHeadTex = "CalamityMod/NPCs/SupremeCalamitas/HoodedHeadIcon";
|
||||
AddBoss(bossChecklist, calamity, "Supreme Calamitas", order, type, DownedSCal, summons, collection, instructions, despawn, () => true, null, bossHeadTex);
|
||||
AddBoss(bossChecklist, calamity, "Supreme Witch, Calamitas", order, type, DownedSCal, summons, collection, instructions, despawn, () => true, null, bossHeadTex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1085,7 +1083,7 @@ namespace CalamityMod
|
||||
censusMod.Call("TownNPCCondition", NPCType<THIEF>(), "Have a [i:" + ItemID.PlatinumCoin + "] in your inventory after defeating Skeletron");
|
||||
censusMod.Call("TownNPCCondition", NPCType<FAP>(), "Have [i:" + ItemType<FabsolsVodka>() + "] in your inventory in Hardmode");
|
||||
censusMod.Call("TownNPCCondition", NPCType<DILF>(), "Defeat Cryogen");
|
||||
censusMod.Call("TownNPCCondition", NPCType<WITCH>(), "Defeat Supreme Calamitas");
|
||||
censusMod.Call("TownNPCCondition", NPCType<WITCH>(), "Defeat Supreme Witch, Calamitas");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.ID;
|
||||
@@ -216,7 +217,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 || CalamityMod.Instance.legendaryMode)
|
||||
if (NPC.scale < 2f || CalamityWorld.getFixedBoi)
|
||||
{
|
||||
NPC.scale += 0.05f;
|
||||
}
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
using CalamityMod.BiomeManagers;
|
||||
using System;
|
||||
using System.IO;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader.Utilities;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
@@ -346,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 (CalamityMod.Instance.legendaryMode && Main.netMode != NetmodeID.MultiplayerClient && !clone && !hasBeenHit)
|
||||
if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient && !clone && !hasBeenHit)
|
||||
{
|
||||
// spawn some baby colossal squids in gfb
|
||||
for (int i = 0; i < 3; i++)
|
||||
@@ -634,7 +635,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode && clone)
|
||||
if (CalamityWorld.getFixedBoi && clone)
|
||||
{
|
||||
typeName = "Tiny Squid";
|
||||
}
|
||||
|
||||
@@ -1,25 +1,26 @@
|
||||
using CalamityMod.BiomeManagers;
|
||||
using System;
|
||||
using System.IO;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Weapons.Magic;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader.Utilities;
|
||||
using Terraria.Audio;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
@@ -101,7 +102,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
public override void AI()
|
||||
{
|
||||
bool adultWyrmAlive = false;
|
||||
SoundStyle roar = CalamityMod.Instance.legendaryMode ? Sunskater.DeathSound with { Pitch = Sunskater.DeathSound.Pitch - 0.5f } : CommonCalamitySounds.WyrmScreamSound;
|
||||
SoundStyle roar = CalamityWorld.getFixedBoi ? Sunskater.DeathSound with { Pitch = Sunskater.DeathSound.Pitch - 0.5f } : CommonCalamitySounds.WyrmScreamSound;
|
||||
if (CalamityGlobalNPC.adultEidolonWyrmHead != -1)
|
||||
{
|
||||
if (Main.npc[CalamityGlobalNPC.adultEidolonWyrmHead].active)
|
||||
|
||||
@@ -1,19 +1,20 @@
|
||||
using CalamityMod.BiomeManagers;
|
||||
using System;
|
||||
using System.IO;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Potions;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader.Utilities;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
@@ -605,7 +606,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
NPC.netUpdate = true;
|
||||
return;
|
||||
}
|
||||
if (CalamityMod.Instance.legendaryMode && Main.netMode != NetmodeID.MultiplayerClient && NPC.ai[2] % 5 == 0)
|
||||
if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient && NPC.ai[2] % 5 == 0)
|
||||
{
|
||||
Vector2 direction = vector - player.Center;
|
||||
direction.Normalize();
|
||||
|
||||
@@ -478,7 +478,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
public override void OnKill()
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
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;
|
||||
|
||||
@@ -195,7 +195,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
Walking = false;
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode && !hasDoneDeathray && NPC.life <= NPC.lifeMax * 0.1f)
|
||||
if (CalamityWorld.getFixedBoi && !hasDoneDeathray && NPC.life <= NPC.lifeMax * 0.1f)
|
||||
{
|
||||
DeathrayTime++;
|
||||
MasterSpark();
|
||||
|
||||
@@ -1,15 +1,16 @@
|
||||
using CalamityMod.BiomeManagers;
|
||||
using System;
|
||||
using System.IO;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Particles.Metaballs;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.IO;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
@@ -206,7 +207,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 (CalamityMod.Instance.legendaryMode && !(!NPC.wet && NPC.collideY))
|
||||
if (CalamityWorld.getFixedBoi && !(!NPC.wet && NPC.collideY))
|
||||
{
|
||||
// Spread the wrath of the damned
|
||||
NPC.Calamity().newAI[0]++;
|
||||
|
||||
@@ -1,18 +1,20 @@
|
||||
using CalamityMod.BiomeManagers;
|
||||
using System;
|
||||
using CalamityMod.BiomeManagers;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Projectiles.Enemy;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
public class Trilobite : ModNPC
|
||||
@@ -168,7 +170,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
projDamage = (int)Math.Round(projDamage * 0.8);
|
||||
|
||||
Vector2 spikeVelocity = -NPC.velocity.RotatedByRandom(0.18f);
|
||||
if (CalamityMod.Instance.legendaryMode) // more true to the original concept art.
|
||||
if (CalamityWorld.getFixedBoi) // more true to the original concept art.
|
||||
{
|
||||
spikeVelocity = -projectile.velocity;
|
||||
spikeVelocity.Normalize();
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
typeName = "Jared";
|
||||
}
|
||||
|
||||
@@ -187,7 +187,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
typeName = "Jared";
|
||||
}
|
||||
|
||||
@@ -127,7 +127,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
NPC.Calamity().VulnerableToElectricity = true;
|
||||
NPC.Calamity().VulnerableToWater = false;
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
NPC.defense = 999;
|
||||
NPC.DR_NERD(0.9f);
|
||||
@@ -1425,7 +1425,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
npcLoot.Add(ModContent.ItemType<Voidstone>(), 1, 80, 100);
|
||||
npcLoot.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
|
||||
|
||||
var postClone = npcLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitas);
|
||||
var postClone = npcLoot.DefineConditionalDropSet(() => DownedBossSystem.downedCalamitasClone);
|
||||
postClone.Add(DropHelper.NormalVsExpertQuantity(ModContent.ItemType<Lumenyl>(), 1, 50, 108, 65, 135));
|
||||
postClone.Add(ItemID.Ectoplasm, 1, 21, 32);
|
||||
}
|
||||
@@ -1458,7 +1458,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
typeName = "Jared";
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
typeName = "Jared";
|
||||
}
|
||||
|
||||
@@ -100,7 +100,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
Color color = NPC.GetAlpha(drawColor);
|
||||
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi)
|
||||
{
|
||||
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));
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
Color color = NPC.GetAlpha(drawColor);
|
||||
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi)
|
||||
{
|
||||
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));
|
||||
|
||||
@@ -141,7 +141,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
Color color = NPC.GetAlpha(drawColor);
|
||||
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi)
|
||||
{
|
||||
if (NPC.Calamity().newAI[3] > 300f)
|
||||
color = Color.Lerp(color, Color.SandyBrown, MathHelper.Clamp((NPC.Calamity().newAI[3] - 300f) / 180f, 0f, 1f));
|
||||
|
||||
@@ -99,7 +99,7 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
Color color = NPC.GetAlpha(drawColor);
|
||||
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.revenge || BossRushEvent.BossRushActive || CalamityWorld.getFixedBoi)
|
||||
{
|
||||
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));
|
||||
|
||||
@@ -279,7 +279,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
|
||||
swingYeet = false;
|
||||
|
||||
if (Main.rand.NextBool(1000) || CalamityMod.Instance.legendaryMode) //Launch the player very fast very rarely
|
||||
if (Main.rand.NextBool(1000) || CalamityWorld.getFixedBoi) //Launch the player very fast very rarely
|
||||
{
|
||||
horMult = 12f;
|
||||
verMult = 2.3f;
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.Calamity().VulnerableToHeat = true;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<UndergroundAstralBiome>().Type };
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
NPC.scale = 3f;
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
|
||||
if (Main.getGoodWorld)
|
||||
NPC.scale *= 0.8f;
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
NPC.scale *= 1.5f;
|
||||
}
|
||||
|
||||
@@ -231,7 +231,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
if (NPC.ai[0] == 0f || (slimePhaseHP && CalamityMod.Instance.legendaryMode))
|
||||
if (NPC.ai[0] == 0f || (slimePhaseHP && CalamityWorld.getFixedBoi))
|
||||
{
|
||||
NPCTexture = TextureAssets.Npc[NPC.type].Value;
|
||||
GlowMaskTexture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AstrumAureus/AstrumAureusGlow").Value;
|
||||
@@ -284,7 +284,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
float rotation = NPC.rotation;
|
||||
float offsetY = NPC.gfxOffY;
|
||||
Color color36 = Color.White;
|
||||
if (CalamityMod.Instance.legendaryMode && slimePhaseHP)
|
||||
if (CalamityWorld.getFixedBoi && slimePhaseHP)
|
||||
{
|
||||
color36 = slimePhase == 0 ? Color.Yellow : Color.Violet;
|
||||
}
|
||||
@@ -311,14 +311,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 = CalamityMod.Instance.legendaryMode && slimePhaseHP ? color36 : drawColor;
|
||||
Color toUse = CalamityWorld.getFixedBoi && slimePhaseHP ? color36 : drawColor;
|
||||
spriteBatch.Draw(NPCTexture, vector43, frame, NPC.GetAlpha(toUse), rotation, vector11, scale, spriteEffects, 0f);
|
||||
|
||||
if (NPC.ai[0] != 1 || (slimePhaseHP && CalamityMod.Instance.legendaryMode)) //draw only if not recharging
|
||||
if (NPC.ai[0] != 1 || (slimePhaseHP && CalamityWorld.getFixedBoi)) //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 (CalamityMod.Instance.legendaryMode && slimePhaseHP)
|
||||
if (CalamityWorld.getFixedBoi && slimePhaseHP)
|
||||
{
|
||||
color40 = slimePhase == 0 ? Color.Violet : Color.Yellow;
|
||||
}
|
||||
|
||||
@@ -374,7 +374,7 @@ namespace CalamityMod.NPCs.AstrumAureus
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
int debuffType = CalamityMod.Instance.legendaryMode ? ModContent.BuffType<GodSlayerInferno>() : ModContent.BuffType<AstralInfectionDebuff>();
|
||||
int debuffType = CalamityWorld.getFixedBoi ? ModContent.BuffType<GodSlayerInferno>() : ModContent.BuffType<AstralInfectionDebuff>();
|
||||
player.AddBuff(debuffType, (int)(180 * NPC.scale), true);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
if (NPC.life <= 0 && CalamityMod.Instance.legendaryMode) // I value people's computers
|
||||
if (NPC.life <= 0 && CalamityWorld.getFixedBoi) // I value people's computers
|
||||
{
|
||||
NPC.position.X = NPC.position.X + (NPC.width / 2);
|
||||
NPC.position.Y = NPC.position.Y + (NPC.height / 2);
|
||||
|
||||
@@ -91,7 +91,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<AbovegroundAstralBiome>().Type };
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
if (CalamityWorld.death) // killing 10 worms with half of the og's health is ridiculous
|
||||
NPC.lifeMax /= 3;
|
||||
@@ -217,7 +217,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
{
|
||||
if (NPC.life <= 0)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode && Main.rand.NextBool(5)) // I value people's computers
|
||||
if (CalamityWorld.getFixedBoi && 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);
|
||||
|
||||
@@ -155,7 +155,7 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
if (NPC.life <= 0 && CalamityMod.Instance.legendaryMode) // I value people's computers
|
||||
if (NPC.life <= 0 && CalamityWorld.getFixedBoi) // I value people's computers
|
||||
{
|
||||
NPC.position.X = NPC.position.X + (NPC.width / 2);
|
||||
NPC.position.Y = NPC.position.Y + (NPC.height / 2);
|
||||
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
NPC.Calamity().VulnerableToWater = true;
|
||||
SpawnModBiomes = new int[1] { ModContent.GetInstance<BrimstoneCragsBiome>().Type };
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
NPC.scale *= 0.7f;
|
||||
}
|
||||
|
||||
|
||||
@@ -307,7 +307,7 @@ namespace CalamityMod.NPCs.BrimstoneElemental
|
||||
npcOffset += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
|
||||
// Give brimmy an outline based on current elemental mode
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
Color baseColor = Color.Red;
|
||||
switch (currentMode)
|
||||
|
||||
@@ -131,7 +131,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
bool birbSpawn = NPC.ai[0] == 4f && NPC.ai[1] > 0f;
|
||||
|
||||
// Animation goes nyoom
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
NPC.frameCounter += 4;
|
||||
}
|
||||
@@ -412,7 +412,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
|
||||
public override void BossLoot(ref string name, ref int potionType)
|
||||
{
|
||||
name = CalamityMod.Instance.legendaryMode ? "A Bumblebirb" : "A Dragonfolly";
|
||||
name = CalamityWorld.getFixedBoi ? "A Bumblebirb" : "A Dragonfolly";
|
||||
potionType = ItemID.SuperHealingPotion;
|
||||
}
|
||||
|
||||
@@ -462,7 +462,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
DownedBossSystem.downedDragonfolly = true;
|
||||
CalamityNetcode.SyncWorld();
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int spacing = 40;
|
||||
int amt = 7;
|
||||
@@ -487,7 +487,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
typeName = "Bumblebirb";
|
||||
}
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
@@ -55,7 +56,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 && CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.LightningSound, NPC.Center - Vector2.UnitY * 300f);
|
||||
for (int i = 0; i < 5; i++)
|
||||
@@ -72,7 +73,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
public override void FindFrame(int frameHeight)
|
||||
{
|
||||
NPC.frameCounter += NPC.ai[0] == 2.1f ? 1.5 : 1D;
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
NPC.frameCounter += 2D;
|
||||
}
|
||||
@@ -124,7 +125,7 @@ namespace CalamityMod.NPCs.Bumblebirb
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
typeName = "Bumblebirb";
|
||||
}
|
||||
|
||||
@@ -5,7 +5,7 @@ using Terraria.Graphics.Effects;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
public class CalScreenShaderData : ScreenShaderData
|
||||
{
|
||||
@@ -6,7 +6,7 @@ using Terraria.GameContent;
|
||||
using Terraria.Graphics.Effects;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
public class CalSky : CustomSky
|
||||
{
|
||||
@@ -27,14 +27,14 @@ using Terraria.Audio;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class CalamitasClone : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Calamitas");
|
||||
DisplayName.SetDefault("Calamitas Clone");
|
||||
Main.npcFrameCount[NPC.type] = 6;
|
||||
NPCID.Sets.TrailingMode[NPC.type] = 1;
|
||||
NPCID.Sets.BossBestiaryPriority.Add(Type);
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
};
|
||||
value.Position.Y -= 10f;
|
||||
NPCID.Sets.NPCBestiaryDrawOffset[Type] = value;
|
||||
NPCID.Sets.MPAllowedEnemies[Type] = true;
|
||||
NPCID.Sets.MPAllowedEnemies[Type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -84,8 +84,8 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Times.NightTime,
|
||||
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.Surface,
|
||||
|
||||
// Will move to localization whenever that is cleaned up.
|
||||
new FlavorTextBestiaryInfoElement("A mysterious burning form which only appears at night, wreathed in brimstone fire. It has a twisted mind and misplaced pride in its abilities.")
|
||||
// Will move to localization whenever that is cleaned up.
|
||||
new FlavorTextBestiaryInfoElement("A mysterious burning form which only appears at night, wreathed in brimstone fire. It has a twisted mind and misplaced pride in its abilities.")
|
||||
});
|
||||
}
|
||||
|
||||
@@ -156,9 +156,9 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
npcOffset += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture, npcOffset, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, origin, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CalamitasCloneGlow").Value;
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/CalClone/CalamitasCloneGlow").Value;
|
||||
Color color = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
color = Color.CornflowerBlue;
|
||||
}
|
||||
@@ -184,7 +184,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType<CalamitasBag>()));
|
||||
npcLoot.Add(ItemDropRule.BossBag(ModContent.ItemType<CalamitasCloneBag>()));
|
||||
npcLoot.Add(ItemID.BrokenHeroSword);
|
||||
|
||||
// Normal drops: Everything that would otherwise be in the bag
|
||||
@@ -217,26 +217,26 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
normalOnly.Add(ModContent.ItemType<ThankYouPainting>(), ThankYouPainting.DropInt);
|
||||
}
|
||||
|
||||
npcLoot.Add(ModContent.ItemType<CalamitasTrophy>(), 10);
|
||||
npcLoot.Add(ModContent.ItemType<CalamitasCloneTrophy>(), 10);
|
||||
|
||||
// Relic
|
||||
npcLoot.DefineConditionalDropSet(DropHelper.RevAndMaster).Add(ModContent.ItemType<CalamitasCloneRelic>());
|
||||
|
||||
// Lore
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCalamitas, ModContent.ItemType<LoreCalamitasClone>(), desc: DropHelper.FirstKillText);
|
||||
npcLoot.AddConditionalPerPlayer(() => !DownedBossSystem.downedCalamitasClone, ModContent.ItemType<LoreCalamitasClone>(), desc: DropHelper.FirstKillText);
|
||||
}
|
||||
|
||||
public override void OnKill()
|
||||
{
|
||||
CalamityGlobalNPC.SetNewBossJustDowned(NPC);
|
||||
|
||||
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<THIEF>() }, DownedBossSystem.downedCalamitas);
|
||||
CalamityGlobalNPC.SetNewShopVariable(new int[] { ModContent.NPCType<THIEF>() }, DownedBossSystem.downedCalamitasClone);
|
||||
|
||||
// Abyss awakens after killing Calamitas
|
||||
string key = "Mods.CalamityMod.PlantBossText";
|
||||
Color messageColor = Color.RoyalBlue;
|
||||
|
||||
if (!DownedBossSystem.downedCalamitas)
|
||||
if (!DownedBossSystem.downedCalamitasClone)
|
||||
{
|
||||
if (!Main.player[Main.myPlayer].dead && Main.player[Main.myPlayer].active)
|
||||
SoundEngine.PlaySound(CommonCalamitySounds.WyrmScreamSound, Main.player[Main.myPlayer].Center);
|
||||
@@ -244,8 +244,8 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
|
||||
// Mark Calamitas as dead
|
||||
DownedBossSystem.downedCalamitas = true;
|
||||
// Mark the Calamitas Clone as dead
|
||||
DownedBossSystem.downedCalamitasClone = true;
|
||||
CalamityNetcode.SyncWorld();
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 795 B After Width: | Height: | Size: 795 B |
@@ -13,7 +13,7 @@ using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using System.IO;
|
||||
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class Cataclysm : ModNPC
|
||||
@@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CataclysmGlow").Value;
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/CalClone/CataclysmGlow").Value;
|
||||
Color color37 = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 796 B After Width: | Height: | Size: 796 B |
@@ -13,7 +13,7 @@ using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using System.IO;
|
||||
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class Catastrophe : ModNPC
|
||||
@@ -132,7 +132,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
vector43 += vector11 * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture2D15, vector43, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector11, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/CatastropheGlow").Value;
|
||||
texture2D15 = ModContent.Request<Texture2D>("CalamityMod/NPCs/CalClone/CatastropheGlow").Value;
|
||||
Color color37 = Color.Lerp(Color.White, Color.Red, 0.5f);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 755 B After Width: | Height: | Size: 755 B |
@@ -11,7 +11,7 @@ using Terraria.GameContent.Bestiary;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.Calamitas
|
||||
namespace CalamityMod.NPCs.CalClone
|
||||
{
|
||||
public class SoulSeeker : ModNPC
|
||||
{
|
||||
@@ -209,7 +209,7 @@ namespace CalamityMod.NPCs.Calamitas
|
||||
drawPos += origin * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture, drawPos, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, origin, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/Calamitas/SoulSeekerGlow").Value;
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/CalClone/SoulSeekerGlow").Value;
|
||||
Color glow = Color.Lerp(Color.White, Color.Red, colorLerpAmt);
|
||||
|
||||
if (CalamityConfig.Instance.Afterimages)
|
||||
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.7 KiB After Width: | Height: | Size: 1.7 KiB |
@@ -9,7 +9,7 @@ using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.BrimstoneElemental;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crags;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.NPCs
|
||||
bool revenge = CalamityWorld.revenge || bossRush;
|
||||
bool death = CalamityWorld.death || bossRush;
|
||||
|
||||
bool getFuckedAI = CalamityMod.Instance.legendaryMode;
|
||||
bool getFuckedAI = CalamityWorld.getFixedBoi;
|
||||
|
||||
if (head)
|
||||
CalamityGlobalNPC.aquaticScourge = npc.whoAmI;
|
||||
@@ -747,7 +747,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode) // in gfb, Brimmy channels the power of the other elementals.
|
||||
if (CalamityWorld.getFixedBoi) // in gfb, Brimmy channels the power of the other elementals.
|
||||
{
|
||||
int newMode;
|
||||
if (lifeRatio <= 0.8f && lifeRatio > 0.6f)
|
||||
@@ -896,7 +896,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
if (npc.alpha >= 255)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item68, npc.Center);
|
||||
int type = ModContent.ProjectileType<BrimstoneRay>();
|
||||
@@ -1181,7 +1181,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 (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
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);
|
||||
@@ -1222,7 +1222,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 (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
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);
|
||||
@@ -1239,7 +1239,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 (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
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);
|
||||
@@ -1579,7 +1579,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
int type = ModContent.ProjectileType<SCalBrimstoneFireblast>();
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
type = ModContent.ProjectileType<SCalBrimstoneGigablast>();
|
||||
}
|
||||
@@ -2129,7 +2129,7 @@ namespace CalamityMod.NPCs
|
||||
npc.velocity.Y = num872 * num873;
|
||||
npc.ai[1] = 2f;
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
SoundEngine.PlaySound(SupremeCalamitas.SupremeCalamitas.BrimstoneShotSound, npc.Center);
|
||||
|
||||
@@ -2431,7 +2431,7 @@ namespace CalamityMod.NPCs
|
||||
npc.velocity.Y = num872 * num873;
|
||||
npc.ai[1] = 2f;
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
SoundEngine.PlaySound(SupremeCalamitas.SupremeCalamitas.BrimstoneShotSound, npc.Center);
|
||||
|
||||
@@ -2618,7 +2618,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
bool geldonPhase1 = lifeRatio > 0.6f && lifeRatio <= 0.7f;
|
||||
bool geldonPhase2 = lifeRatio <= 0.1f;
|
||||
if (CalamityMod.Instance.legendaryMode && (geldonPhase1 || geldonPhase2))
|
||||
if (CalamityWorld.getFixedBoi && (geldonPhase1 || geldonPhase2))
|
||||
{
|
||||
AstrumAureus.AstrumAureus astrumAureus = npc.ModNPC<AstrumAureus.AstrumAureus>();
|
||||
astrumAureus.slimeProjCounter++;
|
||||
@@ -3004,10 +3004,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 = CalamityMod.Instance.legendaryMode ? NPCs.ExoMechs.Ares.AresGaussNuke.NukeExplosionSound : NPCs.AstrumAureus.AstrumAureus.StompSound;
|
||||
SoundEngine.PlaySound(soundToPlay, npc.Center);
|
||||
SoundStyle soundToPlay = CalamityWorld.getFixedBoi ? NPCs.ExoMechs.Ares.AresGaussNuke.NukeExplosionSound : NPCs.AstrumAureus.AstrumAureus.StompSound;
|
||||
SoundEngine.PlaySound(soundToPlay, npc.position);
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
float screenShakePower = 16 * Utils.GetLerpValue(1300f, 0f, npc.Distance(Main.LocalPlayer.Center), true);
|
||||
if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower)
|
||||
@@ -3054,7 +3054,7 @@ namespace CalamityMod.NPCs
|
||||
SoundEngine.PlaySound(SoundID.Item33, npc.Center);
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int type = Main.rand.NextBool(2) ? ModContent.ProjectileType<AstralLaser>() : ModContent.ProjectileType<AstralFlame>();
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
@@ -3473,7 +3473,7 @@ namespace CalamityMod.NPCs
|
||||
int phase1Length = death ? 80 : revenge ? 70 : expertMode ? 60 : 50;
|
||||
int phase2Length = phase1Length / 2;
|
||||
int gfbLength = phase1Length / 10;
|
||||
int maxLength = CalamityMod.Instance.legendaryMode && doubleWormPhase ? gfbLength : doubleWormPhase ? phase2Length : phase1Length;
|
||||
int maxLength = CalamityWorld.getFixedBoi && doubleWormPhase ? gfbLength : doubleWormPhase ? phase2Length : phase1Length;
|
||||
|
||||
// Split into two worms
|
||||
if (head)
|
||||
@@ -3558,7 +3558,7 @@ namespace CalamityMod.NPCs
|
||||
// Do not spawn worms client side. The server handles this.
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
int wormamt = CalamityMod.Instance.legendaryMode ? 5 : 1;
|
||||
int wormamt = CalamityWorld.getFixedBoi ? 5 : 1;
|
||||
for (int i = 0; i < wormamt; i++)
|
||||
{
|
||||
// Now that the original worm doesn't exist, startCount can be zero.
|
||||
@@ -3612,7 +3612,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode && calamityGlobalNPC.newAI[1] < 10f) // desync the deuses
|
||||
if (CalamityWorld.getFixedBoi && calamityGlobalNPC.newAI[1] < 10f) // desync the deuses
|
||||
{
|
||||
float pushForce = 0.25f;
|
||||
for (int k = 0; k < Main.maxNPCs; k++)
|
||||
@@ -3661,7 +3661,7 @@ namespace CalamityMod.NPCs
|
||||
npc.realLife = (int)npc.ai[2];
|
||||
|
||||
// Emit light
|
||||
if (!CalamityMod.Instance.legendaryMode)
|
||||
if (!CalamityWorld.getFixedBoi)
|
||||
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
|
||||
@@ -4869,10 +4869,10 @@ namespace CalamityMod.NPCs
|
||||
// Sound
|
||||
if (calamityGlobalNPC.newAI[1] == newPhaseTimer - 60f)
|
||||
{
|
||||
float squawkpitch = CalamityMod.Instance.legendaryMode ? 1.3f : 0.25f;
|
||||
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center);
|
||||
float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f;
|
||||
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.position);
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int spacing = 20;
|
||||
int amt = 5;
|
||||
@@ -4907,10 +4907,10 @@ namespace CalamityMod.NPCs
|
||||
// Sound
|
||||
if (calamityGlobalNPC.newAI[0] == newPhaseTimer - 60f)
|
||||
{
|
||||
float squawkpitch = CalamityMod.Instance.legendaryMode ? 1.3f : 0.25f;
|
||||
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center);
|
||||
float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f;
|
||||
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.position);
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int spacing = 20;
|
||||
int amt = 3;
|
||||
@@ -5404,10 +5404,10 @@ namespace CalamityMod.NPCs
|
||||
// Sound
|
||||
if (npc.ai[1] == birbSpawnPhaseTimer - 60f)
|
||||
{
|
||||
float squawkpitch = CalamityMod.Instance.legendaryMode ? 1.3f : 0.25f;
|
||||
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.Center);
|
||||
float squawkpitch = CalamityWorld.getFixedBoi ? 1.3f : 0.25f;
|
||||
SoundEngine.PlaySound(SoundID.DD2_BetsyScream with { Pitch = squawkpitch }, npc.position);
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int spacing = 30;
|
||||
int amt = 3;
|
||||
@@ -5471,7 +5471,7 @@ namespace CalamityMod.NPCs
|
||||
npc.netUpdate = true;
|
||||
}
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int spacing = 30;
|
||||
int amt = 3;
|
||||
@@ -5577,7 +5577,7 @@ namespace CalamityMod.NPCs
|
||||
value44.Normalize();
|
||||
value44 *= scaleFactor20;
|
||||
npc.velocity = (npc.velocity * (num1377 - 1f) + value44) / num1377;
|
||||
if (Main.getGoodWorld && !CalamityMod.Instance.legendaryMode)
|
||||
if (Main.getGoodWorld && !CalamityWorld.getFixedBoi)
|
||||
npc.velocity *= 1.15f;
|
||||
}
|
||||
else if (npc.velocity.Length() > 2f)
|
||||
@@ -5627,7 +5627,7 @@ namespace CalamityMod.NPCs
|
||||
value45.Normalize();
|
||||
value45 *= scaleFactor21;
|
||||
npc.velocity = (npc.velocity * (num1378 - 1f) + value45) / num1378;
|
||||
if (Main.getGoodWorld && !CalamityMod.Instance.legendaryMode)
|
||||
if (Main.getGoodWorld && !CalamityWorld.getFixedBoi)
|
||||
npc.velocity *= 1.15f;
|
||||
|
||||
npc.netSpam = 5;
|
||||
@@ -5656,7 +5656,7 @@ namespace CalamityMod.NPCs
|
||||
vector242.Normalize();
|
||||
vector242 *= scaleFactor22;
|
||||
npc.velocity = (npc.velocity * (num1379 - 1f) + vector242) / num1379;
|
||||
if (Main.getGoodWorld && !CalamityMod.Instance.legendaryMode)
|
||||
if (Main.getGoodWorld && !CalamityWorld.getFixedBoi)
|
||||
npc.velocity *= 1.15f;
|
||||
|
||||
if (npc.velocity.X < 0f)
|
||||
@@ -5672,7 +5672,7 @@ namespace CalamityMod.NPCs
|
||||
if (npc.ai[1] > 10f)
|
||||
{
|
||||
npc.velocity = vector242;
|
||||
if (Main.getGoodWorld && !CalamityMod.Instance.legendaryMode)
|
||||
if (Main.getGoodWorld && !CalamityWorld.getFixedBoi)
|
||||
npc.velocity *= 1.15f;
|
||||
|
||||
if (npc.velocity.X < 0f)
|
||||
@@ -5850,7 +5850,7 @@ namespace CalamityMod.NPCs
|
||||
int num13 = maxToothBallBelches * toothBallSpinPhaseDivisor;
|
||||
float spinTime = num13 / 2f;
|
||||
float toothBallSpinToothBallVelocity = bossRush ? 14f : death ? 9.5f : 9f;
|
||||
float scaleFactor4 = CalamityMod.Instance.legendaryMode ? 44f : 22f;
|
||||
float scaleFactor4 = CalamityWorld.getFixedBoi ? 44f : 22f;
|
||||
float num15 = MathHelper.TwoPi / spinTime;
|
||||
int num16 = 75;
|
||||
|
||||
@@ -5904,7 +5904,7 @@ namespace CalamityMod.NPCs
|
||||
if (calamityGlobalNPC.newAI[0] % 60f == 0f)
|
||||
SoundEngine.PlaySound(OldDuke.OldDuke.HuffSound, player.Center);
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
float screenShakePower = 10 * Utils.GetLerpValue(800f, 0f, npc.Distance(Main.LocalPlayer.Center), true);
|
||||
if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower)
|
||||
@@ -7437,7 +7437,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
Dust.NewDust(npc.position, npc.width, npc.height, (int)CalamityDusts.Brimstone, 0f, -1f, 0, default, 1f);
|
||||
}
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
float screenShakePower = 2 * Utils.GetLerpValue(1300f, 0f, npc.Distance(Main.LocalPlayer.Center), true);
|
||||
if (Main.LocalPlayer.Calamity().GeneralScreenShakePower < screenShakePower)
|
||||
|
||||
@@ -15,7 +15,7 @@ using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
using CalamityMod.NPCs.Bumblebirb;
|
||||
using CalamityMod.NPCs.Calamitas;
|
||||
using CalamityMod.NPCs.CalClone;
|
||||
using CalamityMod.NPCs.CeaselessVoid;
|
||||
using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Crags;
|
||||
@@ -1310,7 +1310,7 @@ namespace CalamityMod.NPCs
|
||||
else if (CalamityLists.DestroyerIDs.Contains(npc.type))
|
||||
{
|
||||
npc.lifeMax = (int)(npc.lifeMax * 1.25);
|
||||
npc.scale *= CalamityMod.Instance.legendaryMode ? 2.5f : CalamityWorld.death ? 2f : 1.5f;
|
||||
npc.scale *= CalamityWorld.getFixedBoi ? 2.5f : CalamityWorld.death ? 2f : 1.5f;
|
||||
npc.npcSlots = 10f;
|
||||
}
|
||||
else if (npc.type == NPCID.Probe)
|
||||
@@ -1318,7 +1318,7 @@ namespace CalamityMod.NPCs
|
||||
if (CalamityWorld.death)
|
||||
npc.lifeMax = (int)(npc.lifeMax * 2.0);
|
||||
|
||||
npc.scale *= CalamityMod.Instance.legendaryMode ? 2f : CalamityWorld.death ? 1.5f : 1.2f;
|
||||
npc.scale *= CalamityWorld.getFixedBoi ? 2f : CalamityWorld.death ? 1.5f : 1.2f;
|
||||
}
|
||||
else if (npc.type == NPCID.SkeletronPrime)
|
||||
{
|
||||
@@ -5822,7 +5822,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode && NPC.AnyNPCs(NPCType<CeaselessVoid.CeaselessVoid>()))
|
||||
if (CalamityWorld.getFixedBoi && 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);
|
||||
@@ -6087,7 +6087,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
else if (type == NPCType<CalamitasClone>())
|
||||
{
|
||||
return DownedBossSystem.downedCalamitas;
|
||||
return DownedBossSystem.downedCalamitasClone;
|
||||
}
|
||||
else if (type == NPCType<Leviathan.Leviathan>() || type == NPCType<Anahita>())
|
||||
{
|
||||
@@ -6155,7 +6155,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
else if (type == NPCType<SupremeCalamitas.SupremeCalamitas>())
|
||||
{
|
||||
return DownedBossSystem.downedSCal;
|
||||
return DownedBossSystem.downedCalamitas;
|
||||
}
|
||||
else if (type == NPCType<AdultEidolonWyrmHead>())
|
||||
{
|
||||
|
||||
@@ -1964,7 +1964,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>() && CalamityMod.Instance.legendaryMode)) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark.GreatSandShark>()))
|
||||
if (NPC.downedPlantBoss && (normalShark || (npc.type == ModContent.NPCType<FusionFeeder>() && CalamityWorld.getFixedBoi)) && !NPC.AnyNPCs(ModContent.NPCType<GreatSandShark.GreatSandShark>()))
|
||||
{
|
||||
CalamityMod.sharkKillCount++;
|
||||
if (CalamityMod.sharkKillCount == 4)
|
||||
|
||||
@@ -1515,7 +1515,7 @@ namespace CalamityMod.NPCs
|
||||
damageMult += 0.6f;
|
||||
defense += 20;
|
||||
}
|
||||
if (DownedBossSystem.downedSCal)
|
||||
if (DownedBossSystem.downedCalamitas)
|
||||
{
|
||||
damageMult += 0.6f;
|
||||
defense += 20;
|
||||
|
||||
@@ -255,7 +255,7 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
{
|
||||
NPC.soundDelay = 8;
|
||||
float pitchVar = 0;
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
pitchVar = Main.rand.Next(-60, 41) * 0.01f;
|
||||
}
|
||||
|
||||
@@ -276,8 +276,8 @@ namespace CalamityMod.NPCs.CeaselessVoid
|
||||
|
||||
public override void OnHitPlayer(Player player, int damage, bool crit)
|
||||
{
|
||||
int debufftype = CalamityMod.Instance.legendaryMode ? BuffID.Obstructed : BuffID.VortexDebuff;
|
||||
int duration = CalamityMod.Instance.legendaryMode ? 30 : 60;
|
||||
int debufftype = CalamityWorld.getFixedBoi ? BuffID.Obstructed : BuffID.VortexDebuff;
|
||||
int duration = CalamityWorld.getFixedBoi ? 30 : 60;
|
||||
if (damage > 0)
|
||||
player.AddBuff(debufftype, duration, true);
|
||||
}
|
||||
|
||||
@@ -101,7 +101,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
NPC.rotation = NPC.velocity.X * 0.1f;
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color drawColor) => CalamityMod.Instance.legendaryMode ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, NPC.alpha) : new Color(255, 255, 255, NPC.alpha);
|
||||
public override Color? GetAlpha(Color drawColor) => CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, NPC.alpha) : new Color(255, 255, 255, NPC.alpha);
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
@@ -111,10 +111,10 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
|
||||
Texture2D texture = TextureAssets.Npc[NPC.type].Value;
|
||||
Texture2D glow = ModContent.Request<Texture2D>("CalamityMod/NPCs/Crabulon/CrabShroomGlow").Value;
|
||||
Color colorToShift = CalamityMod.Instance.legendaryMode ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan;
|
||||
Color colorToShift = CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan;
|
||||
Color glowColor = Color.Lerp(Color.White, colorToShift, 0.5f);
|
||||
|
||||
int ClonesAroundShroom = CalamityMod.Instance.legendaryMode ? 4 : 0;
|
||||
int ClonesAroundShroom = CalamityWorld.getFixedBoi ? 4 : 0;
|
||||
for (int c = 0; c < 1 + ClonesAroundShroom; c++)
|
||||
{
|
||||
Vector2 drawOrigin = new Vector2(texture.Width / 2, texture.Height / Main.npcFrameCount[NPC.type] / 2);
|
||||
|
||||
@@ -538,7 +538,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 (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int x = num622 / 16;
|
||||
int y = (int)(NPC.position.Y + NPC.height) / 16;
|
||||
@@ -767,7 +767,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
}
|
||||
}
|
||||
|
||||
public override Color? GetAlpha(Color drawColor) => CalamityMod.Instance.legendaryMode ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, NPC.alpha) : new Color(255, 255, 255, NPC.alpha);
|
||||
public override Color? GetAlpha(Color drawColor) => CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB, NPC.alpha) : new Color(255, 255, 255, NPC.alpha);
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
@@ -781,10 +781,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 = CalamityMod.Instance.legendaryMode ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan;
|
||||
Color colorToShift = CalamityWorld.getFixedBoi ? new Color(Main.DiscoR, Main.DiscoG, Main.DiscoB) : Color.Cyan;
|
||||
Color glowColor = Color.Lerp(Color.White, colorToShift, 0.5f);
|
||||
|
||||
int ClonesOnEachSide = CalamityMod.Instance.legendaryMode ? 2 : 0;
|
||||
int ClonesOnEachSide = CalamityWorld.getFixedBoi ? 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);
|
||||
@@ -866,7 +866,7 @@ namespace CalamityMod.NPCs.Crabulon
|
||||
DownedBossSystem.downedCrabulon = true;
|
||||
CalamityNetcode.SyncWorld();
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
if (CalamityWorld.getFixedBoi && Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
for (int i = 0; i < Main.rand.Next(10, 23); i++)
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.World;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.GameContent.ItemDropRules;
|
||||
@@ -82,7 +83,7 @@ namespace CalamityMod.NPCs.Crags
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
int count = CalamityMod.Instance.legendaryMode ? 20 : 1; // remember that old oversight in the draedon update?
|
||||
int count = CalamityWorld.getFixedBoi ? 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>("CultistAssassin").Type, NPC.scale);
|
||||
|
||||
@@ -102,7 +102,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
if (Main.getGoodWorld)
|
||||
NPC.scale *= 0.8f;
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
@@ -118,7 +118,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override void BossHeadSlot(ref int index)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
index = pyroIconIndex;
|
||||
else
|
||||
index = cryoIconIndex;
|
||||
@@ -212,14 +212,14 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
bool phase7 = lifeRatio < (death ? 0.25f : 0.15f) && revenge;
|
||||
|
||||
// Projectile and sound variables
|
||||
int iceBlast = CalamityMod.Instance.legendaryMode ? ModContent.ProjectileType<BrimstoneBarrage>() : ModContent.ProjectileType<IceBlast>();
|
||||
int iceBomb = CalamityMod.Instance.legendaryMode ? ModContent.ProjectileType<SCalBrimstoneFireblast>() : ModContent.ProjectileType<IceBomb>();
|
||||
int iceRain = CalamityMod.Instance.legendaryMode ? ModContent.ProjectileType<BrimstoneBarrage>() : ModContent.ProjectileType<IceRain>();
|
||||
int dustType = CalamityMod.Instance.legendaryMode ? 235 : 67;
|
||||
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;
|
||||
|
||||
SoundStyle frostSound = CalamityMod.Instance.legendaryMode ? SoundID.Item20 : SoundID.Item28;
|
||||
NPC.HitSound = CalamityMod.Instance.legendaryMode ? SoundID.NPCHit41 : HitSound;
|
||||
NPC.DeathSound = CalamityMod.Instance.legendaryMode ? SoundID.NPCDeath14 : DeathSound;
|
||||
SoundStyle frostSound = CalamityWorld.getFixedBoi ? SoundID.Item20 : SoundID.Item28;
|
||||
NPC.HitSound = CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : HitSound;
|
||||
NPC.DeathSound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : DeathSound;
|
||||
|
||||
// Reset damage
|
||||
NPC.damage = NPC.defDamage;
|
||||
@@ -890,13 +890,13 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
int chance = 100;
|
||||
if (DateTime.Now.Month == 4 && DateTime.Now.Day == 1)
|
||||
chance = 20;
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
chance = 1;
|
||||
|
||||
if (Main.rand.NextBool(chance))
|
||||
{
|
||||
string key = CalamityMod.Instance.legendaryMode ? "Mods.CalamityMod.PyrogenBossText" : "Mods.CalamityMod.CryogenBossText";
|
||||
Color messageColor = CalamityMod.Instance.legendaryMode ? Color.Orange : Color.Cyan;
|
||||
string key = CalamityWorld.getFixedBoi ? "Mods.CalamityMod.PyrogenBossText" : "Mods.CalamityMod.CryogenBossText";
|
||||
Color messageColor = CalamityWorld.getFixedBoi ? Color.Orange : Color.Cyan;
|
||||
CalamityUtils.DisplayLocalizedText(key, messageColor);
|
||||
}
|
||||
}
|
||||
@@ -924,7 +924,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 = CalamityMod.Instance.legendaryMode ? 2f : NPC.target;
|
||||
float ai = CalamityWorld.getFixedBoi ? 2f : NPC.target;
|
||||
if (i > 0)
|
||||
{
|
||||
double angleA = radians * (phase7 ? 0.25 : 0.5) * (totalSpreads - i);
|
||||
@@ -1106,9 +1106,9 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
private void HandlePhaseTransition(int newPhase)
|
||||
{
|
||||
SoundStyle sound = CalamityMod.Instance.legendaryMode ? SoundID.NPCDeath14 : TransitionSound;
|
||||
SoundStyle sound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : TransitionSound;
|
||||
SoundEngine.PlaySound(sound, NPC.Center);
|
||||
if (Main.netMode != NetmodeID.Server && !CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int chipGoreAmount = newPhase >= 5 ? 3 : newPhase >= 3 ? 2 : 1;
|
||||
for (int i = 1; i < chipGoreAmount; i++)
|
||||
@@ -1144,7 +1144,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
float compactness = NPC.width * 0.6f;
|
||||
if (compactness < 10f)
|
||||
@@ -1177,7 +1177,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
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 = CalamityMod.Instance.legendaryMode ? Color.Red : drawColor;
|
||||
Color overlay = CalamityWorld.getFixedBoi ? Color.Red : drawColor;
|
||||
spriteBatch.Draw(texture, drawPos, NPC.frame, NPC.GetAlpha(overlay), NPC.rotation, origin, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
return false;
|
||||
@@ -1191,7 +1191,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
typeName = "Pyrogen";
|
||||
}
|
||||
@@ -1199,7 +1199,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
int dusttype = CalamityMod.Instance.legendaryMode ? 235 : 67;
|
||||
int dusttype = CalamityWorld.getFixedBoi ? 235 : 67;
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, hitDirection, -1f, 0, default, 1f);
|
||||
@@ -1224,7 +1224,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 && !CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi)
|
||||
{
|
||||
float randomSpread = Main.rand.Next(-200, 201) / 100f;
|
||||
for (int i = 1; i < 4; i++)
|
||||
@@ -1334,7 +1334,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
{
|
||||
if (damage > 0)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240, true);
|
||||
player.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120, true);
|
||||
|
||||
@@ -42,7 +42,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
NPC.alpha = 255;
|
||||
NPC.HitSound = Cryogen.HitSound;
|
||||
NPC.DeathSound = BreakSound;
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
@@ -58,8 +58,8 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
NPC.HitSound = CalamityMod.Instance.legendaryMode ? SoundID.NPCHit41 : Cryogen.HitSound;
|
||||
NPC.DeathSound = CalamityMod.Instance.legendaryMode ? SoundID.NPCDeath14 : BreakSound;
|
||||
NPC.HitSound = CalamityWorld.getFixedBoi ? SoundID.NPCHit41 : Cryogen.HitSound;
|
||||
NPC.DeathSound = CalamityWorld.getFixedBoi ? SoundID.NPCDeath14 : BreakSound;
|
||||
|
||||
NPC.alpha -= 3;
|
||||
if (NPC.alpha < 0)
|
||||
@@ -113,7 +113,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
{
|
||||
if (damage > 0)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<BrimstoneFlames>(), 240, true);
|
||||
player.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 120, true);
|
||||
@@ -134,7 +134,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
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 = CalamityMod.Instance.legendaryMode ? Color.Red : drawColor;
|
||||
Color overlay = CalamityWorld.getFixedBoi ? Color.Red : drawColor;
|
||||
spriteBatch.Draw(texture, drawPos, NPC.frame, NPC.GetAlpha(overlay), NPC.rotation, origin, NPC.scale, SpriteEffects.None, 0f);
|
||||
return false;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override void ModifyTypeName(ref string typeName)
|
||||
{
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
{
|
||||
typeName = "Pyrogen's Shield";
|
||||
}
|
||||
@@ -154,7 +154,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
|
||||
public override void HitEffect(int hitDirection, double damage)
|
||||
{
|
||||
int dusttype = CalamityMod.Instance.legendaryMode ? 235 : 67;
|
||||
int dusttype = CalamityWorld.getFixedBoi ? 235 : 67;
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, dusttype, hitDirection, -1f, 0, default, 1f);
|
||||
@@ -181,7 +181,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
Main.dust[num624].velocity *= 2f;
|
||||
}
|
||||
|
||||
if (Main.netMode != NetmodeID.Server && !CalamityMod.Instance.legendaryMode)
|
||||
if (Main.netMode != NetmodeID.Server && !CalamityWorld.getFixedBoi)
|
||||
{
|
||||
int totalGores = 16;
|
||||
double radians = MathHelper.TwoPi / totalGores;
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -168,7 +169,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
public override Color? GetAlpha(Color drawColor)
|
||||
{
|
||||
Color lightColor = Color.Orange * drawColor.A;
|
||||
Color newColor = CalamityMod.Instance.legendaryMode ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
Color newColor = CalamityWorld.getFixedBoi ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
return newColor * NPC.Opacity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
using CalamityMod.Events;
|
||||
using System;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.NPCs.DesertScourge
|
||||
{
|
||||
@@ -62,7 +63,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
NPC.Calamity().VulnerableToWater = true;
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
NPC.scale *= 2;
|
||||
}
|
||||
|
||||
@@ -454,7 +455,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
public override Color? GetAlpha(Color drawColor)
|
||||
{
|
||||
Color lightColor = Color.Orange * drawColor.A;
|
||||
Color newColor = CalamityMod.Instance.legendaryMode ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
Color newColor = CalamityWorld.getFixedBoi ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
return newColor * NPC.Opacity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -165,7 +166,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
public override Color? GetAlpha(Color drawColor)
|
||||
{
|
||||
Color lightColor = Color.Orange * drawColor.A;
|
||||
Color newColor = CalamityMod.Instance.legendaryMode ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
Color newColor = CalamityWorld.getFixedBoi ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
return newColor * NPC.Opacity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
public override void OnHitByProjectile(Projectile projectile, int damage, float knockback, bool crit)
|
||||
{
|
||||
// Sometimes "Deflect" projectiles in gfb into water blasts.
|
||||
if (Main.rand.NextBool(20) && CalamityMod.Instance.legendaryMode)
|
||||
if (Main.rand.NextBool(20) && CalamityWorld.getFixedBoi)
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
@@ -197,7 +197,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
public override Color? GetAlpha(Color drawColor)
|
||||
{
|
||||
Color lightColor = Color.MediumBlue * drawColor.A;
|
||||
Color newColor = CalamityMod.Instance.legendaryMode ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
Color newColor = CalamityWorld.getFixedBoi ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
return newColor * NPC.Opacity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
if (Main.getGoodWorld)
|
||||
NPC.scale *= 0.4f;
|
||||
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
NPC.scale *= 4f;
|
||||
|
||||
|
||||
@@ -218,7 +218,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
// become moist if in an aquatic biome
|
||||
if (CalamityMod.Instance.legendaryMode && (player.ZoneBeach || player.Calamity().ZoneAbyss || player.Calamity().ZoneSunkenSea || player.Calamity().ZoneSulphur) && NPC.CountNPCS(ModContent.NPCType<AquaticScourgeHead>()) < 1)
|
||||
if (CalamityWorld.getFixedBoi && (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;
|
||||
@@ -280,7 +280,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
{
|
||||
Vector2 perturbedSpeed = projectileVelocity.RotatedBy(MathHelper.Lerp(-rotation, rotation, i / (float)(numProj - 1)));
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.Normalize(perturbedSpeed) * 5f, perturbedSpeed, type, damage, 0f, Main.myPlayer);
|
||||
if (CalamityMod.Instance.legendaryMode)
|
||||
if (CalamityWorld.getFixedBoi)
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center + Vector2.Normalize(perturbedSpeed) * 3f, perturbedSpeed, type2, damage, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
@@ -797,7 +797,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
public override Color? GetAlpha(Color drawColor)
|
||||
{
|
||||
Color lightColor = Color.MediumBlue * drawColor.A;
|
||||
Color newColor = CalamityMod.Instance.legendaryMode ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
Color newColor = CalamityWorld.getFixedBoi ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
return newColor * NPC.Opacity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -183,7 +183,7 @@ namespace CalamityMod.NPCs.DesertScourge
|
||||
public override Color? GetAlpha(Color drawColor)
|
||||
{
|
||||
Color lightColor = Color.MediumBlue * drawColor.A;
|
||||
Color newColor = CalamityMod.Instance.legendaryMode ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
Color newColor = CalamityWorld.getFixedBoi ? lightColor : new Color(255, 255, 255, drawColor.A);
|
||||
return newColor * NPC.Opacity;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
NPC.height = 56;
|
||||
NPC.defense = 70;
|
||||
CalamityGlobalNPC global = NPC.Calamity();
|
||||
if (!CalamityMod.Instance.legendaryMode)
|
||||
if (!CalamityWorld.getFixedBoi)
|
||||
{
|
||||
global.DR = 0.925f;
|
||||
global.unbreakableDR = true;
|
||||
@@ -432,7 +432,7 @@ namespace CalamityMod.NPCs.DevourerofGods
|
||||
public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
// viable???, done here since it's conditional
|
||||
if (CalamityMod.Instance.legendaryMode && projectile.type == ModContent.ProjectileType<LaceratorYoyo>())
|
||||
if (CalamityWorld.getFixedBoi && projectile.type == ModContent.ProjectileType<LaceratorYoyo>())
|
||||
{
|
||||
damage *= 40;
|
||||
}
|
||||
|
||||