Renames (*CausticEdge internal name held captive)
Big Sightseer -> Sightseer Spitter Small Sightseer -> Sightseer Collider Cultist Assassin -> Renegade Warlock (also renamed banners for the above) Crimulan Slime God -> Crimulan Paladin Ebonian Slime God -> Ebonian Paladin Cold Divinity -> Glacial Embrace Caustic Edge -> Tainted Blade True Caustic Edge -> Caustic Edge Tyrant Yharim's Ultisword -> Blighted Cleaver True Tyrant's Ultisword -> Defiled Greatsword Fixed Atlas Banner tooltip saying "Grants bonus to Atlas Banner"
No files matched your search
@@ -4,7 +4,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class ColdDivinityBuff : ModBuff
|
||||
public class GlacialEmbraceBuff : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -16,8 +16,8 @@ namespace CalamityMod.Buffs.Summon
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.coldDivinity = true;
|
||||
if (!modPlayer.coldDivinity)
|
||||
modPlayer.GlacialEmbrace = true;
|
||||
if (!modPlayer.GlacialEmbrace)
|
||||
{
|
||||
player.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
|
Before Width: | Height: | Size: 737 B After Width: | Height: | Size: 737 B |
@@ -933,7 +933,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool saros = false;
|
||||
public bool plaguebringerMK2 = false;
|
||||
public bool igneousExaltation = false;
|
||||
public bool coldDivinity = false;
|
||||
public bool GlacialEmbrace = false;
|
||||
public bool voidAura = false;
|
||||
public bool voidAuraDamage = false;
|
||||
public bool voidConcentrationAura = false;
|
||||
@@ -1963,7 +1963,7 @@ namespace CalamityMod.CalPlayer
|
||||
providenceStabber = false;
|
||||
plaguebringerMK2 = false;
|
||||
igneousExaltation = false;
|
||||
coldDivinity = false;
|
||||
GlacialEmbrace = false;
|
||||
voidAura = false;
|
||||
voidAuraDamage = false;
|
||||
voidConcentrationAura = false;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.2 KiB |
@@ -6,7 +6,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
public class ColdDivinityOverlayLayer : PlayerDrawLayer
|
||||
public class GlacialEmbraceOverlayLayer : PlayerDrawLayer
|
||||
{
|
||||
public override Position GetDefaultPosition() => new BeforeParent(PlayerDrawLayers.Skin);
|
||||
|
||||
@@ -14,12 +14,12 @@ namespace CalamityMod.CalPlayer.DrawLayers
|
||||
{
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
CalamityPlayer modPlayer = drawPlayer.Calamity();
|
||||
return drawInfo.shadow == 0f && !drawPlayer.dead && modPlayer.coldDivinity;
|
||||
return drawInfo.shadow == 0f && !drawPlayer.dead && modPlayer.GlacialEmbrace;
|
||||
}
|
||||
|
||||
protected override void Draw(ref PlayerDrawSet drawInfo)
|
||||
{
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/ColdDivinityBody").Value;
|
||||
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/GlacialEmbraceBody").Value;
|
||||
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X);
|
||||
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
@@ -936,10 +936,10 @@ namespace CalamityMod
|
||||
NPCType<PerforatorTailLarge>(),
|
||||
NPCType<PerforatorTailMedium>(),
|
||||
NPCType<PerforatorTailSmall>(),
|
||||
NPCType<EbonianSlimeGod>(),
|
||||
NPCType<CrimulanSlimeGod>(),
|
||||
NPCType<SplitEbonianSlimeGod>(),
|
||||
NPCType<SplitCrimulanSlimeGod>(),
|
||||
NPCType<EbonianPaladin>(),
|
||||
NPCType<CrimulanPaladin>(),
|
||||
NPCType<SplitEbonianPaladin>(),
|
||||
NPCType<SplitCrimulanPaladin>(),
|
||||
NPCType<Horse>(),
|
||||
NPCType<ThiccWaifu>(),
|
||||
NPCType<CryogenShield>(),
|
||||
@@ -993,7 +993,7 @@ namespace CalamityMod
|
||||
NPCType<CrimulanBlightSlime>(),
|
||||
NPCType<Cryon>(),
|
||||
NPCType<CryoSlime>(),
|
||||
NPCType<CultistAssassin>(),
|
||||
NPCType<RenegadeWarlock>(),
|
||||
NPCType<DespairStone>(),
|
||||
NPCType<EbonianBlightSlime>(),
|
||||
NPCType<FearlessGoldfishWarrior>(),
|
||||
@@ -2091,10 +2091,10 @@ namespace CalamityMod
|
||||
|
||||
SlimeGodIDs = new List<int>
|
||||
{
|
||||
NPCType<EbonianSlimeGod>(),
|
||||
NPCType<CrimulanSlimeGod>(),
|
||||
NPCType<SplitEbonianSlimeGod>(),
|
||||
NPCType<SplitCrimulanSlimeGod>(),
|
||||
NPCType<EbonianPaladin>(),
|
||||
NPCType<CrimulanPaladin>(),
|
||||
NPCType<SplitEbonianPaladin>(),
|
||||
NPCType<SplitCrimulanPaladin>(),
|
||||
NPCType<SlimeGodCore>()
|
||||
};
|
||||
|
||||
@@ -2532,8 +2532,8 @@ namespace CalamityMod
|
||||
{ NPCID.QueenBee, 9 },
|
||||
{ NPCID.SkeletronHead, 10 },
|
||||
{ NPCType<SlimeGodCore>(), 11 },
|
||||
{ NPCType<SplitEbonianSlimeGod>(), 11 },
|
||||
{ NPCType<SplitCrimulanSlimeGod>(), 11 },
|
||||
{ NPCType<SplitEbonianPaladin>(), 11 },
|
||||
{ NPCType<SplitCrimulanPaladin>(), 11 },
|
||||
{ NPCID.WallofFlesh, 12 },
|
||||
{ NPCType<Cryogen>(), 13 },
|
||||
{ NPCID.Retinazer, 14 },
|
||||
@@ -2600,10 +2600,10 @@ namespace CalamityMod
|
||||
NPCType<HiveBlob2>(),
|
||||
NPCType<DankCreeper>(),
|
||||
NPCID.SkeletronHand,
|
||||
NPCType<EbonianSlimeGod>(),
|
||||
NPCType<SplitEbonianSlimeGod>(),
|
||||
NPCType<CrimulanSlimeGod>(),
|
||||
NPCType<SplitCrimulanSlimeGod>(),
|
||||
NPCType<EbonianPaladin>(),
|
||||
NPCType<SplitEbonianPaladin>(),
|
||||
NPCType<CrimulanPaladin>(),
|
||||
NPCType<SplitCrimulanPaladin>(),
|
||||
NPCType<CorruptSlimeSpawn>(),
|
||||
NPCType<CorruptSlimeSpawn2>(),
|
||||
NPCType<CrimsonSlimeSpawn>(),
|
||||
|
||||
@@ -706,10 +706,10 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<HiveMind>(), 7200 }, // 2:00 (120 seconds)
|
||||
{ ModContent.NPCType<PerforatorHive>(), 7200 }, // 2:00 (120 seconds)
|
||||
{ ModContent.NPCType<SlimeGodCore>(), 9000 }, // 2:30 (150 seconds) -- total length of Slime God fight
|
||||
{ ModContent.NPCType<EbonianSlimeGod>(), 4500 }, // 1:15 (75 seconds)
|
||||
{ ModContent.NPCType<CrimulanSlimeGod>(), 4500 }, // 1:15 (75 seconds)
|
||||
{ ModContent.NPCType<SplitEbonianSlimeGod>(), 4500 }, // 1:15 (75 seconds) -- split slimes should spawn at 1:15 and die at around 2:30
|
||||
{ ModContent.NPCType<SplitCrimulanSlimeGod>(), 4500 }, // 1:15 (75 seconds)
|
||||
{ ModContent.NPCType<EbonianPaladin>(), 4500 }, // 1:15 (75 seconds)
|
||||
{ ModContent.NPCType<CrimulanPaladin>(), 4500 }, // 1:15 (75 seconds)
|
||||
{ ModContent.NPCType<SplitEbonianPaladin>(), 4500 }, // 1:15 (75 seconds) -- split slimes should spawn at 1:15 and die at around 2:30
|
||||
{ ModContent.NPCType<SplitCrimulanPaladin>(), 4500 }, // 1:15 (75 seconds)
|
||||
{ ModContent.NPCType<Cryogen>(), 10800 }, // 3:00 (180 seconds)
|
||||
{ ModContent.NPCType<AquaticScourgeHead>(), 7200 }, // 2:00 (120 seconds)
|
||||
{ ModContent.NPCType<AquaticScourgeBody>(), 7200 },
|
||||
@@ -814,10 +814,10 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<PerforatorBodySmall>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<PerforatorTailSmall>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<SlimeGodCore>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<EbonianSlimeGod>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<CrimulanSlimeGod>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<SplitEbonianSlimeGod>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<SplitCrimulanSlimeGod>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<EbonianPaladin>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<CrimulanPaladin>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<SplitEbonianPaladin>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<SplitCrimulanPaladin>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<Cryogen>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<AquaticScourgeHead>(), bitingEnemeyVelocityScale },
|
||||
|
||||
@@ -352,10 +352,10 @@ namespace CalamityMod
|
||||
{ NPCID.ChaosBall, new int[] { -1, -1, -1, 40, 60 } },
|
||||
|
||||
{ ModContent.NPCType<SlimeGodCore>(), new int[] { 40, 80, 96, 104, 135 } },
|
||||
{ ModContent.NPCType<EbonianSlimeGod>(), new int[] { 45, 90, 108, 118, 150 } },
|
||||
{ ModContent.NPCType<SplitEbonianSlimeGod>(), new int[] { 40, 80, 96, 104, 135 } },
|
||||
{ ModContent.NPCType<CrimulanSlimeGod>(), new int[] { 50, 100, 120, 130, 171 } },
|
||||
{ ModContent.NPCType<SplitCrimulanSlimeGod>(), new int[] { 45, 90, 108, 118, 150 } },
|
||||
{ ModContent.NPCType<EbonianPaladin>(), new int[] { 45, 90, 108, 118, 150 } },
|
||||
{ ModContent.NPCType<SplitEbonianPaladin>(), new int[] { 40, 80, 96, 104, 135 } },
|
||||
{ ModContent.NPCType<CrimulanPaladin>(), new int[] { 50, 100, 120, 130, 171 } },
|
||||
{ ModContent.NPCType<SplitCrimulanPaladin>(), new int[] { 45, 90, 108, 118, 150 } },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn>(), new int[] { 30, 60, 72, 78, 99 } },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn2>(), new int[] { 20, 40, 48, 52, 66 } },
|
||||
{ ModContent.NPCType<CrimsonSlimeSpawn>(), new int[] { 35, 70, 84, 92, 120 } },
|
||||
@@ -578,10 +578,10 @@ namespace CalamityMod
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 92, 126 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SlimeGodCore>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EbonianSlimeGod>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 92, 126 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrimulanSlimeGod>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SplitEbonianSlimeGod>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 38, 60, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SplitCrimulanSlimeGod>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 34, 52, 68, 74, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<EbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 42, 68, 84, 92, 126 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 38, 60, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SplitEbonianPaladin>(), ModContent.ProjectileType<UnstableEbonianGlob>()), new int[] { 38, 60, 76, 84, 114 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<SplitCrimulanPaladin>(), ModContent.ProjectileType<UnstableCrimulanGlob>()), new int[] { 34, 52, 68, 74, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CorruptSlimeSpawn>(), ModContent.ProjectileType<ShadeNimbusHostile>()), new int[] { 36, 56, 68, 76, 102 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<CrimsonSlimeSpawn2>(), ModContent.ProjectileType<CrimsonSpike>()), new int[] { 24, 48, 60, 68, 90 } },
|
||||
|
||||
|
||||
@@ -186,7 +186,7 @@ namespace CalamityMod.Events
|
||||
CalamityUtils.BossAwakenMessage(sans);
|
||||
}, permittedNPCs: NPCID.SkeletronHand),
|
||||
|
||||
new Boss(ModContent.NPCType<SlimeGodCore>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<EbonianSlimeGod>(), ModContent.NPCType<CrimulanSlimeGod>(), ModContent.NPCType<SplitEbonianSlimeGod>(), ModContent.NPCType<SplitCrimulanSlimeGod>(),
|
||||
new Boss(ModContent.NPCType<SlimeGodCore>(), TimeChangeContext.Day, permittedNPCs: new int[] { ModContent.NPCType<EbonianPaladin>(), ModContent.NPCType<CrimulanPaladin>(), ModContent.NPCType<SplitEbonianPaladin>(), ModContent.NPCType<SplitCrimulanPaladin>(),
|
||||
ModContent.NPCType<CorruptSlimeSpawn>(), ModContent.NPCType<CorruptSlimeSpawn2>(), ModContent.NPCType<CrimsonSlimeSpawn>(), ModContent.NPCType<CrimsonSlimeSpawn2>() }),
|
||||
|
||||
new Boss(NPCID.WallofFlesh, spawnContext: type =>
|
||||
|
||||
|
Before Width: | Height: | Size: 329 B After Width: | Height: | Size: 329 B |
|
Before Width: | Height: | Size: 522 B After Width: | Height: | Size: 522 B |
|
Before Width: | Height: | Size: 410 B After Width: | Height: | Size: 410 B |
|
Before Width: | Height: | Size: 416 B After Width: | Height: | Size: 416 B |
|
Before Width: | Height: | Size: 278 B After Width: | Height: | Size: 278 B |
|
Before Width: | Height: | Size: 320 B After Width: | Height: | Size: 320 B |
|
Before Width: | Height: | Size: 275 B After Width: | Height: | Size: 275 B |
|
Before Width: | Height: | Size: 247 B After Width: | Height: | Size: 247 B |
|
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
|
Before Width: | Height: | Size: 304 B After Width: | Height: | Size: 304 B |
|
Before Width: | Height: | Size: 391 B After Width: | Height: | Size: 391 B |
|
Before Width: | Height: | Size: 402 B After Width: | Height: | Size: 402 B |
|
Before Width: | Height: | Size: 309 B After Width: | Height: | Size: 309 B |
@@ -698,13 +698,13 @@ namespace CalamityMod.Items
|
||||
}
|
||||
return false;
|
||||
}
|
||||
if (player.ActiveItem().type == ModContent.ItemType<ColdDivinity>())
|
||||
if (player.ActiveItem().type == ModContent.ItemType<GlacialEmbrace>())
|
||||
{
|
||||
bool canContinue = true;
|
||||
int count = 0;
|
||||
for (int i = 0; i < Main.projectile.Length; i++)
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].type == ModContent.ProjectileType<ColdDivinityPointyThing>() && Main.projectile[i].owner == player.whoAmI)
|
||||
if (Main.projectile[i].active && Main.projectile[i].type == ModContent.ProjectileType<GlacialEmbracePointyThing>() && Main.projectile[i].owner == player.whoAmI)
|
||||
{
|
||||
if (Main.projectile[i].ai[1] > 1f)
|
||||
{
|
||||
@@ -713,7 +713,7 @@ namespace CalamityMod.Items
|
||||
}
|
||||
else if (Main.projectile[i].ai[1] == 0f)
|
||||
{
|
||||
if (((ColdDivinityPointyThing)Main.projectile[i].ModProjectile).circlingPlayer)
|
||||
if (((GlacialEmbracePointyThing)Main.projectile[i].ModProjectile).circlingPlayer)
|
||||
count++;
|
||||
}
|
||||
}
|
||||
@@ -732,8 +732,8 @@ namespace CalamityMod.Items
|
||||
{
|
||||
if (Main.projectile.Length == Main.maxProjectiles)
|
||||
break;
|
||||
int coldDivinityDamage = (int)player.GetTotalDamage<SummonDamageClass>().ApplyTo(80);
|
||||
int projj = Projectile.NewProjectile(source, Main.MouseWorld, Vector2.Zero, ModContent.ProjectileType<ColdDivinityPointyThing>(), coldDivinityDamage, 1f, player.whoAmI, angle, 2f);
|
||||
int GlacialEmbraceDamage = (int)player.GetTotalDamage<SummonDamageClass>().ApplyTo(80);
|
||||
int projj = Projectile.NewProjectile(source, Main.MouseWorld, Vector2.Zero, ModContent.ProjectileType<GlacialEmbracePointyThing>(), GlacialEmbraceDamage, 1f, player.whoAmI, angle, 2f);
|
||||
Main.projectile[projj].originalDamage = 80;
|
||||
|
||||
angle += angleVariance;
|
||||
|
||||
@@ -5,7 +5,8 @@ using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Banners
|
||||
{
|
||||
public class CultistAssassinBanner : ModItem, ILocalizedModType
|
||||
[LegacyName("CultistAssassinBanner")]
|
||||
public class RenegadeWarlockBanner : ModItem, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
|
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 312 B |
@@ -4,7 +4,8 @@ using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Placeables.Banners
|
||||
{
|
||||
public class SmallSightseerBanner : ModItem, ILocalizedModType
|
||||
[LegacyName("SmallSightseerBanner")]
|
||||
public class SightseerColliderBanner : ModItem, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
|
Before Width: | Height: | Size: 333 B After Width: | Height: | Size: 333 B |
@@ -5,7 +5,8 @@ using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Banners
|
||||
{
|
||||
public class BigSightseerBanner : ModItem, ILocalizedModType
|
||||
[LegacyName("BigSightseerBanner")]
|
||||
public class SightseerSpitterBanner : ModItem, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
|
Before Width: | Height: | Size: 318 B After Width: | Height: | Size: 318 B |
@@ -69,7 +69,7 @@ namespace CalamityMod.Items.TreasureBags
|
||||
ModContent.ItemType<HoarfrostBow>(),
|
||||
ModContent.ItemType<SnowstormStaff>(),
|
||||
}));
|
||||
itemLoot.Add(ModContent.ItemType<ColdDivinity>(), 10);
|
||||
itemLoot.Add(ModContent.ItemType<GlacialEmbrace>(), 10);
|
||||
|
||||
// Equipment
|
||||
itemLoot.Add(ModContent.ItemType<SoulofCryogen>());
|
||||
|
||||
@@ -7,7 +7,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public class TyrantYharimsUltisword : ModItem, ILocalizedModType
|
||||
[LegacyName("TyrantYharimsUltisword")]
|
||||
public class BlightedCleaver : ModItem, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Items.Weapons.Melee";
|
||||
public override void SetDefaults()
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -10,7 +10,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public class TrueTyrantYharimsUltisword : ModItem, ILocalizedModType
|
||||
[LegacyName("TrueTyrantYharimsUltisword")]
|
||||
public class DefiledGreatsword : ModItem, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Items.Weapons.Melee";
|
||||
public override void SetDefaults()
|
||||
@@ -76,7 +77,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<TyrantYharimsUltisword>().
|
||||
AddIngredient<BlightedCleaver>().
|
||||
AddIngredient<CoreofCalamity>().
|
||||
AddIngredient<UelibloomBar>(15).
|
||||
AddTile(TileID.DemonAltar).
|
||||
|
Before Width: | Height: | Size: 2.3 KiB After Width: | Height: | Size: 2.3 KiB |
@@ -6,7 +6,8 @@ using CalamityMod.Items.Placeables;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public class CausticEdge : ModItem, ILocalizedModType
|
||||
[LegacyName("CausticEdge")]
|
||||
public class TaintedBlade : ModItem, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Items.Weapons.Melee";
|
||||
public override void SetDefaults()
|
||||
|
Before Width: | Height: | Size: 801 B After Width: | Height: | Size: 801 B |
@@ -7,6 +7,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
// Thanks a lot for naming it Caustic Edge :)
|
||||
public class TrueCausticEdge : ModItem, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Items.Weapons.Melee";
|
||||
@@ -54,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CausticEdge>().
|
||||
AddIngredient<TaintedBlade>().
|
||||
AddRecipeGroup("AnyEvilFlask", 5).
|
||||
AddIngredient(ItemID.FlaskofPoison, 5).
|
||||
AddIngredient(ItemID.Deathweed, 4).
|
||||
|
||||
@@ -8,7 +8,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
public class ColdDivinity : ModItem, ILocalizedModType
|
||||
[LegacyName("ColdDivinity")]
|
||||
public class GlacialEmbrace : ModItem, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Items.Weapons.Summon";
|
||||
public override void SetDefaults()
|
||||
@@ -23,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.knockBack = 4.5f;
|
||||
Item.UseSound = SoundID.Item30;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<ColdDivinityPointyThing>();
|
||||
Item.shoot = ModContent.ProjectileType<GlacialEmbracePointyThing>();
|
||||
Item.shootSpeed = 10f;
|
||||
Item.DamageType = DamageClass.Summon;
|
||||
|
||||
@@ -43,7 +44,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
}
|
||||
if (player.altFunctionUse != 2 && totalMinionSlots < player.maxMinions)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<ColdDivinityBuff>(), 120, true);
|
||||
player.AddBuff(ModContent.BuffType<GlacialEmbraceBuff>(), 120, true);
|
||||
position = Main.MouseWorld;
|
||||
int p = Projectile.NewProjectile(source, position, Vector2.Zero, type, damage, knockback, player.whoAmI);
|
||||
if (Main.projectile.IndexInRange(p))
|
||||
@@ -53,7 +54,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].type == type && Main.projectile[i].owner == player.whoAmI)
|
||||
{
|
||||
if (!(Main.projectile[i].ModProjectile as ColdDivinityPointyThing).circlingPlayer)
|
||||
if (!(Main.projectile[i].ModProjectile as GlacialEmbracePointyThing).circlingPlayer)
|
||||
continue;
|
||||
pointyThingCount++;
|
||||
}
|
||||
@@ -64,7 +65,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].type == type && Main.projectile[i].owner == player.whoAmI && Main.projectile[i].ai[1] == 0f)
|
||||
{
|
||||
if (!(Main.projectile[i].ModProjectile as ColdDivinityPointyThing).circlingPlayer)
|
||||
if (!(Main.projectile[i].ModProjectile as GlacialEmbracePointyThing).circlingPlayer)
|
||||
continue;
|
||||
Main.projectile[i].ai[0] = angle;
|
||||
Main.projectile[i].netUpdate = true;
|
||||
|
Before Width: | Height: | Size: 831 B After Width: | Height: | Size: 831 B |
@@ -1052,8 +1052,8 @@ CloudyWaifu: {
|
||||
Description: The Cloud Elemental will protect you
|
||||
}
|
||||
|
||||
ColdDivinityBuff: {
|
||||
DisplayName: Cold Divinity
|
||||
GlacialEmbraceBuff: {
|
||||
DisplayName: Glacial Embrace
|
||||
Description: The magic of the ancient ice castle will aid you
|
||||
}
|
||||
|
||||
|
||||
@@ -167,7 +167,7 @@ AstralSlimeBanner: {
|
||||
|
||||
AtlasBanner: {
|
||||
DisplayName: Atlas Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Atlas Banner"
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Atlas"
|
||||
}
|
||||
|
||||
BabyFlakCrabBanner: {
|
||||
@@ -185,9 +185,9 @@ BelchingCoralBanner: {
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Belching Coral"
|
||||
}
|
||||
|
||||
BigSightseerBanner: {
|
||||
DisplayName: Big Sightseer Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Big Sightseer"
|
||||
SightseerSpitterBanner: {
|
||||
DisplayName: Sightseer Spitter Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Sightseer Spitter"
|
||||
}
|
||||
|
||||
BlindedAnglerBanner: {
|
||||
@@ -280,9 +280,9 @@ CrystalCrawlerBanner: {
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Crystal Crawler"
|
||||
}
|
||||
|
||||
CultistAssassinBanner: {
|
||||
DisplayName: Cultist Assassin Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Cultist Assassin"
|
||||
RenegadeWarlockBanner: {
|
||||
DisplayName: Renegade Warlock Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Renegade Warlock"
|
||||
}
|
||||
|
||||
CuttlefishBanner: {
|
||||
@@ -590,9 +590,9 @@ SkyfinBanner: {
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Skyfin"
|
||||
}
|
||||
|
||||
SmallSightseerBanner: {
|
||||
DisplayName: Small Sightseer Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Small Sightseer"
|
||||
SightseerColliderBanner: {
|
||||
DisplayName: Sightseer Collider Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Sightseer Collider"
|
||||
}
|
||||
|
||||
SoulSlurperBanner: {
|
||||
|
||||
@@ -214,8 +214,8 @@ CatastropheClaymore: {
|
||||
Tooltip: Fires sparkles which inflict Frostbite, Hellfire, or Ichor
|
||||
}
|
||||
|
||||
CausticEdge: {
|
||||
DisplayName: Caustic Edge
|
||||
TaintedBlade: {
|
||||
DisplayName: Tainted Blade
|
||||
Tooltip: Inflicts poison on enemy hits
|
||||
}
|
||||
|
||||
@@ -1211,7 +1211,7 @@ TrueBiomeBlade: {
|
||||
}
|
||||
|
||||
TrueCausticEdge: {
|
||||
DisplayName: True Caustic Edge
|
||||
DisplayName: Caustic Edge
|
||||
Tooltip:
|
||||
'''
|
||||
Fires a bouncing caustic beam
|
||||
@@ -1219,8 +1219,8 @@ TrueCausticEdge: {
|
||||
'''
|
||||
}
|
||||
|
||||
TrueTyrantYharimsUltisword: {
|
||||
DisplayName: True Tyrant's Ultisword
|
||||
DefiledGreatsword: {
|
||||
DisplayName: Defiled Greatsword
|
||||
Tooltip:
|
||||
'''
|
||||
Fires blazing, hyper, and sunlight blades
|
||||
@@ -1239,8 +1239,8 @@ TyphonsGreed: {
|
||||
Tooltip: Summons water spirits while in use
|
||||
}
|
||||
|
||||
TyrantYharimsUltisword: {
|
||||
DisplayName: Tyrant Yharim's Ultisword
|
||||
BlightedCleaver: {
|
||||
DisplayName: Blighted Cleaver
|
||||
Tooltip:
|
||||
'''
|
||||
Fires homing blazing blades
|
||||
|
||||
@@ -140,8 +140,8 @@ Cnidarian: {
|
||||
'''
|
||||
}
|
||||
|
||||
ColdDivinity: {
|
||||
DisplayName: Cold Divinity
|
||||
GlacialEmbrace: {
|
||||
DisplayName: Glacial Embrace
|
||||
Tooltip:
|
||||
'''
|
||||
Summons the power of the ancient ice castle
|
||||
|
||||
@@ -57,14 +57,14 @@ AstralProbe.DisplayName: Astral Probe
|
||||
AstralSeekerSpit.DisplayName: Seeker Spit
|
||||
AstralSlime.DisplayName: Astral Slime
|
||||
Atlas.DisplayName: Atlas
|
||||
BigSightseer.DisplayName: Big Sightseer
|
||||
SightseerSpitter.DisplayName: Sightseer Spitter
|
||||
FusionFeeder.DisplayName: Fusion Feeder
|
||||
Hadarian.DisplayName: Hadarian
|
||||
HiveEnemy.DisplayName: Hive
|
||||
Hiveling.DisplayName: Hiveling
|
||||
Mantis.DisplayName: Mantis
|
||||
Nova.DisplayName: Nova
|
||||
SmallSightseer.DisplayName: Small Sightseer
|
||||
SightseerCollider.DisplayName: Sightseer Collider
|
||||
StellarCulex.DisplayName: Stellar Culex
|
||||
Twinkler.DisplayName: Twinkler
|
||||
AstrumAureus.DisplayName: Astrum Aureus
|
||||
@@ -86,7 +86,7 @@ CrabShroom.DisplayName: Crab Shroom
|
||||
Crabulon.DisplayName: Crabulon
|
||||
CalamityEye.DisplayName: Calamity Eye
|
||||
CharredSlime.DisplayName: Charred Slime
|
||||
CultistAssassin.DisplayName: Cultist Assassin
|
||||
RenegadeWarlock.DisplayName: Renegade Warlock
|
||||
DespairStone.DisplayName: Despair Stone
|
||||
HeatSpirit.DisplayName: Heat Spirit
|
||||
Scryllar.DisplayName: Scryllar
|
||||
@@ -245,11 +245,11 @@ CorruptSlimeSpawn.DisplayName: Corrupt Slime Spawn
|
||||
CorruptSlimeSpawn2.DisplayName: Corrupt Slime Spawn
|
||||
CrimsonSlimeSpawn.DisplayName: Crimson Slime Spawn
|
||||
CrimsonSlimeSpawn2.DisplayName: Crimson Slime Spawn
|
||||
CrimulanSlimeGod.DisplayName: Crimulan Slime God
|
||||
EbonianSlimeGod.DisplayName: Ebonian Slime God
|
||||
CrimulanPaladin.DisplayName: Crimulan Paladin
|
||||
EbonianPaladin.DisplayName: Ebonian Paladin
|
||||
SlimeGodCore.DisplayName: The Slime God
|
||||
SplitCrimulanSlimeGod.DisplayName: Crimulan Slime God
|
||||
SplitEbonianSlimeGod.DisplayName: Ebonian Slime God
|
||||
SplitCrimulanPaladin.DisplayName: Crimulan Paladin
|
||||
SplitEbonianPaladin.DisplayName: Ebonian Paladin
|
||||
StormWeaverBody.DisplayName: Storm Weaver
|
||||
StormWeaverHead.DisplayName: Storm Weaver
|
||||
StormWeaverTail.DisplayName: Storm Weaver
|
||||
|
||||
@@ -58,7 +58,7 @@ CinderBlossom.DisplayName: Cinder Blossom
|
||||
CloudElementalMinion.DisplayName: Cloudy Waifu
|
||||
CnidarianJellyfishOnTheString.DisplayName: Cnidarian
|
||||
CnidarianSpark.DisplayName: Spark
|
||||
ColdDivinityPointyThing.DisplayName: Ice Castle Shard
|
||||
GlacialEmbracePointyThing.DisplayName: Ice Castle Shard
|
||||
CorroslimeMinion.DisplayName: Corroslime
|
||||
CorruptionSlimeGodMinion.DisplayName: Slime God
|
||||
CosmicBlast.DisplayName: Blast
|
||||
|
||||
@@ -454,7 +454,7 @@ namespace CalamityMod
|
||||
// Slime God
|
||||
{
|
||||
BossDifficulty.TryGetValue("SlimeGod", out float order);
|
||||
List<int> bosses = new List<int>() { NPCType<SlimeGodCore>(), NPCType<EbonianSlimeGod>(), NPCType<CrimulanSlimeGod>() };
|
||||
List<int> bosses = new List<int>() { NPCType<SlimeGodCore>(), NPCType<EbonianPaladin>(), NPCType<CrimulanPaladin>() };
|
||||
int summon = ItemType<OverloadedSludge>();
|
||||
List<int> collection = new List<int>() { ItemType<SlimeGodTrophy>(), ItemType<SlimeGodMask>(), ItemType<SlimeGodMask2>(), ItemType<LoreSlimeGod>(), ItemType<ThankYouPainting>() };
|
||||
string instructions = $"Use an [i:{summon}]";
|
||||
@@ -1132,7 +1132,7 @@ namespace CalamityMod
|
||||
RegisterSummon(ItemType<HauntedScroll>(), BuffType<HauntedDishesBuff>(), ProjectileType<HauntedDishes>());
|
||||
RegisterSummon(ItemType<ForgottenApexWand>(), BuffType<AncientMineralSharkBuff>(), ProjectileType<ApexShark>());
|
||||
RegisterSummon(ItemType<DaedalusGolemStaff>(), BuffType<DaedalusGolemBuff>(), ProjectileType<DaedalusGolem>());
|
||||
RegisterSummon(ItemType<ColdDivinity>(), BuffType<ColdDivinityBuff>(), ProjectileType<ColdDivinityPointyThing>());
|
||||
RegisterSummon(ItemType<GlacialEmbrace>(), BuffType<GlacialEmbraceBuff>(), ProjectileType<GlacialEmbracePointyThing>());
|
||||
RegisterSummon(ItemType<MountedScanner>(), BuffType<MountedScannerBuff>(), ProjectileType<MountedScannerSummon>());
|
||||
RegisterSummon(ItemType<DeepseaStaff>(), BuffType<AquaticStar>(), ProjectileType<AquaticStarMinion>());
|
||||
RegisterSummon(ItemType<SunGodStaff>(), BuffType<SolarGodSpiritBuff>(), ProjectileType<SolarGod>());
|
||||
|
||||
@@ -17,7 +17,7 @@ using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.NPCs.Astral
|
||||
{
|
||||
public class SmallSightseer : ModNPC
|
||||
public class SightseerCollider : ModNPC
|
||||
{
|
||||
private static Texture2D glowmask;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
Main.npcFrameCount[NPC.type] = 4;
|
||||
|
||||
if (!Main.dedServ)
|
||||
glowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/Astral/SmallSightseerGlow", AssetRequestMode.ImmediateLoad).Value;
|
||||
glowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/Astral/SightseerColliderGlow", AssetRequestMode.ImmediateLoad).Value;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
|
||||
{
|
||||
PortraitPositionXOverride = 0
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.value = Item.buyPrice(0, 0, 10, 0);
|
||||
NPC.aiStyle = -1;
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<SmallSightseerBanner>();
|
||||
BannerItem = ModContent.ItemType<SightseerColliderBanner>();
|
||||
if (DownedBossSystem.downedAstrumAureus)
|
||||
{
|
||||
NPC.damage = 58;
|
||||
@@ -122,7 +122,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
float rand = Main.rand.NextFloat(-0.18f, 0.18f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find<ModGore>("SmallSightseerGore" + i).Type);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find<ModGore>("SightseerColliderGore" + i).Type);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.9 KiB After Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 4.1 KiB After Width: | Height: | Size: 4.1 KiB |
@@ -17,7 +17,7 @@ using CalamityMod.Sounds;
|
||||
|
||||
namespace CalamityMod.NPCs.Astral
|
||||
{
|
||||
public class BigSightseer : ModNPC
|
||||
public class SightseerSpitter : ModNPC
|
||||
{
|
||||
private static Texture2D glowmask;
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
{
|
||||
Main.npcFrameCount[NPC.type] = 4;
|
||||
if (!Main.dedServ)
|
||||
glowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/Astral/BigSightseerGlow", AssetRequestMode.ImmediateLoad).Value;
|
||||
glowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/Astral/SightseerSpitterGlow", AssetRequestMode.ImmediateLoad).Value;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers value = new NPCID.Sets.NPCBestiaryDrawModifiers(0)
|
||||
{
|
||||
Scale = 0.7f,
|
||||
@@ -51,7 +51,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
NPC.value = Item.buyPrice(0, 0, 20, 0);
|
||||
NPC.aiStyle = -1;
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<BigSightseerBanner>();
|
||||
BannerItem = ModContent.ItemType<SightseerSpitterBanner>();
|
||||
if (DownedBossSystem.downedAstrumAureus)
|
||||
{
|
||||
NPC.damage = 85;
|
||||
@@ -150,7 +150,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
for (int i = 0; i < 5; i++)
|
||||
{
|
||||
float rand = Main.rand.NextFloat(-0.18f, 0.18f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find<ModGore>("BigSightseerGore" + i).Type);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position + new Vector2(Main.rand.NextFloat(0f, NPC.width), Main.rand.NextFloat(0f, NPC.height)), NPC.velocity * rand, Mod.Find<ModGore>("SightseerSpitterGore" + i).Type);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -248,7 +248,7 @@ namespace CalamityMod.NPCs.Astral
|
||||
{
|
||||
if (modifiers.GetDamage(NPC.damage, 0f, 0f) > 0)
|
||||
{
|
||||
if (target.HasNPCBannerBuff(ModContent.NPCType<BigSightseer>()))
|
||||
if (target.HasNPCBannerBuff(ModContent.NPCType<SightseerSpitter>()))
|
||||
{
|
||||
if (Main.expertMode)
|
||||
modifiers.IncomingDamageMultiplier *= 0.5f;
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.4 KiB |
|
Before Width: | Height: | Size: 2.5 KiB After Width: | Height: | Size: 2.5 KiB |
@@ -1028,7 +1028,7 @@ namespace CalamityMod.NPCs
|
||||
// This variable seems to have a lot of purposes.
|
||||
// I wasn't sure what I could name it that isn't very vague
|
||||
int aiGateValue = 60;
|
||||
if (npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<CultistAssassin>())
|
||||
if (npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<RenegadeWarlock>())
|
||||
{
|
||||
aiGateValue = 180;
|
||||
if (npc.ai[3] == -30f)
|
||||
@@ -1061,7 +1061,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
bool canIncrementAI3 = false;
|
||||
bool reset = true;
|
||||
if (npcType == NPCID.Yeti || npcType == NPCID.CorruptBunny || npcType == NPCID.Crab || npcType == NPCID.Clown || npcType == NPCID.SkeletonArcher || npcType == NPCID.GoblinArcher || npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<CultistAssassin>()
|
||||
if (npcType == NPCID.Yeti || npcType == NPCID.CorruptBunny || npcType == NPCID.Crab || npcType == NPCID.Clown || npcType == NPCID.SkeletonArcher || npcType == NPCID.GoblinArcher || npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<RenegadeWarlock>()
|
||||
|| npcType == NPCID.BlackRecluse || npcType == NPCID.WallCreeper || npcType == NPCID.BloodCrawler || npcType == NPCID.CorruptPenguin || npcType == NPCID.LihzahrdCrawler || npcType == NPCID.IcyMerman || npcType == NPCID.PirateDeadeye
|
||||
|| npcType == NPCID.PirateCrossbower || npcType == NPCID.PirateCaptain || npcType == NPCID.CochinealBeetle || npcType == NPCID.CyanBeetle || npcType == NPCID.LacBeetle || npcType == NPCID.SeaSnail || npcType == NPCID.FlyingSnake
|
||||
|| npcType == NPCID.IceGolem || npcType == NPCID.Eyezor || npcType == NPCID.AnomuraFungus || npcType == NPCID.MushiLadybug || npcType == NPCID.Paladin || npcType == NPCID.SkeletonSniper || npcType == NPCID.TacticalSkeleton
|
||||
@@ -1313,7 +1313,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
}
|
||||
|
||||
if (npc.ai[3] < (float)aiGateValue && (Main.eclipse || !Main.dayTime || (double)npc.position.Y > Main.worldSurface * 16.0 || (Main.invasionType == InvasionID.GoblinArmy && (npcType == NPCID.Yeti || npcType == NPCID.ElfArcher)) || (Main.invasionType == InvasionID.GoblinArmy && (npcType == NPCID.GoblinPeon || npcType == NPCID.GoblinThief || npcType == NPCID.GoblinWarrior || npcType == NPCID.GoblinArcher || npcType == NPCID.GoblinSummoner)) || (npcType == NPCID.GoblinScout || (Main.invasionType == InvasionID.PirateInvasion && npcType >= 212 && npcType <= 216)) || (Main.invasionType == InvasionID.MartianMadness && (npcType == NPCID.BrainScrambler || npcType == NPCID.RayGunner || npcType == NPCID.MartianOfficer || npcType == NPCID.GrayGrunt || npcType == NPCID.MartianEngineer || npcType == NPCID.GigaZapper || npcType == NPCID.Scutlix || npcType == NPCID.MartianWalker)) || (npcType == NPCID.AngryBones || npcType == NPCID.AngryBonesBig || npcType == NPCID.AngryBonesBigMuscle || npcType == NPCID.AngryBonesBigHelmet || npcType == NPCID.CorruptBunny || npcType == NPCID.Crab || npcType == NPCID.ArmoredSkeleton || npcType == NPCID.Mummy || npcType == NPCID.DarkMummy || npcType == NPCID.LightMummy || npcType == NPCID.SkeletonArcher || npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<CultistAssassin>() || npcType == NPCID.CorruptPenguin || npcType == NPCID.FaceMonster || npcType == NPCID.SnowFlinx || npcType == NPCID.Lihzahrd || npcType == NPCID.LihzahrdCrawler || npcType == NPCID.IcyMerman || npcType == NPCID.CochinealBeetle || npcType == NPCID.CyanBeetle || npcType == NPCID.LacBeetle || npcType == NPCID.SeaSnail || npcType == NPCID.BloodCrawler || npcType == NPCID.IceGolem || npcType == NPCID.ZombieMushroom || npcType == NPCID.ZombieMushroomHat || npcType == NPCID.AnomuraFungus || npcType == NPCID.MushiLadybug || npcType == NPCID.SkeletonSniper || npcType == NPCID.TacticalSkeleton || npcType == NPCID.SkeletonCommando || npcType == NPCID.CultistArcherBlue || npcType == NPCID.CultistArcherWhite || npcType == NPCID.CrimsonBunny || npcType == NPCID.CrimsonPenguin || npcType == NPCID.NebulaSoldier || (npcType == NPCID.StardustSoldier && (npc.ai[1] >= 180f || npc.ai[1] < 90f))) || (npcType == NPCID.StardustSpiderBig || npcType == NPCID.VortexRifleman || npcType == NPCID.VortexSoldier || npcType == NPCID.VortexHornet || npcType == NPCID.VortexLarva || npcType == NPCID.WalkingAntlion || npcType == NPCID.SolarDrakomire || npcType == NPCID.SolarSolenian || (npcType >= 524 && npcType <= 527)) || npcType == NPCID.DesertLamiaLight || npcType == NPCID.DesertLamiaDark || npcType == NPCID.DesertScorpionWalk || npcType == NPCID.DesertBeast))
|
||||
if (npc.ai[3] < (float)aiGateValue && (Main.eclipse || !Main.dayTime || (double)npc.position.Y > Main.worldSurface * 16.0 || (Main.invasionType == InvasionID.GoblinArmy && (npcType == NPCID.Yeti || npcType == NPCID.ElfArcher)) || (Main.invasionType == InvasionID.GoblinArmy && (npcType == NPCID.GoblinPeon || npcType == NPCID.GoblinThief || npcType == NPCID.GoblinWarrior || npcType == NPCID.GoblinArcher || npcType == NPCID.GoblinSummoner)) || (npcType == NPCID.GoblinScout || (Main.invasionType == InvasionID.PirateInvasion && npcType >= 212 && npcType <= 216)) || (Main.invasionType == InvasionID.MartianMadness && (npcType == NPCID.BrainScrambler || npcType == NPCID.RayGunner || npcType == NPCID.MartianOfficer || npcType == NPCID.GrayGrunt || npcType == NPCID.MartianEngineer || npcType == NPCID.GigaZapper || npcType == NPCID.Scutlix || npcType == NPCID.MartianWalker)) || (npcType == NPCID.AngryBones || npcType == NPCID.AngryBonesBig || npcType == NPCID.AngryBonesBigMuscle || npcType == NPCID.AngryBonesBigHelmet || npcType == NPCID.CorruptBunny || npcType == NPCID.Crab || npcType == NPCID.ArmoredSkeleton || npcType == NPCID.Mummy || npcType == NPCID.DarkMummy || npcType == NPCID.LightMummy || npcType == NPCID.SkeletonArcher || npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<RenegadeWarlock>() || npcType == NPCID.CorruptPenguin || npcType == NPCID.FaceMonster || npcType == NPCID.SnowFlinx || npcType == NPCID.Lihzahrd || npcType == NPCID.LihzahrdCrawler || npcType == NPCID.IcyMerman || npcType == NPCID.CochinealBeetle || npcType == NPCID.CyanBeetle || npcType == NPCID.LacBeetle || npcType == NPCID.SeaSnail || npcType == NPCID.BloodCrawler || npcType == NPCID.IceGolem || npcType == NPCID.ZombieMushroom || npcType == NPCID.ZombieMushroomHat || npcType == NPCID.AnomuraFungus || npcType == NPCID.MushiLadybug || npcType == NPCID.SkeletonSniper || npcType == NPCID.TacticalSkeleton || npcType == NPCID.SkeletonCommando || npcType == NPCID.CultistArcherBlue || npcType == NPCID.CultistArcherWhite || npcType == NPCID.CrimsonBunny || npcType == NPCID.CrimsonPenguin || npcType == NPCID.NebulaSoldier || (npcType == NPCID.StardustSoldier && (npc.ai[1] >= 180f || npc.ai[1] < 90f))) || (npcType == NPCID.StardustSpiderBig || npcType == NPCID.VortexRifleman || npcType == NPCID.VortexSoldier || npcType == NPCID.VortexHornet || npcType == NPCID.VortexLarva || npcType == NPCID.WalkingAntlion || npcType == NPCID.SolarDrakomire || npcType == NPCID.SolarSolenian || (npcType >= 524 && npcType <= 527)) || npcType == NPCID.DesertLamiaLight || npcType == NPCID.DesertLamiaDark || npcType == NPCID.DesertScorpionWalk || npcType == NPCID.DesertBeast))
|
||||
{
|
||||
if ((npcType == NPCID.Zombie || npcType == NPCID.ZombieXmas || npcType == NPCID.ZombieSweater || npcType == NPCID.Skeleton || (npcType >= NPCID.BoneThrowingSkeleton && npcType <= NPCID.BoneThrowingSkeleton4) || npcType == NPCID.AngryBones || npcType == NPCID.AngryBonesBig || npcType == NPCID.AngryBonesBigHelmet || npcType == NPCID.AngryBonesBigMuscle || npcType == NPCID.ArmoredSkeleton || npcType == NPCID.SkeletonArcher || npcType == NPCID.BaldZombie || npcType == NPCID.UndeadViking || npcType == NPCID.ZombieEskimo || npcType == NPCID.Frankenstein || npcType == NPCID.PincushionZombie || npcType == NPCID.SlimedZombie || npcType == NPCID.SwampZombie || npcType == NPCID.TwiggyZombie || npcType == NPCID.ArmoredViking || npcType == NPCID.FemaleZombie || npcType == NPCID.HeadacheSkeleton || npcType == NPCID.MisassembledSkeleton || npcType == NPCID.PantlessSkeleton || npcType == NPCID.ZombieRaincoat || npcType == NPCID.SkeletonSniper || npcType == NPCID.TacticalSkeleton || npcType == NPCID.SkeletonCommando || npcType == NPCID.ZombieSuperman || npcType == NPCID.ZombiePixie || npcType == NPCID.ZombieDoctor || npcType == NPCID.GreekSkeleton) && Main.rand.NextBool(1000))
|
||||
{
|
||||
@@ -1447,7 +1447,7 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
FighterRunningAI(npc, CalamityWorld.death ? 8f : 6f, 0.12f, 0.8f, true, 0.8f);
|
||||
}
|
||||
else if (npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<CultistAssassin>() || npcType == NPCID.SwampThing || npcType == NPCID.PirateCorsair || npcType == NPCID.MushiLadybug || npcType == NPCID.DesertLamiaLight || npcType == NPCID.DesertLamiaDark)
|
||||
else if (npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<RenegadeWarlock>() || npcType == NPCID.SwampThing || npcType == NPCID.PirateCorsair || npcType == NPCID.MushiLadybug || npcType == NPCID.DesertLamiaLight || npcType == NPCID.DesertLamiaDark)
|
||||
{
|
||||
FighterRunningAI(npc, CalamityWorld.death ? 6f : 4f, 0.09f, 0.8f, true, 0.8f);
|
||||
}
|
||||
@@ -3426,7 +3426,7 @@ namespace CalamityMod.NPCs
|
||||
npc.velocity.Y = -5f;
|
||||
npc.netUpdate = true;
|
||||
}
|
||||
if ((npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<CultistAssassin>()) && npc.velocity.Y < 0f)
|
||||
if ((npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<RenegadeWarlock>()) && npc.velocity.Y < 0f)
|
||||
{
|
||||
npc.velocity.Y *= 1.1f;
|
||||
}
|
||||
@@ -3455,7 +3455,7 @@ namespace CalamityMod.NPCs
|
||||
}
|
||||
|
||||
// Teleport (Chaos elementals)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && (npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<CultistAssassin>()) && npc.ai[3] >= (float)aiGateValue)
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && (npcType == NPCID.ChaosElemental || npcType == ModContent.NPCType<RenegadeWarlock>()) && npc.ai[3] >= (float)aiGateValue)
|
||||
{
|
||||
int tileCoordsX = (int)Main.player[npc.target].position.X / 16;
|
||||
int tileCoordsY = (int)Main.player[npc.target].position.Y / 16;
|
||||
|
||||
@@ -500,8 +500,8 @@ namespace CalamityMod.NPCs
|
||||
ResetSavedIndex(ref DD2CrystalIndex, NPCID.DD2EterniaCrystal);
|
||||
ResetSavedIndex(ref hiveMind, NPCType<HiveMind.HiveMind>());
|
||||
ResetSavedIndex(ref perfHive, NPCType<PerforatorHive>());
|
||||
ResetSavedIndex(ref slimeGodPurple, NPCType<SlimeGod.EbonianSlimeGod>(), NPCType<SplitEbonianSlimeGod>());
|
||||
ResetSavedIndex(ref slimeGodRed, NPCType<CrimulanSlimeGod>(), NPCType<SplitCrimulanSlimeGod>());
|
||||
ResetSavedIndex(ref slimeGodPurple, NPCType<SlimeGod.EbonianPaladin>(), NPCType<SplitEbonianPaladin>());
|
||||
ResetSavedIndex(ref slimeGodRed, NPCType<CrimulanPaladin>(), NPCType<SplitCrimulanPaladin>());
|
||||
ResetSavedIndex(ref slimeGod, NPCType<SlimeGodCore>());
|
||||
ResetSavedIndex(ref laserEye, NPCID.Retinazer);
|
||||
ResetSavedIndex(ref fireEye, NPCID.Spazmatism);
|
||||
@@ -3086,7 +3086,7 @@ namespace CalamityMod.NPCs
|
||||
|
||||
case NPCAIStyleID.Fighter:
|
||||
if (npc.type == NPCType<Stormlion>() ||
|
||||
npc.type == NPCType<AstralachneaGround>() || npc.type == NPCType<CultistAssassin>())
|
||||
npc.type == NPCType<AstralachneaGround>() || npc.type == NPCType<RenegadeWarlock>())
|
||||
{
|
||||
return CalamityGlobalAI.BuffedFighterAI(npc, Mod);
|
||||
}
|
||||
|
||||
@@ -10,7 +10,7 @@ using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.NPCs.Crags
|
||||
{
|
||||
public class CultistAssassin : ModNPC
|
||||
public class RenegadeWarlock : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.NPCs.Crags
|
||||
NPC.lifeMax = 3000;
|
||||
}
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<CultistAssassinBanner>();
|
||||
BannerItem = ModContent.ItemType<RenegadeWarlockBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
NPC.Calamity().VulnerableToSickness = true;
|
||||
@@ -85,9 +85,9 @@ namespace CalamityMod.NPCs.Crags
|
||||
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);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("CultistAssassin2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("CultistAssassin3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("RenegadeWarlock").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("RenegadeWarlock2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("RenegadeWarlock3").Type, NPC.scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
@@ -1291,7 +1291,7 @@ namespace CalamityMod.NPCs.Cryogen
|
||||
ModContent.ItemType<Icebreaker>()
|
||||
};
|
||||
normalOnly.Add(DropHelper.CalamityStyle(DropHelper.NormalWeaponDropRateFraction, weapons));
|
||||
normalOnly.Add(ModContent.ItemType<ColdDivinity>(), 10);
|
||||
normalOnly.Add(ModContent.ItemType<GlacialEmbrace>(), 10);
|
||||
|
||||
// Vanity
|
||||
normalOnly.Add(ModContent.ItemType<CryogenMask>(), 7);
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
{
|
||||
int associatedNPCType = ModContent.NPCType<SplitEbonianSlimeGod>();
|
||||
int associatedNPCType = ModContent.NPCType<SplitEbonianPaladin>();
|
||||
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
|
||||
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
{
|
||||
int associatedNPCType = ModContent.NPCType<SplitCrimulanSlimeGod>();
|
||||
int associatedNPCType = ModContent.NPCType<SplitCrimulanPaladin>();
|
||||
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
|
||||
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
{
|
||||
int associatedNPCType = ModContent.NPCType<SplitCrimulanSlimeGod>();
|
||||
int associatedNPCType = ModContent.NPCType<SplitCrimulanPaladin>();
|
||||
bestiaryEntry.UIInfoProvider = new CommonEnemyUICollectionInfoProvider(ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[associatedNPCType], quickUnlock: true);
|
||||
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[] {
|
||||
|
||||
@@ -13,7 +13,7 @@ using Terraria.Audio;
|
||||
namespace CalamityMod.NPCs.SlimeGod
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class CrimulanSlimeGod : ModNPC
|
||||
public class CrimulanPaladin : ModNPC
|
||||
{
|
||||
private float bossLife;
|
||||
|
||||
@@ -133,11 +133,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath1, NPC.Center);
|
||||
Vector2 spawnAt = NPC.Center + new Vector2(0f, NPC.height / 2f);
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType<SplitCrimulanSlimeGod>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType<SplitCrimulanSlimeGod>());
|
||||
if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType<SplitEbonianSlimeGod>()) < 3) //split into 3 slimes if the other large slime hasn't split yet
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType<SplitCrimulanPaladin>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType<SplitCrimulanPaladin>());
|
||||
if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType<SplitEbonianPaladin>()) < 3) //split into 3 slimes if the other large slime hasn't split yet
|
||||
{
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X, (int)spawnAt.Y - 30, ModContent.NPCType<SplitCrimulanSlimeGod>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X, (int)spawnAt.Y - 30, ModContent.NPCType<SplitCrimulanPaladin>());
|
||||
}
|
||||
NPC.life = 0;
|
||||
NPC.HitEffect();
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 540 B After Width: | Height: | Size: 540 B |
@@ -13,7 +13,7 @@ using Terraria.Audio;
|
||||
namespace CalamityMod.NPCs.SlimeGod
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class EbonianSlimeGod : ModNPC
|
||||
public class EbonianPaladin : ModNPC
|
||||
{
|
||||
private float bossLife;
|
||||
|
||||
@@ -130,11 +130,11 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
|
||||
SoundEngine.PlaySound(SoundID.NPCDeath1, NPC.Center);
|
||||
Vector2 spawnAt = NPC.Center + new Vector2(0f, NPC.height / 2f);
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType<SplitEbonianSlimeGod>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType<SplitEbonianSlimeGod>());
|
||||
if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType<SplitCrimulanSlimeGod>()) < 3) // split into 3 slimes if the other large slime hasn't split yet
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X - 30, (int)spawnAt.Y, ModContent.NPCType<SplitEbonianPaladin>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X + 30, (int)spawnAt.Y, ModContent.NPCType<SplitEbonianPaladin>());
|
||||
if (CalamityWorld.getFixedBoi && NPC.CountNPCS(ModContent.NPCType<SplitCrimulanPaladin>()) < 3) // split into 3 slimes if the other large slime hasn't split yet
|
||||
{
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X, (int)spawnAt.Y - 30, ModContent.NPCType<SplitEbonianSlimeGod>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)spawnAt.X, (int)spawnAt.Y - 30, ModContent.NPCType<SplitEbonianPaladin>());
|
||||
}
|
||||
NPC.life = 0;
|
||||
NPC.HitEffect();
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 529 B After Width: | Height: | Size: 529 B |
@@ -132,8 +132,8 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient && !slimesSpawned)
|
||||
{
|
||||
slimesSpawned = true;
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<EbonianSlimeGod>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<CrimulanSlimeGod>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<EbonianPaladin>());
|
||||
NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<CrimulanPaladin>());
|
||||
}
|
||||
|
||||
// Set damage
|
||||
@@ -184,7 +184,7 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
// Make sure Opacity is set to 0.8f if it's below that when the vanish phase starts
|
||||
if (NPC.ai[3] == 0f)
|
||||
{
|
||||
if (!NPC.AnyNPCs(ModContent.NPCType<EbonianSlimeGod>()) && !NPC.AnyNPCs(ModContent.NPCType<CrimulanSlimeGod>()))
|
||||
if (!NPC.AnyNPCs(ModContent.NPCType<EbonianPaladin>()) && !NPC.AnyNPCs(ModContent.NPCType<CrimulanPaladin>()))
|
||||
{
|
||||
NPC.ai[3] = 1f;
|
||||
NPC.Opacity = 0.8f;
|
||||
@@ -285,8 +285,8 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
{
|
||||
for (int x = 0; x < Main.maxNPCs; x++)
|
||||
{
|
||||
if (Main.npc[x].type == ModContent.NPCType<EbonianSlimeGod>() || Main.npc[x].type == ModContent.NPCType<SplitEbonianSlimeGod>() ||
|
||||
Main.npc[x].type == ModContent.NPCType<CrimulanSlimeGod>() || Main.npc[x].type == ModContent.NPCType<SplitCrimulanSlimeGod>())
|
||||
if (Main.npc[x].type == ModContent.NPCType<EbonianPaladin>() || Main.npc[x].type == ModContent.NPCType<SplitEbonianPaladin>() ||
|
||||
Main.npc[x].type == ModContent.NPCType<CrimulanPaladin>() || Main.npc[x].type == ModContent.NPCType<SplitCrimulanPaladin>())
|
||||
{
|
||||
Main.npc[x].active = false;
|
||||
Main.npc[x].netUpdate = true;
|
||||
@@ -477,10 +477,10 @@ namespace CalamityMod.NPCs.SlimeGod
|
||||
// If they are far apart, try to stay towards the closest slime.
|
||||
// If no slimes exist, or they are all extremely far away, try to stay near the target player instead.
|
||||
// TODO -- Consider renaming the big slime god's internal names to be more intuitive?
|
||||
int crimulanSlimeID = ModContent.NPCType<CrimulanSlimeGod>();
|
||||
int crimulanSlimeSplitID = ModContent.NPCType<SplitCrimulanSlimeGod>();
|
||||
int ebonianSlimeID = ModContent.NPCType<EbonianSlimeGod>();
|
||||
int ebonianSlimeSplitID = ModContent.NPCType<SplitEbonianSlimeGod>();
|
||||
int crimulanSlimeID = ModContent.NPCType<CrimulanPaladin>();
|
||||
int crimulanSlimeSplitID = ModContent.NPCType<SplitCrimulanPaladin>();
|
||||
int ebonianSlimeID = ModContent.NPCType<EbonianPaladin>();
|
||||
int ebonianSlimeSplitID = ModContent.NPCType<SplitEbonianPaladin>();
|
||||
List<NPC> largeSlimes = new();
|
||||
|
||||
float ignoreGeneralAreaDistanceThreshold = 750f;
|
||||
|
||||
@@ -14,7 +14,7 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.NPCs.SlimeGod
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class SplitCrimulanSlimeGod : ModNPC
|
||||
public class SplitCrimulanPaladin : ModNPC
|
||||
{
|
||||
private float bossLife;
|
||||
|
||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
|
Before Width: | Height: | Size: 513 B After Width: | Height: | Size: 513 B |
@@ -14,7 +14,7 @@ using Terraria.ModLoader;
|
||||
namespace CalamityMod.NPCs.SlimeGod
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class SplitEbonianSlimeGod : ModNPC
|
||||
public class SplitEbonianPaladin : ModNPC
|
||||
{
|
||||
private float bossLife;
|
||||
|
||||
|
Before Width: | Height: | Size: 11 KiB After Width: | Height: | Size: 11 KiB |
|
Before Width: | Height: | Size: 481 B After Width: | Height: | Size: 481 B |
@@ -9,7 +9,7 @@ using Terraria.Audio;
|
||||
|
||||
namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
public class ColdDivinityPointyThing : ModProjectile, ILocalizedModType
|
||||
public class GlacialEmbracePointyThing : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public string LocalizationCategory => "Projectiles.Summon";
|
||||
public int recharging = -1;
|
||||
@@ -147,13 +147,13 @@ namespace CalamityMod.Projectiles.Summon
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (player.dead)
|
||||
{
|
||||
modPlayer.coldDivinity = false;
|
||||
modPlayer.GlacialEmbrace = false;
|
||||
}
|
||||
if (circlingPlayer)
|
||||
{
|
||||
Projectile.minionSlots = 1f;
|
||||
Projectile.timeLeft = 2;
|
||||
if (!modPlayer.coldDivinity && recharging > 0)
|
||||
if (!modPlayer.GlacialEmbrace && recharging > 0)
|
||||
Projectile.Kill();
|
||||
|
||||
}
|
||||
@@ -238,7 +238,7 @@ namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
if (Main.projectile[i].active && Main.projectile[i].owner == Projectile.owner && Main.projectile[i].type == Projectile.type)
|
||||
{
|
||||
ColdDivinityPointyThing pointy = (ColdDivinityPointyThing)Main.projectile[i].ModProjectile;
|
||||
GlacialEmbracePointyThing pointy = (GlacialEmbracePointyThing)Main.projectile[i].ModProjectile;
|
||||
if (Main.projectile[i].ai[1] > 2f)
|
||||
circlers += Main.rand.Next(1, 4);
|
||||
}
|
||||
|
Before Width: | Height: | Size: 934 B After Width: | Height: | Size: 934 B |
@@ -164,10 +164,10 @@ namespace CalamityMod.UI
|
||||
OneToMany[NPCType<RavagerLegLeft>()] = Rav;
|
||||
OneToMany[NPCType<RavagerHead>()] = Rav;
|
||||
|
||||
int[] SlimeGod = new int[] { NPCType<EbonianSlimeGod>(), NPCType<SplitEbonianSlimeGod>(),
|
||||
NPCType<CrimulanSlimeGod>(), NPCType<SplitCrimulanSlimeGod>() };
|
||||
OneToMany[NPCType<EbonianSlimeGod>()] = SlimeGod;
|
||||
OneToMany[NPCType<CrimulanSlimeGod>()] = SlimeGod;
|
||||
int[] SlimeGod = new int[] { NPCType<EbonianPaladin>(), NPCType<SplitEbonianPaladin>(),
|
||||
NPCType<CrimulanPaladin>(), NPCType<SplitCrimulanPaladin>() };
|
||||
OneToMany[NPCType<EbonianPaladin>()] = SlimeGod;
|
||||
OneToMany[NPCType<CrimulanPaladin>()] = SlimeGod;
|
||||
|
||||
SetupBossExclusionList();
|
||||
SetupMinibossHPBarList();
|
||||
|
||||
@@ -19,10 +19,10 @@ namespace CalamityMod.UI.VanillaBossBars
|
||||
public NPC FalseNPCSegment;
|
||||
public List<int> SlimeGodSlimes = new List<int>
|
||||
{
|
||||
NPCType<CrimulanSlimeGod>(),
|
||||
NPCType<EbonianSlimeGod>(),
|
||||
NPCType<SplitCrimulanSlimeGod>(),
|
||||
NPCType<SplitEbonianSlimeGod>()
|
||||
NPCType<CrimulanPaladin>(),
|
||||
NPCType<EbonianPaladin>(),
|
||||
NPCType<SplitCrimulanPaladin>(),
|
||||
NPCType<SplitEbonianPaladin>()
|
||||
};
|
||||
|
||||
public override Asset<Texture2D> GetIconTexture(ref Rectangle? iconFrame) => TextureAssets.NpcHeadBoss[NPCID.Sets.BossHeadTextures[NPCType<SlimeGodCore>()]];
|
||||
@@ -38,9 +38,9 @@ namespace CalamityMod.UI.VanillaBossBars
|
||||
|
||||
// Add max health by feeding the data of false NPCs
|
||||
FalseNPCSegment = new NPC();
|
||||
FalseNPCSegment.SetDefaults(NPCType<CrimulanSlimeGod>(), target.GetMatchingSpawnParams());
|
||||
FalseNPCSegment.SetDefaults(NPCType<CrimulanPaladin>(), target.GetMatchingSpawnParams());
|
||||
lifeMax += FalseNPCSegment.lifeMax;
|
||||
FalseNPCSegment.SetDefaults(NPCType<EbonianSlimeGod>(), target.GetMatchingSpawnParams());
|
||||
FalseNPCSegment.SetDefaults(NPCType<EbonianPaladin>(), target.GetMatchingSpawnParams());
|
||||
lifeMax += FalseNPCSegment.lifeMax;
|
||||
|
||||
// Determine the current health of each slime
|
||||
|
||||
@@ -467,10 +467,10 @@ namespace CalamityMod
|
||||
npc = ModContent.NPCType<AstralProbe>();
|
||||
break;
|
||||
case 32:
|
||||
npc = ModContent.NPCType<SmallSightseer>();
|
||||
npc = ModContent.NPCType<SightseerCollider>();
|
||||
break;
|
||||
case 33:
|
||||
npc = ModContent.NPCType<BigSightseer>();
|
||||
npc = ModContent.NPCType<SightseerSpitter>();
|
||||
break;
|
||||
case 34:
|
||||
npc = ModContent.NPCType<Aries>();
|
||||
@@ -638,7 +638,7 @@ namespace CalamityMod
|
||||
npc = ModContent.NPCType<BloomSlime>();
|
||||
break;
|
||||
case 95:
|
||||
npc = ModContent.NPCType<CultistAssassin>();
|
||||
npc = ModContent.NPCType<RenegadeWarlock>();
|
||||
break;
|
||||
case 96:
|
||||
npc = ModContent.NPCType<ReaperShark>();
|
||||
|
||||
@@ -95,10 +95,10 @@ namespace CalamityMod
|
||||
{ NPCID.Deerclops, new Tuple<bool, int[]>(false, CalamityMod.iceEnemyImmunities) },
|
||||
|
||||
{ ModContent.NPCType<SlimeGodCore>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<EbonianSlimeGod>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<SplitEbonianSlimeGod>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<CrimulanSlimeGod>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<SplitCrimulanSlimeGod>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<EbonianPaladin>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<SplitEbonianPaladin>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<CrimulanPaladin>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<SplitCrimulanPaladin>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<CorruptSlimeSpawn2>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
{ ModContent.NPCType<CrimsonSlimeSpawn>(), new Tuple<bool, int[]>(false, CalamityMod.slimeEnemyImmunities) },
|
||||
@@ -281,7 +281,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ScryllarRage>(), new Tuple<bool, int[]>(false, CalamityMod.cragEnemyImmunities) },
|
||||
{ ModContent.NPCType<DespairStone>(), new Tuple<bool, int[]>(false, CalamityMod.cragEnemyImmunities) },
|
||||
{ ModContent.NPCType<CharredSlime>(), new Tuple<bool, int[]>(false, CalamityMod.cragEnemyImmunities) },
|
||||
{ ModContent.NPCType<CultistAssassin>(), new Tuple<bool, int[]>(false, CalamityMod.cragEnemyImmunities) },
|
||||
{ ModContent.NPCType<RenegadeWarlock>(), new Tuple<bool, int[]>(false, CalamityMod.cragEnemyImmunities) },
|
||||
{ ModContent.NPCType<CalamityEye>(), new Tuple<bool, int[]>(false, CalamityMod.cragEnemyImmunities) },
|
||||
{ ModContent.NPCType<SoulSlurper>(), new Tuple<bool, int[]>(false, CalamityMod.cragEnemyImmunities) },
|
||||
|
||||
@@ -291,14 +291,14 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<AstralProbe>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<AstralSlime>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<Atlas>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<BigSightseer>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<SightseerSpitter>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<FusionFeeder>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<Hadarian>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<HiveEnemy>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<Hiveling>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<Mantis>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<Nova>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<SmallSightseer>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<SightseerCollider>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
{ ModContent.NPCType<StellarCulex>(), new Tuple<bool, int[]>(false, CalamityMod.astralEnemyImmunities) },
|
||||
|
||||
{ ModContent.NPCType<Plagueshell>(), new Tuple<bool, int[]>(false, CalamityMod.plagueEnemyImmunities) },
|
||||
|
||||
@@ -168,8 +168,8 @@ namespace CalamityMod
|
||||
return true;
|
||||
if (npc.type == NPCID.EaterofWorldsBody || npc.type == NPCID.EaterofWorldsHead || npc.type == NPCID.EaterofWorldsTail)
|
||||
return true;
|
||||
return npc.type == NPCType<EbonianSlimeGod>() || npc.type == NPCType<CrimulanSlimeGod>() ||
|
||||
npc.type == NPCType<SplitEbonianSlimeGod>() || npc.type == NPCType<SplitCrimulanSlimeGod>();
|
||||
return npc.type == NPCType<EbonianPaladin>() || npc.type == NPCType<CrimulanPaladin>() ||
|
||||
npc.type == NPCType<SplitEbonianPaladin>() || npc.type == NPCType<SplitCrimulanPaladin>();
|
||||
}
|
||||
|
||||
public static bool AnyBossNPCS(bool checkForMechs = false)
|
||||
|
||||