Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
No files matched your search
@@ -983,39 +983,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool celestialDragons = false;
|
||||
public bool KalandraMirror = false;
|
||||
public bool StellarTorus = false;
|
||||
|
||||
public List<DeadMinionProperties> PendingProjectilesToRespawn = new List<DeadMinionProperties>();
|
||||
|
||||
// Due to the way vanilla summons work, the buff must be applied manually for it to properly register, since
|
||||
// the buff is typically created via the minion's item usage, not its idle existence.
|
||||
public static Dictionary<int, int> VanillaMinionBuffRelationship = new Dictionary<int, int>()
|
||||
{
|
||||
[ProjectileID.BabyBird] = BuffID.BabyBird,
|
||||
[ProjectileID.BabySlime] = BuffID.BabySlime,
|
||||
[ProjectileID.BabyHornet] = BuffID.BabyHornet,
|
||||
[ProjectileID.FlinxMinion] = BuffID.FlinxMinion,
|
||||
[ProjectileID.Hornet] = BuffID.HornetMinion,
|
||||
[ProjectileID.FlyingImp] = BuffID.ImpMinion,
|
||||
[ProjectileID.VampireFrog] = BuffID.VampireFrog,
|
||||
[ProjectileID.VenomSpider] = BuffID.SpiderMinion,
|
||||
[ProjectileID.JumperSpider] = BuffID.SpiderMinion,
|
||||
[ProjectileID.DangerousSpider] = BuffID.SpiderMinion,
|
||||
[ProjectileID.BatOfLight] = BuffID.BatOfLight,
|
||||
[ProjectileID.Smolstar] = BuffID.Smolstar,
|
||||
[ProjectileID.Spazmamini] = BuffID.TwinEyesMinion,
|
||||
[ProjectileID.Retanimini] = BuffID.TwinEyesMinion,
|
||||
[ProjectileID.StormTigerTier1] = BuffID.StormTiger,
|
||||
[ProjectileID.StormTigerTier2] = BuffID.StormTiger,
|
||||
[ProjectileID.StormTigerTier3] = BuffID.StormTiger,
|
||||
[ProjectileID.Raven] = BuffID.Ravens,
|
||||
[ProjectileID.DeadlySphere] = BuffID.DeadlySphere,
|
||||
[ProjectileID.Tempest] = BuffID.SharknadoMinion,
|
||||
[ProjectileID.EmpressBlade] = BuffID.EmpressBlade,
|
||||
[ProjectileID.UFOMinion] = BuffID.UFOMinion,
|
||||
[ProjectileID.StardustCellMinion] = BuffID.StardustMinion,
|
||||
[ProjectileID.StardustDragon1] = BuffID.StardustDragonMinion,
|
||||
};
|
||||
|
||||
#endregion
|
||||
|
||||
#region Biome
|
||||
@@ -3730,68 +3697,6 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
PopupGUIManager.SuspendAll();
|
||||
|
||||
// Determine which minions need to be respawned.
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
int endoHydraHeadCount = 0;
|
||||
int endoCooperType = ModContent.ProjectileType<EndoCooperBody>();
|
||||
int endoHydraHeadType = ModContent.ProjectileType<EndoHydraHead>();
|
||||
int endoHydraBodyType = ModContent.ProjectileType<EndoHydraBody>();
|
||||
int mechwormHeadType = ModContent.ProjectileType<MechwormHead>();
|
||||
|
||||
// Claim data to cache before respawning as necessary.
|
||||
for (int i = 0; i < Main.maxProjectiles; i++)
|
||||
{
|
||||
Projectile projectile = Main.projectile[i];
|
||||
if (projectile.type != endoHydraHeadType || projectile.owner != Player.whoAmI || !projectile.active)
|
||||
continue;
|
||||
endoHydraHeadCount++;
|
||||
}
|
||||
|
||||
for (int i = 0; i < Main.maxProjectiles; i++)
|
||||
{
|
||||
Projectile projectile = Main.projectile[i];
|
||||
if ((projectile.minionSlots <= 0f && !CalamityLists.ZeroMinionSlotExceptionList.Contains(projectile.type)) || !projectile.minion ||
|
||||
projectile.owner != Player.whoAmI || !projectile.active || CalamityLists.MinionsToNotResurrectList.Contains(projectile.type))
|
||||
continue;
|
||||
|
||||
DeadMinionProperties deadMinionProperties;
|
||||
|
||||
// Handle unique edge-cases in terms of summoning logic.
|
||||
if (projectile.type == endoHydraBodyType)
|
||||
deadMinionProperties = new DeadEndoHydraProperties(endoHydraHeadCount, projectile.originalDamage, projectile.damage, projectile.knockBack);
|
||||
else if (projectile.type == endoCooperType)
|
||||
deadMinionProperties = new DeadEndoCooperProperties((int)projectile.ai[0], projectile.minionSlots, projectile.originalDamage, projectile.damage, projectile.knockBack);
|
||||
else
|
||||
{
|
||||
float[] aiToCopy = projectile.ai;
|
||||
|
||||
// If blacklisted from copying AI state values, zero out the AI values to feed to the copy.
|
||||
if (CalamityLists.DontCopyOriginalMinionAIList.Contains(projectile.type))
|
||||
aiToCopy = new float[aiToCopy.Length];
|
||||
deadMinionProperties = new DeadMinionProperties(projectile.type, projectile.minionSlots, projectile.originalDamage, projectile.damage, projectile.knockBack, aiToCopy);
|
||||
|
||||
// Ozzatron 19APR2023: If Summoner's Shine is loaded, use a Call from its API to persist a bunch of extra junk
|
||||
Mod summonersShine = CalamityMod.Instance.summonersShine;
|
||||
if (summonersShine is not null)
|
||||
{
|
||||
deadMinionProperties.SummonersShine_SourceItem = (int)summonersShine.Call(10, 22, projectile);
|
||||
deadMinionProperties.SummonersShine_Crit = (int)summonersShine.Call(6, projectile, 0);
|
||||
deadMinionProperties.SummonersShine_MinionAS = (float)summonersShine.Call(6, projectile, 1);
|
||||
deadMinionProperties.SummonersShine_PrefixMinionPower = (float)summonersShine.Call(6, projectile, 10);
|
||||
}
|
||||
}
|
||||
|
||||
// Refuse to add duplicate entries of a certain type if an entry already exists and
|
||||
// the minion properties signify that it should be unique.
|
||||
if (deadMinionProperties.DisallowMultipleEntries && PendingProjectilesToRespawn.ContainsType(deadMinionProperties.GetType()))
|
||||
continue;
|
||||
|
||||
// Otherwise, cache the minion's data for when the player respawns.
|
||||
PendingProjectilesToRespawn.Add(deadMinionProperties);
|
||||
}
|
||||
}
|
||||
|
||||
if (andromedaState == AndromedaPlayerState.LargeRobot)
|
||||
{
|
||||
if (!Main.dedServ)
|
||||
@@ -4026,33 +3931,6 @@ namespace CalamityMod.CalPlayer
|
||||
if (healToFull)
|
||||
thirdSageH = true;
|
||||
|
||||
// Order the list such that less expensive minions are at the top.
|
||||
// This way cheaper minions will be spawned first, and at the end, the most expensive
|
||||
// ones can be ignored if the player ultimately has insufficient slots.
|
||||
PendingProjectilesToRespawn = PendingProjectilesToRespawn.OrderBy(proj => proj.RequiredMinionSlots).ToList();
|
||||
|
||||
// Resurrect all pending minions as necessary.
|
||||
if (Main.myPlayer == Player.whoAmI)
|
||||
{
|
||||
float remainingSlots = Player.maxMinions;
|
||||
for (int i = 0; i < PendingProjectilesToRespawn.Count; i++)
|
||||
{
|
||||
// Stop checking if the player has exhausted all of their base minion slots.
|
||||
if (remainingSlots - PendingProjectilesToRespawn[i].RequiredMinionSlots < 0f)
|
||||
break;
|
||||
|
||||
PendingProjectilesToRespawn[i].SummonCopy(Player.whoAmI);
|
||||
|
||||
|
||||
// Apply vanilla buffs as usual to the player.
|
||||
if (VanillaMinionBuffRelationship.ContainsKey(PendingProjectilesToRespawn[i].Type))
|
||||
Player.AddBuff(VanillaMinionBuffRelationship[PendingProjectilesToRespawn[i].Type], 3600);
|
||||
|
||||
remainingSlots -= PendingProjectilesToRespawn[i].RequiredMinionSlots;
|
||||
}
|
||||
PendingProjectilesToRespawn.Clear();
|
||||
}
|
||||
|
||||
// The player rotation can be off if the player dies at the right time when using Final Dawn.
|
||||
Player.fullRotation = 0f;
|
||||
}
|
||||
|
||||
@@ -3047,7 +3047,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Player.npcTypeNoAggro[ModContent.NPCType<AeroSlime>()] = true;
|
||||
Player.npcTypeNoAggro[ModContent.NPCType<BloomSlime>()] = true;
|
||||
Player.npcTypeNoAggro[ModContent.NPCType<CharredSlime>()] = true;
|
||||
Player.npcTypeNoAggro[ModContent.NPCType<InfernalCongealment>()] = true;
|
||||
Player.npcTypeNoAggro[ModContent.NPCType<CrimulanBlightSlime>()] = true;
|
||||
Player.npcTypeNoAggro[ModContent.NPCType<CryoSlime>()] = true;
|
||||
Player.npcTypeNoAggro[ModContent.NPCType<EbonianBlightSlime>()] = true;
|
||||
|
||||
@@ -20,7 +20,7 @@ using CalamityMod.ILEditing;
|
||||
using CalamityMod.Items;
|
||||
using CalamityMod.Items.Dyes.HairDye;
|
||||
using CalamityMod.Items.VanillaArmorChanges;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
@@ -160,7 +160,6 @@ namespace CalamityMod
|
||||
internal Mod soa = null;
|
||||
internal Mod subworldLibrary = null;
|
||||
internal Mod summonersAssociation = null;
|
||||
internal Mod summonersShine = null;
|
||||
internal Mod thorium = null;
|
||||
internal Mod varia = null;
|
||||
internal Mod wikithis = null;
|
||||
@@ -198,8 +197,6 @@ namespace CalamityMod
|
||||
ModLoader.TryGetMod("SubworldLibrary", out subworldLibrary);
|
||||
summonersAssociation = null;
|
||||
ModLoader.TryGetMod("SummonersAssociation", out summonersAssociation);
|
||||
summonersShine = null;
|
||||
ModLoader.TryGetMod("SummonersShine", out summonersShine);
|
||||
thorium = null;
|
||||
ModLoader.TryGetMod("ThoriumMod", out thorium);
|
||||
varia = null;
|
||||
@@ -428,7 +425,6 @@ namespace CalamityMod
|
||||
soa = null;
|
||||
subworldLibrary = null;
|
||||
summonersAssociation = null;
|
||||
summonersShine = null;
|
||||
thorium = null;
|
||||
varia = null;
|
||||
wikithis = null;
|
||||
@@ -751,7 +747,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), 21600 },
|
||||
{ ModContent.NPCType<ThanatosTail>(), 21600 },
|
||||
{ ModContent.NPCType<SupremeCalamitas>(), 18000 }, // 5:00 (300 seconds)
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), 18000 } // 5:00 (300 seconds)
|
||||
{ ModContent.NPCType<PrimordialWyrmHead>(), 18000 } // 5:00 (300 seconds)
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
@@ -871,7 +867,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody1>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosBody2>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), bitingEnemeyVelocityScale }
|
||||
{ ModContent.NPCType<PrimordialWyrmHead>(), bitingEnemeyVelocityScale }
|
||||
};
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -1,131 +0,0 @@
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.DataStructures
|
||||
{
|
||||
public class DeadMinionProperties
|
||||
{
|
||||
public int Type;
|
||||
public int Damage;
|
||||
public int OriginalDamage;
|
||||
public float RequiredMinionSlots;
|
||||
public float OriginalKnockback;
|
||||
public float[] AIValues;
|
||||
|
||||
// summoners shine stuff
|
||||
internal int SummonersShine_SourceItem;
|
||||
internal int SummonersShine_Crit;
|
||||
internal float SummonersShine_MinionAS;
|
||||
internal float SummonersShine_PrefixMinionPower;
|
||||
|
||||
public virtual bool DisallowMultipleEntries => false;
|
||||
public DeadMinionProperties(int type, float requiredMinionSlots, int originalDamage, int damage, float originalKnockback, float[] aiValues)
|
||||
{
|
||||
Type = type;
|
||||
RequiredMinionSlots = requiredMinionSlots;
|
||||
Damage = damage;
|
||||
AIValues = aiValues;
|
||||
OriginalKnockback = originalKnockback;
|
||||
OriginalDamage = originalDamage;
|
||||
}
|
||||
|
||||
public virtual void SummonCopy(int ownerIndex)
|
||||
{
|
||||
if (Main.myPlayer != ownerIndex)
|
||||
return;
|
||||
|
||||
Player owner = Main.player[ownerIndex];
|
||||
|
||||
// Ozzatron 19APR2023: If Summoner's Shine is loaded, use a Call from its API to respawn minions
|
||||
IEntitySource source = new EntitySource_Misc("1");
|
||||
Mod summonersShine = CalamityMod.Instance.summonersShine;
|
||||
if (summonersShine is not null)
|
||||
source = (IEntitySource)summonersShine.Call(10, 21, SummonersShine_SourceItem, SummonersShine_MinionAS, SummonersShine_Crit, SummonersShine_PrefixMinionPower);
|
||||
int copy = Projectile.NewProjectile(source, owner.Center, Vector2.Zero, Type, Damage, OriginalKnockback, ownerIndex, AIValues[0], AIValues[1]);
|
||||
|
||||
if (Main.projectile.IndexInRange(copy))
|
||||
{
|
||||
Main.projectile[copy].Calamity().RequiresManualResurrection = true;
|
||||
Main.projectile[copy].originalDamage = OriginalDamage;
|
||||
|
||||
// Set the amount of slots as needed for the minion.
|
||||
// This is specifically done for logarithmic minions and should have no negative affect on anything else.
|
||||
Main.projectile[copy].minionSlots = RequiredMinionSlots;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class DeadEndoHydraProperties : DeadMinionProperties
|
||||
{
|
||||
public int HeadCount;
|
||||
public override bool DisallowMultipleEntries => true;
|
||||
public DeadEndoHydraProperties(int headCount, int originalDamage, int damage, float originalKnockback)
|
||||
: base(ModContent.ProjectileType<EndoHydraBody>(), 0f, originalDamage, damage, originalKnockback, null)
|
||||
{
|
||||
HeadCount = headCount;
|
||||
|
||||
// The minion slot decalaration is explicitly layed out in this child constructor instead of in the parent
|
||||
// parameter for extra clarity.
|
||||
RequiredMinionSlots = HeadCount;
|
||||
}
|
||||
|
||||
public override void SummonCopy(int ownerIndex)
|
||||
{
|
||||
if (Main.myPlayer != ownerIndex || HeadCount <= 0)
|
||||
return;
|
||||
|
||||
Player owner = Main.player[ownerIndex];
|
||||
|
||||
// Ozzatron 19APR2023: If Summoner's Shine is loaded, use a Call from its API to respawn minions
|
||||
IEntitySource source = new EntitySource_Misc("1");
|
||||
Mod summonersShine = CalamityMod.Instance.summonersShine;
|
||||
if (summonersShine is not null)
|
||||
source = (IEntitySource)summonersShine.Call(10, 21, SummonersShine_SourceItem, SummonersShine_MinionAS, SummonersShine_Crit, SummonersShine_PrefixMinionPower);
|
||||
int body = Projectile.NewProjectile(source, owner.Center, Vector2.Zero, ModContent.ProjectileType<EndoHydraBody>(), Damage, OriginalKnockback, owner.whoAmI);
|
||||
|
||||
// If there was not enough space for even the body to be created, don't both trying to create even more projectiles needlessly.
|
||||
if (!Main.projectile.IndexInRange(body))
|
||||
return;
|
||||
|
||||
Main.projectile[body].originalDamage = OriginalDamage;
|
||||
while (HeadCount > 0)
|
||||
{
|
||||
int head = Projectile.NewProjectile(new EntitySource_Misc("1"), owner.Center, Main.rand.NextVector2Unit(), ModContent.ProjectileType<EndoHydraHead>(), Damage, OriginalKnockback, owner.whoAmI, body);
|
||||
Main.projectile[head].originalDamage = OriginalDamage;
|
||||
HeadCount--;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public class DeadEndoCooperProperties : DeadMinionProperties
|
||||
{
|
||||
public int AttackMode;
|
||||
public override bool DisallowMultipleEntries => true;
|
||||
public DeadEndoCooperProperties(int attackMode, float requiredMinionSlots, int originalDamage, int damage, float originalKnockback)
|
||||
: base(ModContent.ProjectileType<EndoHydraBody>(), requiredMinionSlots, originalDamage, damage, originalKnockback, null)
|
||||
{
|
||||
AttackMode = attackMode;
|
||||
}
|
||||
|
||||
public override void SummonCopy(int ownerIndex)
|
||||
{
|
||||
if (Main.myPlayer != ownerIndex)
|
||||
return;
|
||||
|
||||
Player owner = Main.player[ownerIndex];
|
||||
|
||||
// Ozzatron 19APR2023: If Summoner's Shine is loaded, use a Call from its API to respawn minions
|
||||
IEntitySource source = new EntitySource_Misc("1");
|
||||
Mod summonersShine = CalamityMod.Instance.summonersShine;
|
||||
if (summonersShine is not null)
|
||||
source = (IEntitySource)summonersShine.Call(10, 21, SummonersShine_SourceItem, SummonersShine_MinionAS, SummonersShine_Crit, SummonersShine_PrefixMinionPower);
|
||||
Endogenesis.SummonEndoCooper(source, AttackMode, Main.MouseWorld, Damage, OriginalDamage, OriginalKnockback, owner, out int bodyIndex, out int limbsIndex);
|
||||
Main.projectile[bodyIndex].Calamity().RequiresManualResurrection = true;
|
||||
Main.projectile[limbsIndex].Calamity().RequiresManualResurrection = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
@@ -292,7 +292,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), 0.8 },
|
||||
{ ModContent.NPCType<ThanatosTail>(), 0.8 },
|
||||
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), 0.8 }
|
||||
{ ModContent.NPCType<PrimordialWyrmHead>(), 0.8 }
|
||||
};
|
||||
|
||||
EnemyStats.ContactDamageValues = new SortedDictionary<int, int[]>
|
||||
@@ -545,7 +545,7 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<ThanatosBody2>(), new int[] { 300, 480, 512, 528, 660 } },
|
||||
{ ModContent.NPCType<ThanatosTail>(), new int[] { 250, 400, 424, 440, 552 } },
|
||||
|
||||
{ ModContent.NPCType<AdultEidolonWyrmHead>(), new int[] { 400, 800, 850, 880, 1000 } }
|
||||
{ ModContent.NPCType<PrimordialWyrmHead>(), new int[] { 400, 800, 850, 880, 1000 } }
|
||||
};
|
||||
|
||||
EnemyStats.ProjectileDamageValues = new SortedDictionary<Tuple<int, int>, int[]>
|
||||
@@ -830,10 +830,10 @@ namespace CalamityMod
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresTeslaCannon>(), ModContent.ProjectileType<AresTeslaOrb>()), new int[] { 240, 408, 432, 456, 630 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AresGaussNuke>(), ModContent.ProjectileType<AresGaussNukeProjectile>()), new int[] { 400, 608, 640, 658, 960 } },
|
||||
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmHead>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<AdultEidolonWyrmBodyAlt>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } }
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossIceMist), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.CultistBossLightningOrbArc), new int[] { 500, 752, 788, 808, 1182 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmHead>(), ProjectileID.AncientDoomProjectile), new int[] { 400, 600, 632, 648, 948 } },
|
||||
{ new Tuple<int, int>(ModContent.NPCType<PrimordialWyrmBodyAlt>(), ProjectileID.CultistBossFireBallClone), new int[] { 400, 600, 632, 648, 948 } }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.SummonItems;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
using CalamityMod.NPCs.AstrumDeus;
|
||||
|
||||
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.0 KiB |
@@ -143,9 +143,11 @@ namespace CalamityMod.ILEditing
|
||||
/// </summary>
|
||||
public override void OnModUnload()
|
||||
{
|
||||
// (2023/07) Manually unloading IL hooks is no longer necessary as TML should automatically do it for you.
|
||||
// https://discord.com/channels/103110554649894912/445276626352209920/1099856743820959855 (links to TML server)
|
||||
|
||||
VanillaSpawnTownNPCs = null;
|
||||
labDoorOpen = labDoorClosed = aLabDoorOpen = aLabDoorClosed = exoDoorClosed = exoDoorOpen = -1;
|
||||
On_Item.CanShimmer -= ChangeRodOfHarmonyShimmerRequirement;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -31,8 +31,6 @@ namespace CalamityMod.Items.Accessories
|
||||
// What in the actual fuck is this
|
||||
public override void Load() => Terraria.On_Main.DrawInfernoRings += DrawRoverDriveShields;
|
||||
|
||||
public override void Unload() => Terraria.On_Main.DrawInfernoRings -= DrawRoverDriveShields;
|
||||
|
||||
private void DrawRoverDriveShields(Terraria.On_Main.orig_DrawInfernoRings orig, Main self)
|
||||
{
|
||||
bool playerFound = false;
|
||||
|
||||
@@ -45,11 +45,6 @@ namespace CalamityMod.Items.Armor.DesertProwler
|
||||
Terraria.On_Player.KeyDoubleTap += ActivateSetBonus;
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
Terraria.On_Player.KeyDoubleTap -= ActivateSetBonus;
|
||||
}
|
||||
|
||||
private void ActivateSetBonus(Terraria.On_Player.orig_KeyDoubleTap orig, Player player, int keyDir)
|
||||
{
|
||||
if (keyDir == 0 && HasArmorSet(player) && !player.mount.Active)
|
||||
|
||||
@@ -35,8 +35,6 @@ namespace CalamityMod.Items.Armor.LunicCorps
|
||||
// Still not sure why the fuck this is necessary
|
||||
public override void Load() => Terraria.On_Main.DrawInfernoRings += DrawMasterChefShields;
|
||||
|
||||
public override void Unload() => Terraria.On_Main.DrawInfernoRings -= DrawMasterChefShields;
|
||||
|
||||
private void DrawMasterChefShields(Terraria.On_Main.orig_DrawInfernoRings orig, Main self)
|
||||
{
|
||||
bool playerFound = false;
|
||||
|
||||
@@ -40,15 +40,8 @@ namespace CalamityMod.Items.Armor.MarniteArchitect
|
||||
Terraria.On_Player.QuickMount += ActivateLift;
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
Terraria.On_Player.QuickMount -= ActivateLift;
|
||||
}
|
||||
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
|
||||
@@ -63,10 +63,6 @@ namespace CalamityMod.Items.Armor.Wulfrum
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
Terraria.On_Player.KeyDoubleTap -= ActivateSetBonus;
|
||||
Terraria.On_Main.DrawPendingMouseText -= SpoofMouseItem;
|
||||
|
||||
|
||||
DummyCannon.TurnToAir();
|
||||
DummyCannon = null;
|
||||
}
|
||||
|
||||
@@ -22,12 +22,6 @@ namespace CalamityMod.Items.BaseItems
|
||||
Terraria.UI.On_ItemSlot.LeftClick_ItemArray_int_int += LockMouseToSpecialItem;
|
||||
Terraria.UI.On_ItemSlot.Draw_SpriteBatch_ItemArray_int_int_Vector2_Color += DrawSpecial;
|
||||
}
|
||||
public override void Unload()
|
||||
{
|
||||
Terraria.On_Player.dropItemCheck -= DontDropCoolStuff;
|
||||
Terraria.UI.On_ItemSlot.LeftClick_ItemArray_int_int -= LockMouseToSpecialItem;
|
||||
Terraria.UI.On_ItemSlot.Draw_SpriteBatch_ItemArray_int_int_Vector2_Color -= DrawSpecial;
|
||||
}
|
||||
|
||||
private void DrawSpecial(Terraria.UI.On_ItemSlot.orig_Draw_SpriteBatch_ItemArray_int_int_Vector2_Color orig, SpriteBatch sb, Item[] inv, int context, int slot, Vector2 position, Color color)
|
||||
{
|
||||
@@ -60,8 +54,6 @@ namespace CalamityMod.Items.BaseItems
|
||||
orig(self);
|
||||
}
|
||||
|
||||
|
||||
public override bool PreDrawInWorld(SpriteBatch spriteBatch, Color lightColor, Color alphaColor, ref float rotation, ref float scale, int whoAmI) => false;
|
||||
|
||||
}
|
||||
}
|
||||
@@ -14,23 +14,6 @@ namespace CalamityMod.Items.Materials
|
||||
public class WulfrumMetalScrap : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Materials";
|
||||
public override void Load()
|
||||
{
|
||||
Terraria.On_Item.CanFillEmptyAmmoSlot += AvoidDefaultingToAmmoSlot;
|
||||
}
|
||||
|
||||
public override void Unload()
|
||||
{
|
||||
Terraria.On_Item.CanFillEmptyAmmoSlot -= AvoidDefaultingToAmmoSlot;
|
||||
}
|
||||
|
||||
private bool AvoidDefaultingToAmmoSlot(Terraria.On_Item.orig_CanFillEmptyAmmoSlot orig, Item self)
|
||||
{
|
||||
if (self.type == Type)
|
||||
return false;
|
||||
|
||||
return orig(self);
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -45,6 +28,7 @@ namespace CalamityMod.Items.Materials
|
||||
Item.value = Item.sellPrice(copper: 80);
|
||||
Item.rare = ItemRarityID.Blue;
|
||||
Item.ammo = Item.type;
|
||||
Item.notAmmo = true;
|
||||
}
|
||||
|
||||
public override void ModifyResearchSorting(ref ContentSamples.CreativeHelper.ItemGroup itemGroup)
|
||||
|
||||
@@ -5,7 +5,8 @@ using Terraria.ID;
|
||||
|
||||
namespace CalamityMod.Items.Placeables.Banners
|
||||
{
|
||||
public class CharredSlimeBanner : ModItem, ILocalizedModType
|
||||
[LegacyName("CharredSlimeBanner")]
|
||||
public class InfernalCongealmentBanner : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Placeables";
|
||||
public override void SetDefaults()
|
||||
|
Before Width: | Height: | Size: 198 B After Width: | Height: | Size: 198 B |
@@ -2,7 +2,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -33,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.knockBack = 5f;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
|
||||
Item.shootSpeed = 16f;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -37,7 +36,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<GalvanizingGlaiveProjectile>();
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -45,7 +44,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<GatlingLaserProj>();
|
||||
Item.shootSpeed = 24f;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
@@ -14,9 +13,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
|
||||
public const int HitsRequiredForFlux = 2;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityGlobalItem modItem = Item.Calamity();
|
||||
@@ -33,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.knockBack = 7f;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
@@ -32,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<GaussPistolShot>();
|
||||
Item.shootSpeed = 14f;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
@@ -36,7 +35,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<GaussRifleBlast>();
|
||||
Item.shootSpeed = 27f;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<LaserRifleShot>();
|
||||
Item.shootSpeed = 5f;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
@@ -34,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<HydraulicVoltCrasherProjectile>();
|
||||
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Sounds;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
@@ -33,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<UnstableMatter>();
|
||||
Item.shootSpeed = 12f;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -33,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Pink;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<MountedScannerSummon>();
|
||||
Item.shootSpeed = 1f;
|
||||
|
||||
@@ -26,9 +26,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
// This is the amount of charge consumed every time a sword beam is fired.
|
||||
public const float SwordBeamChargeUse = 0.1f;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityGlobalItem modItem = Item.Calamity();
|
||||
@@ -46,7 +43,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noUseGraphic = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -45,7 +45,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<PlasmaCasterShot>();
|
||||
Item.shootSpeed = 5f;
|
||||
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.autoReuse = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<PlasmaGrenadeProjectile>();
|
||||
Item.shootSpeed = 14f;
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.knockBack = 8f;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
|
||||
Item.UseSound = SoundID.Item15;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noUseGraphic = true;
|
||||
Item.knockBack = 8f;
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.autoReuse = true;
|
||||
Item.channel = true;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -34,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<PulseRifleShot>();
|
||||
Item.shootSpeed = 5.2f; // This may seem low but the shot has 10 extra updates.
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<PulseRifleShot>();
|
||||
Item.shootSpeed = 5f;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.CustomRecipes;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -34,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<PulseTurret>();
|
||||
Item.shootSpeed = 1f;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.knockBack = 3f;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
|
||||
Item.UseSound = SoundID.Item15;
|
||||
Item.autoReuse = true;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -30,7 +29,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 2.25f;
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
Item.UseSound = SoundID.Item15;
|
||||
Item.autoReuse = true;
|
||||
Item.shoot = ModContent.ProjectileType<StarSwallowerSummon>();
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -34,7 +33,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = 4f;
|
||||
Item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Yellow;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
|
||||
Item.shootSpeed = 16f;
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Sounds;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -32,7 +31,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<TaserHook>();
|
||||
Item.shootSpeed = 15f;
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<TeslaCannonShot>();
|
||||
Item.shootSpeed = 5f;
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.UseSound = null;
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityDarkBlueBuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
modItem.donorItem = true;
|
||||
|
||||
modItem.UsesCharge = true;
|
||||
|
||||
@@ -3,7 +3,6 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Projectiles.DraedonsArsenal;
|
||||
using CalamityMod.Rarities;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
@@ -17,9 +16,6 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
public class TrackingDisk : RogueWeapon, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.DraedonsArsenal";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
CalamityGlobalItem modItem = Item.Calamity();
|
||||
@@ -36,7 +32,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
Item.knockBack = 3f;
|
||||
|
||||
Item.value = CalamityGlobalItem.Rarity3BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ItemRarityID.Orange;
|
||||
|
||||
Item.noUseGraphic = true;
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
Item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
|
||||
Item.rare = ModContent.RarityType<DarkOrange>();
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
Item.UseSound = SoundID.Item1;
|
||||
|
||||
Item.shootSpeed = 16f;
|
||||
|
||||
@@ -27,8 +27,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
Item.noUseGraphic = true;
|
||||
Item.channel = true;
|
||||
Item.knockBack = 6f;
|
||||
Item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
Item.rare = ModContent.RarityType<PureGreen>();
|
||||
Item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
Item.rare = ModContent.RarityType<DarkBlue>();
|
||||
Item.Calamity().donorItem = true;
|
||||
Item.shoot = ModContent.ProjectileType<GrandStaffoftheNebulaMage_Held>();
|
||||
Item.shootSpeed = 3f;
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.channel = true;
|
||||
Item.damage = 180;
|
||||
Item.damage = 200;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.useAnimation = Item.useTime = 40; // This is only for the "Very slow" tooltip. The real use time should be faster
|
||||
Item.shoot = ModContent.ProjectileType<StygianShieldAttack>();
|
||||
|
||||
@@ -1,52 +0,0 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Melee.Yoyos;
|
||||
using CalamityMod.Rarities;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public class Verdant : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ItemID.Sets.Yoyo[Item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[Item.type] = 15;
|
||||
ItemID.Sets.GamepadSmartQuickReach[Item.type] = true;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 30;
|
||||
Item.height = 30;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.damage = 86;
|
||||
Item.knockBack = 6f;
|
||||
Item.useTime = 22;
|
||||
Item.useAnimation = 22;
|
||||
Item.autoReuse = true;
|
||||
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.channel = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.noMelee = true;
|
||||
|
||||
Item.shoot = ModContent.ProjectileType<VerdantYoyo>();
|
||||
Item.shootSpeed = 16f;
|
||||
|
||||
Item.autoReuse = true;
|
||||
Item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
Item.rare = ModContent.RarityType<Turquoise>();
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<UelibloomBar>(6).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 531 B |
@@ -52,9 +52,9 @@ StellarCulex: Many pincers line the face of this mutation. It will attempt to at
|
||||
Twinkler: A rare case of the astral infection creating a harmless creature. They flicker rather prettily, and you're not going to be the only one who thinks so. They make useful bait.
|
||||
//Brimstone Crags Enemies
|
||||
CalamityEye: Though these enemies are only a little more threatening than a demon eye, some say that they originally burst from the sockets of those who used to inhabit the capital, when their souls were cursed by the red flames.
|
||||
CharredSlime: Lava slimes are the only ones that manage to survive in the heat of hell, having replaced their moisture with liquid rock. That said, their mannerisms are the same, and they seek out and devour anything they can.
|
||||
DespairStone: A condensed, volatile stone of brimstone slag. It is said that the souls of many, fighting to get out from within, are what cause it to tear across the ground.
|
||||
HeatSpirit: A human spirit, its mind lost to the blazing orange fires of its dwelling. It seeks out and attempts to eliminate any source of moisture it can detect entering the hellscape.
|
||||
InfernalCongealment: Lava slimes are the only ones that manage to survive in the heat of hell, having replaced their moisture with liquid rock. That said, their mannerisms are the same, and they seek out and devour anything they can.
|
||||
RenegadeWarlock: A devotee, their mind lost to the raging, hating fires of the brimstone flames. None have ever seen under their hood, and none ever should.
|
||||
Scryllar: Twisted detritus of those who once came to harvest the remains of the crags. The whispers got to them.
|
||||
SoulSlurper: The remnants of a soul which has feasted, been feasted upon, and torn into the souls of others. No one knows how the cycle begins, but you don't want to find out yourself.
|
||||
@@ -154,7 +154,6 @@ CrimsonSlimeSpawn2: Embedded in these slime's bodies are shards of crimulan ston
|
||||
Sepulcher: This might just be the vilest undead abomination in this realm. The Sepulcher itself is completely immune to physical damage, and can only be killed by destroying its many suspended organs.
|
||||
SoulSeekerSupreme: Incomplete, ghoulish skulls, their forms are limited but their devotion boundless. It's likely each yearns for a soul of their own to be complete, whether it's given by Calamitas or ripped from the foe they kill.
|
||||
//Bosses
|
||||
AdultEidolonWyrm: Traces of them appear even in records as far back as the early Draconic Era... They may very well be a glimpse into the full potential of nature.
|
||||
AquaticScourge: A species of scourge which has had its exoskeleton hardened and tempered by years of diving through sulphuric waters for prey. Its own jaws are now imbued with the venom of those seas.
|
||||
AstrumAureus: A multi-legged mechanical beast, its very existence speaks of the extent of control the astral virus has over the non-sapient. Not even machinery can stand against it.
|
||||
AstrumDeus: Revered as a God of the stars, it has been infected by the starborne illness. However, it has now been broken free from the infection's control and roams the stars once more, consuming dying stars and birthing them anew.
|
||||
@@ -182,6 +181,7 @@ Perforator: Each equipped with a deadly mouthpiece, the different ones are suite
|
||||
PerforatorHive: Though birthed by the crimson, it is unknown whether they fully serve that creator. The worms of the hive frequently carve huge tunnels in the crimson's flesh.
|
||||
PlaguebringerGoliath: Machinery and nanobots have nearly entirely eaten away at the form of this Queen Bee. One wonders if it would simply be more efficient to create one from the ground up.
|
||||
Polterghast: Screaming and crying, a cacophony of spirits in anguish tear through the narrow hallways of the dungeon, searching for more—alive or dead—to add to their numbers.
|
||||
PrimordialWyrm: Traces of them appear even in records as far back as the early Draconic Era... They may very well be a glimpse into the full potential of nature.
|
||||
ProfanedGuardianCommander: When it turns its burning spear towards anything, its simple mind has a clear goal. To entirely eradicate the enemy.
|
||||
ProfanedGuardianDefender: The body it has formed boasts of a stone shell hallowed and tempered by the flames of the sun. Very little can fully shatter its defense.
|
||||
ProfanedGuardianHealer: Its crystal which is displayed prominently on its body is able to restore damage done to its kin, and it draws that damage into flares which steal your life.
|
||||
|
||||
@@ -218,11 +218,6 @@ ChaoticPufferBanner: {
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Chaotic Puffer"
|
||||
}
|
||||
|
||||
CharredSlimeBanner: {
|
||||
DisplayName: Charred Slime Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Charred Slime"
|
||||
}
|
||||
|
||||
ClamBanner: {
|
||||
DisplayName: Clam Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Clam"
|
||||
@@ -388,6 +383,11 @@ ImpiousImmolatorBanner: {
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Impious Immolator"
|
||||
}
|
||||
|
||||
InfernalCongealmentBanner: {
|
||||
DisplayName: Infernal Congealment Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Infernal Congealment"
|
||||
}
|
||||
|
||||
IrradiatedSlimeBanner: {
|
||||
DisplayName: Irradiated Slime Banner
|
||||
Tooltip: "{$CommonItemTooltip.BannerBonus}Irradiated Slime"
|
||||
@@ -1328,12 +1328,12 @@ CalamitasCloneTrophy: {
|
||||
}
|
||||
|
||||
CataclysmTrophy: {
|
||||
DisplayName: Cataclysm Trophy
|
||||
DisplayName: Cataclysmic Construct Trophy
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
CatastropheTrophy: {
|
||||
DisplayName: Catastrophe Trophy
|
||||
DisplayName: Catastrophic Construct Trophy
|
||||
Tooltip: ""
|
||||
}
|
||||
|
||||
|
||||
@@ -1354,15 +1354,6 @@ VeinBurster: {
|
||||
Tooltip: Fires a blood ball that sticks to tiles and explodes
|
||||
}
|
||||
|
||||
Verdant: {
|
||||
DisplayName: Verdant
|
||||
Tooltip:
|
||||
'''
|
||||
Fires crystal leaves when enemies are near
|
||||
A very agile yoyo
|
||||
'''
|
||||
}
|
||||
|
||||
Violence: {
|
||||
DisplayName: Violence
|
||||
Tooltip: Releases a blazing fork which stays near the mouse and shreds enemies
|
||||
|
||||
@@ -71,8 +71,6 @@ Radiator.DisplayName: Radiator
|
||||
Skyfin.DisplayName: Skyfin
|
||||
SulphurousSkater.DisplayName: Sulphurous Skater
|
||||
Trilobite.DisplayName: Trilobite
|
||||
AdultEidolonWyrmHead.DisplayName: Adult Eidolon Wyrm
|
||||
Jared: Jared
|
||||
|
||||
AquaticScourgeHead: {
|
||||
DisplayName: Aquatic Scourge
|
||||
@@ -157,8 +155,8 @@ CalamitasClone: {
|
||||
}
|
||||
}
|
||||
|
||||
Cataclysm.DisplayName: Cataclysm
|
||||
Catastrophe.DisplayName: Catastrophe
|
||||
Cataclysm.DisplayName: Cataclysmic Construct
|
||||
Catastrophe.DisplayName: Catastrophic Construct
|
||||
SoulSeeker.DisplayName: Soul Seeker
|
||||
|
||||
CeaselessVoid: {
|
||||
@@ -184,10 +182,10 @@ Crabulon: {
|
||||
}
|
||||
|
||||
CalamityEye.DisplayName: Calamity Eye
|
||||
CharredSlime.DisplayName: Charred Slime
|
||||
RenegadeWarlock.DisplayName: Renegade Warlock
|
||||
DespairStone.DisplayName: Despair Stone
|
||||
HeatSpirit.DisplayName: Heat Spirit
|
||||
InfernalCongealment.DisplayName: Infernal Congealment
|
||||
Scryllar.DisplayName: Scryllar
|
||||
ScryllarRage.DisplayName: Scryllar
|
||||
SoulSlurper.DisplayName: Soul Slurper
|
||||
@@ -434,6 +432,8 @@ Necroplasm: Necroplasm
|
||||
Polterplasm: Polterplasm
|
||||
PolterghastHook.DisplayName: Polterghast Hook
|
||||
PolterPhantom.DisplayName: Polterghast
|
||||
PrimordialWyrmHead.DisplayName: Primordial Wyrm
|
||||
Jared: Jared
|
||||
|
||||
ProfanedGuardianCommander: {
|
||||
DisplayName: Guardian Commander
|
||||
|
||||
@@ -35,6 +35,7 @@ BrimstoneTargetRay.DisplayName: Brimstone Target Ray
|
||||
BrimstoneWave.DisplayName: Brimstone Flame Skull
|
||||
BrokenApolloLens.DisplayName: Lens
|
||||
BrokenArtemisLens.DisplayName: Lens
|
||||
CirrusVolatileVodkaBottle.DisplayName: Volatile Vodka Bottle
|
||||
DarkEnergyBall.DisplayName: Dark Energy
|
||||
DarkEnergyBall2.DisplayName: Dark Energy
|
||||
DarkOrb.DisplayName: Dark Orb
|
||||
|
||||
@@ -349,8 +349,7 @@ RiptideYoyo.DisplayName: Riptide
|
||||
ShimmersparkYoyo.DisplayName: Shimmerspark
|
||||
SmokingCometYoyo.DisplayName: Smoking Comet
|
||||
SolarFlareYoyo.DisplayName: Solar Flare
|
||||
SulphurousGrabberYoyo.DisplayName: Sulphurous Grabber Yoyo
|
||||
VerdantYoyo.DisplayName: Verdant
|
||||
SulphurousGrabberYoyo.DisplayName: Sulphurous Grabber
|
||||
YinYoyo.DisplayName: Yin-Yo
|
||||
FallenPaladinsHammerEcho.DisplayName: Fallen Paladin's Hammer Echo
|
||||
FallenBlast.DisplayName: Fallen Paladin's Wrath
|
||||
|
||||
|
Before Width: | Height: | Size: 148 KiB After Width: | Height: | Size: 12 KiB |
@@ -309,7 +309,7 @@ namespace CalamityMod
|
||||
case "adult wyrm":
|
||||
case "adulteidolon":
|
||||
case "adult eidolon":
|
||||
return DownedBossSystem.downedAdultEidolonWyrm;
|
||||
return DownedBossSystem.downedPrimordialWyrm;
|
||||
|
||||
case "bossrush":
|
||||
case "boss rush":
|
||||
|
||||
@@ -30,7 +30,7 @@ using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.Items.Weapons.Typeless;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
@@ -118,7 +118,7 @@ namespace CalamityMod
|
||||
public static readonly Func<bool> DownedYharon = () => DownedBossSystem.downedYharon;
|
||||
public static readonly Func<bool> DownedExoMechs = () => DownedBossSystem.downedExoMechs;
|
||||
public static readonly Func<bool> DownedSCal = () => DownedBossSystem.downedCalamitas;
|
||||
public static readonly Func<bool> DownedAdultEidolonWyrm = () => DownedBossSystem.downedAdultEidolonWyrm;
|
||||
public static readonly Func<bool> DownedPrimordialWyrm = () => DownedBossSystem.downedPrimordialWyrm;
|
||||
|
||||
public static readonly Func<bool> DownedAcidRainInitial = () => DownedBossSystem.downedEoCAcidRain;
|
||||
public static readonly Func<bool> DownedAcidRainHardmode = () => DownedBossSystem.downedAquaticScourgeAcidRain;
|
||||
@@ -187,7 +187,7 @@ namespace CalamityMod
|
||||
{ "Yharon", 22f },
|
||||
{ "ExoMechs", 22.99f },
|
||||
{ "Calamitas", 23f },
|
||||
// { "AdultEidolonWyrm", 23.5f },
|
||||
// { "PrimordialWyrm", 23.5f },
|
||||
{ "BossRush", 25.99f },
|
||||
// { "Yharim", 24f },
|
||||
// { "Noxus", 25f },
|
||||
|
||||
@@ -7,7 +7,7 @@ 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.PrimordialWyrm;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.Sounds;
|
||||
using CalamityMod.World;
|
||||
@@ -444,7 +444,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
// Never drop anything if this Eidolon Wyrm is a minion during an AEW fight.
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings);
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(PrimordialWyrmHead.CanMinionsDropThings);
|
||||
|
||||
// 30-40 Voidstone
|
||||
aewMinionCondition.Add(ModContent.ItemType<Voidstone>(), 1, 30, 40);
|
||||
|
||||
@@ -92,6 +92,9 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return true;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
@@ -91,6 +91,9 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return true;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
@@ -91,6 +91,9 @@ namespace CalamityMod.NPCs.AquaticScourge
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return true;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
@@ -86,6 +86,9 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return true;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
@@ -86,6 +86,9 @@ namespace CalamityMod.NPCs.AstrumDeus
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return true;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
@@ -9,7 +9,7 @@ using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.Tools;
|
||||
using CalamityMod.Items.Weapons.Melee;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
@@ -551,7 +551,7 @@ namespace CalamityMod.NPCs
|
||||
ResetSavedIndex(ref draedonExoMechPrime, NPCType<AresBody>());
|
||||
ResetSavedIndex(ref draedonExoMechPrimePlasmaCannon, NPCType<AresPlasmaFlamethrower>());
|
||||
|
||||
ResetSavedIndex(ref adultEidolonWyrmHead, NPCType<AdultEidolonWyrmHead>());
|
||||
ResetSavedIndex(ref adultEidolonWyrmHead, NPCType<PrimordialWyrmHead>());
|
||||
|
||||
// Reset the enraged state every frame. The expectation is that bosses will continuously set it back to true if necessary.
|
||||
CurrentlyEnraged = false;
|
||||
@@ -2830,7 +2830,7 @@ namespace CalamityMod.NPCs
|
||||
// Adult Wyrm Ancient Doom
|
||||
if (npc.type == NPCID.AncientDoom)
|
||||
{
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCType<AdultEidolonWyrmHead>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCType<PrimordialWyrmHead>())
|
||||
return CultistAI.BuffedAncientDoomAI(npc, Mod);
|
||||
}
|
||||
|
||||
@@ -3023,7 +3023,7 @@ namespace CalamityMod.NPCs
|
||||
switch (npc.aiStyle)
|
||||
{
|
||||
case NPCAIStyleID.Slime:
|
||||
if (npc.type == NPCType<BloomSlime>() || npc.type == NPCType<CharredSlime>() ||
|
||||
if (npc.type == NPCType<BloomSlime>() || npc.type == NPCType<InfernalCongealment>() ||
|
||||
npc.type == NPCType<CrimulanBlightSlime>() || npc.type == NPCType<CryoSlime>() ||
|
||||
npc.type == NPCType<EbonianBlightSlime>() || npc.type == NPCType<PerennialSlime>() ||
|
||||
npc.type == NPCType<IrradiatedSlime>() || npc.type == NPCType<AstralSlime>())
|
||||
@@ -6305,9 +6305,9 @@ namespace CalamityMod.NPCs
|
||||
{
|
||||
return DownedBossSystem.downedCalamitas;
|
||||
}
|
||||
else if (type == NPCType<AdultEidolonWyrmHead>())
|
||||
else if (type == NPCType<PrimordialWyrmHead>())
|
||||
{
|
||||
return DownedBossSystem.downedAdultEidolonWyrm;
|
||||
return DownedBossSystem.downedPrimordialWyrm;
|
||||
}
|
||||
|
||||
return true;
|
||||
@@ -6376,7 +6376,7 @@ namespace CalamityMod.NPCs
|
||||
if (target.damage > 0 && !target.boss && !target.friendly && !target.dontTakeDamage && target.type != NPCID.Creeper && target.type != NPCType<RavagerClawLeft>() &&
|
||||
target.type != NPCID.MourningWood && target.type != NPCID.Everscream && target.type != NPCID.SantaNK1 && target.type != NPCType<RavagerClawRight>() &&
|
||||
target.type != NPCType<ReaperShark>() && target.type != NPCType<Mauler>() && target.type != NPCType<EidolonWyrmHead>() && target.type != NPCID.GolemFistLeft && target.type != NPCID.GolemFistRight &&
|
||||
target.type != NPCType<AdultEidolonWyrmHead>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityLists.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type))
|
||||
target.type != NPCType<PrimordialWyrmHead>() && target.type != NPCType<ColossalSquid>() && target.type != NPCID.DD2Betsy && !CalamityLists.enemyImmunityList.Contains(target.type) && !AcidRainEvent.AllMinibosses.Contains(target.type))
|
||||
{
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -11,7 +11,7 @@ using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.NPCs.Crags
|
||||
{
|
||||
public class CharredSlime : ModNPC
|
||||
public class InfernalCongealment : ModNPC
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.NPCs.Crags
|
||||
NPC.lifeMax = 3500;
|
||||
}
|
||||
Banner = NPC.type;
|
||||
BannerItem = ModContent.ItemType<CharredSlimeBanner>();
|
||||
BannerItem = ModContent.ItemType<InfernalCongealmentBanner>();
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
NPC.Calamity().VulnerableToWater = true;
|
||||
@@ -54,7 +54,7 @@ namespace CalamityMod.NPCs.Crags
|
||||
{
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[]
|
||||
{
|
||||
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.CharredSlime")
|
||||
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.InfernalCongealment")
|
||||
});
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 447 B After Width: | Height: | Size: 447 B |
@@ -11,7 +11,7 @@ using Terraria.GameContent.ItemDropRules;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
|
||||
namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
@@ -354,7 +354,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
// Never drop anything if this Eidolon Wyrm is a minion during an AEW fight.
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(AdultEidolonWyrmHead.CanMinionsDropThings);
|
||||
var aewMinionCondition = npcLoot.DefineConditionalDropSet(PrimordialWyrmHead.CanMinionsDropThings);
|
||||
|
||||
LeadingConditionRule notDuringCultistFight = new LeadingConditionRule(DropHelper.If(() => !NPC.LunarApocalypseIsUp));
|
||||
notDuringCultistFight.Add(ModContent.ItemType<EidolonTablet>(), 4);
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.NPCs.Polterghast
|
||||
NPCs.Abyss.ReaperShark.EnragedRoarSound,
|
||||
NPCs.Abyss.LuminousCorvina.ScreamSound,
|
||||
NPCs.Abyss.DevilFish.MaskBreakSound,
|
||||
NPCs.AdultEidolonWyrm.AdultEidolonWyrmHead.ChargeSound,
|
||||
NPCs.PrimordialWyrm.PrimordialWyrmHead.ChargeSound,
|
||||
NPCs.GreatSandShark.GreatSandShark.RoarSound,
|
||||
NPCs.AcidRain.Mauler.RoarSound,
|
||||
NPCs.AstrumDeus.AstrumDeusHead.DeathSound,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -8,8 +8,8 @@ namespace CalamityMod.Systems
|
||||
public class AEWMusicScene : BaseMusicSceneEffect
|
||||
{
|
||||
public override SceneEffectPriority Priority => SceneEffectPriority.BossHigh;
|
||||
public override int NPCType => ModContent.NPCType<AdultEidolonWyrmHead>();
|
||||
public override int? MusicModMusic => CalamityMod.Instance.GetMusicFromMusicMod("AdultEidolonWyrm");
|
||||
public override int NPCType => ModContent.NPCType<PrimordialWyrmHead>();
|
||||
public override int? MusicModMusic => CalamityMod.Instance.GetMusicFromMusicMod("PrimordialWyrm");
|
||||
public override int VanillaMusic => MusicID.Boss3;
|
||||
public override int OtherworldMusic => MusicID.OtherworldlyBoss2;
|
||||
}
|
||||
@@ -9,11 +9,11 @@ using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
namespace CalamityMod.NPCs.PrimordialWyrm
|
||||
{
|
||||
public class AdultEidolonWyrmBody : ModNPC
|
||||
public class PrimordialWyrmBody : ModNPC
|
||||
{
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.AdultEidolonWyrmHead.DisplayName");
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.PrimordialWyrmHead.DisplayName");
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.HideFromBestiary();
|
||||
@@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
// Check if other segments are still alive. If not, die.
|
||||
bool shouldDespawn = true;
|
||||
int wyrmHeadID = ModContent.NPCType<AdultEidolonWyrmHead>();
|
||||
int wyrmHeadID = ModContent.NPCType<PrimordialWyrmHead>();
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == wyrmHeadID)
|
||||
@@ -98,8 +98,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -117,8 +117,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
NPC.Opacity = 0f;
|
||||
}
|
||||
|
||||
bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
bool spawnAncientLights = (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
if (spawnAncientLights)
|
||||
{
|
||||
if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f)
|
||||
@@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
center += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture, center, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyGlow").Value;
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/PrimordialWyrm/PrimordialWyrmBodyGlow").Value;
|
||||
spriteBatch.Draw(texture, center, NPC.frame, Color.White * NPC.Opacity, NPC.rotation, vector, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
return false;
|
||||
@@ -189,7 +189,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find<ModGore>("WyrmAdult2").Type, 1f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find<ModGore>("PrimordialWyrm2").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.5 KiB |
@@ -9,11 +9,11 @@ using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
namespace CalamityMod.NPCs.PrimordialWyrm
|
||||
{
|
||||
public class AdultEidolonWyrmBodyAlt : ModNPC
|
||||
public class PrimordialWyrmBodyAlt : ModNPC
|
||||
{
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.AdultEidolonWyrmHead.DisplayName");
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.PrimordialWyrmHead.DisplayName");
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.HideFromBestiary();
|
||||
@@ -69,7 +69,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
// Check if other segments are still alive. If not, die.
|
||||
bool shouldDespawn = true;
|
||||
int wyrmHeadID = ModContent.NPCType<AdultEidolonWyrmHead>();
|
||||
int wyrmHeadID = ModContent.NPCType<PrimordialWyrmHead>();
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == wyrmHeadID)
|
||||
@@ -98,8 +98,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -117,8 +117,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
NPC.Opacity = 0f;
|
||||
}
|
||||
|
||||
bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
bool shootShadowFireballs = (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ShadowFireballSpin && calamityGlobalNPC_Head.newAI[2] > 0f) ||
|
||||
(calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FinalPhase && calamityGlobalNPC_Head.newAI[1] > 0f);
|
||||
if (shootShadowFireballs)
|
||||
{
|
||||
if (Vector2.Distance(NPC.Center, Main.player[Main.npc[(int)NPC.ai[2]].target].Center) > 160f)
|
||||
@@ -172,7 +172,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
center += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture, center, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmBodyAltGlow").Value;
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/PrimordialWyrm/PrimordialWyrmBodyAltGlow").Value;
|
||||
spriteBatch.Draw(texture, center, NPC.frame, Color.White * NPC.Opacity, NPC.rotation, vector, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
return false;
|
||||
@@ -189,7 +189,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find<ModGore>("WyrmAdult3").Type, 1f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find<ModGore>("PrimordialWyrm3").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 3.9 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
@@ -23,10 +23,10 @@ using Terraria.GameContent.Bestiary;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
namespace CalamityMod.NPCs.PrimordialWyrm
|
||||
{
|
||||
[AutoloadBossHead]
|
||||
public class AdultEidolonWyrmHead : ModNPC
|
||||
public class PrimordialWyrmHead : ModNPC
|
||||
{
|
||||
public enum Phase
|
||||
{
|
||||
@@ -77,8 +77,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
//Sounds
|
||||
public static readonly SoundStyle SpawnSound = new("CalamityMod/Sounds/Custom/Scare");
|
||||
|
||||
public static readonly SoundStyle ChargeSound = new("CalamityMod/Sounds/Custom/AdultEidolonCharge");
|
||||
public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/AdultEidolonDeath");
|
||||
public static readonly SoundStyle ChargeSound = new("CalamityMod/Sounds/Custom/PrimordialWyrmCharge");
|
||||
public static readonly SoundStyle DeathSound = new("CalamityMod/Sounds/NPCKilled/PrimordialWyrmDeath");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -88,7 +88,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
Scale = 0.50f,
|
||||
PortraitScale = 0.6f,
|
||||
PortraitPositionXOverride = 40,
|
||||
CustomTexturePath = "CalamityMod/ExtraTextures/Bestiary/AdultEidolonWyrm_Bestiary"
|
||||
CustomTexturePath = "CalamityMod/ExtraTextures/Bestiary/PrimordialWyrm_Bestiary"
|
||||
};
|
||||
value.Position.X += 55;
|
||||
value.Position.Y += 5;
|
||||
@@ -141,7 +141,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
//AAAAAAAAAAAAH Scary abyss superboss guy so he gets pitch black bg and no biome source.
|
||||
//eidolon wyrm comment jumpscare!!!!!!
|
||||
new MoonLordPortraitBackgroundProviderBestiaryInfoElement(),
|
||||
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.AdultEidolonWyrm")
|
||||
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.PrimordialWyrm")
|
||||
});
|
||||
}
|
||||
|
||||
@@ -229,12 +229,12 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
if (i >= 0 && i < minLength)
|
||||
{
|
||||
if (i % 2 == 0)
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<AdultEidolonWyrmBody>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<PrimordialWyrmBody>(), NPC.whoAmI);
|
||||
else
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<AdultEidolonWyrmBodyAlt>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<PrimordialWyrmBodyAlt>(), NPC.whoAmI);
|
||||
}
|
||||
else
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<AdultEidolonWyrmTail>(), NPC.whoAmI);
|
||||
lol = NPC.NewNPC(NPC.GetSource_FromAI(), (int)NPC.Center.X, (int)NPC.Center.Y, ModContent.NPCType<PrimordialWyrmTail>(), NPC.whoAmI);
|
||||
|
||||
Main.npc[lol].realLife = NPC.whoAmI;
|
||||
Main.npc[lol].ai[2] = NPC.whoAmI;
|
||||
@@ -276,7 +276,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
{
|
||||
for (int a = 0; a < Main.maxNPCs; a++)
|
||||
{
|
||||
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmBodyAlt>() || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmBody>() || Main.npc[a].type == ModContent.NPCType<AdultEidolonWyrmTail>())
|
||||
if (Main.npc[a].type == NPC.type || Main.npc[a].type == ModContent.NPCType<PrimordialWyrmBodyAlt>() || Main.npc[a].type == ModContent.NPCType<PrimordialWyrmBody>() || Main.npc[a].type == ModContent.NPCType<PrimordialWyrmTail>())
|
||||
Main.npc[a].active = false;
|
||||
}
|
||||
}
|
||||
@@ -1433,7 +1433,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
center += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture, center, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmHeadGlow").Value;
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/PrimordialWyrm/PrimordialWyrmHeadGlow").Value;
|
||||
spriteBatch.Draw(texture, center, NPC.frame, Color.White * NPC.Opacity, NPC.rotation, vector, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
return false;
|
||||
@@ -1471,7 +1471,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
for (int k = 0; k < 15; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, 4, hit.HitDirection, -1f, 0, default, 1f);
|
||||
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("WyrmAdult").Type, 1f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.position, NPC.velocity, Mod.Find<ModGore>("PrimordialWyrm").Type, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
|
Before Width: | Height: | Size: 6.8 KiB After Width: | Height: | Size: 6.8 KiB |
|
Before Width: | Height: | Size: 630 B After Width: | Height: | Size: 630 B |
@@ -8,11 +8,11 @@ using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
namespace CalamityMod.NPCs.PrimordialWyrm
|
||||
{
|
||||
public class AdultEidolonWyrmTail : ModNPC
|
||||
public class PrimordialWyrmTail : ModNPC
|
||||
{
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.AdultEidolonWyrmHead.DisplayName");
|
||||
public override LocalizedText DisplayName => CalamityUtils.GetText("NPCs.PrimordialWyrmHead.DisplayName");
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
this.HideFromBestiary();
|
||||
@@ -58,7 +58,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
// Check if other segments are still alive. If not, die.
|
||||
bool shouldDespawn = true;
|
||||
int wyrmHeadID = ModContent.NPCType<AdultEidolonWyrmHead>();
|
||||
int wyrmHeadID = ModContent.NPCType<PrimordialWyrmHead>();
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && Main.npc[i].type == wyrmHeadID)
|
||||
@@ -87,8 +87,8 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
float chargePhaseGateValue = death ? 180f : revenge ? 210f : expertMode ? 240f : 300f;
|
||||
float lightningChargePhaseGateValue = death ? 120f : revenge ? 135f : expertMode ? 150f : 180f;
|
||||
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)AdultEidolonWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePartOfChargePhase = calamityGlobalNPC_Head.newAI[2] >= chargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= chargePhaseGateValue + 1f && (calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeOne || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.ChargeTwo || calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.FastCharge);
|
||||
bool invisiblePartOfLightningChargePhase = calamityGlobalNPC_Head.newAI[2] >= lightningChargePhaseGateValue && calamityGlobalNPC_Head.newAI[2] <= lightningChargePhaseGateValue + 1f && calamityGlobalNPC_Head.newAI[0] == (float)PrimordialWyrmHead.Phase.LightningCharge;
|
||||
bool invisiblePhase = calamityGlobalNPC_Head.newAI[0] == 1f || calamityGlobalNPC_Head.newAI[0] == 5f || calamityGlobalNPC_Head.newAI[0] == 7f;
|
||||
if (!invisiblePartOfChargePhase && !invisiblePartOfLightningChargePhase && !invisiblePhase)
|
||||
{
|
||||
@@ -134,7 +134,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
center += vector * NPC.scale + new Vector2(0f, NPC.gfxOffY);
|
||||
spriteBatch.Draw(texture, center, NPC.frame, NPC.GetAlpha(drawColor), NPC.rotation, vector, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/AdultEidolonWyrm/AdultEidolonWyrmTailGlow").Value;
|
||||
texture = ModContent.Request<Texture2D>("CalamityMod/NPCs/PrimordialWyrm/PrimordialWyrmTailGlow").Value;
|
||||
spriteBatch.Draw(texture, center, NPC.frame, Color.White * NPC.Opacity, NPC.rotation, vector, NPC.scale, spriteEffects, 0f);
|
||||
|
||||
return false;
|
||||
@@ -151,7 +151,7 @@ namespace CalamityMod.NPCs.AdultEidolonWyrm
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find<ModGore>("WyrmAdult4").Type, 1f);
|
||||
Gore.NewGore(NPC.GetSource_Death(), NPC.Center, NPC.velocity, Mod.Find<ModGore>("PrimordialWyrm4").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 5.3 KiB After Width: | Height: | Size: 5.3 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 5.8 KiB After Width: | Height: | Size: 5.8 KiB |
@@ -241,6 +241,9 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return true;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
@@ -232,6 +232,9 @@ namespace CalamityMod.NPCs.StormWeaver
|
||||
|
||||
public override bool PreDraw(SpriteBatch spriteBatch, Vector2 screenPos, Color drawColor)
|
||||
{
|
||||
if (NPC.IsABestiaryIconDummy)
|
||||
return true;
|
||||
|
||||
SpriteEffects spriteEffects = SpriteEffects.None;
|
||||
if (NPC.spriteDirection == 1)
|
||||
spriteEffects = SpriteEffects.FlipHorizontally;
|
||||
|
||||
@@ -158,6 +158,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
public static int hoodlessHeadIconIndex;
|
||||
public static int hoodlessHeadIconP2Index;
|
||||
public static int cirrusHeadIconIndex;
|
||||
public static int cirrusHeadIconP2Index;
|
||||
public static float normalDR = 0.25f;
|
||||
public static float enragedDR = 0.9999f;
|
||||
|
||||
@@ -185,6 +186,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
string hoodlessIconPath = "CalamityMod/NPCs/SupremeCalamitas/HoodlessHeadIcon";
|
||||
string hoodlessIconP2Path = "CalamityMod/NPCs/SupremeCalamitas/HoodlessHeadIconP2";
|
||||
string cirrusIconPath = "CalamityMod/NPCs/SupremeCalamitas/CirrusHeadIcon";
|
||||
string cirrusIconP2Path = "CalamityMod/NPCs/SupremeCalamitas/CirrusHeadIcon2";
|
||||
|
||||
CalamityMod.Instance.AddBossHeadTexture(hoodedIconPath, -1);
|
||||
hoodedHeadIconIndex = ModContent.GetModBossHeadSlot(hoodedIconPath);
|
||||
@@ -200,6 +202,9 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
CalamityMod.Instance.AddBossHeadTexture(cirrusIconPath, -1);
|
||||
cirrusHeadIconIndex = ModContent.GetModBossHeadSlot(cirrusIconPath);
|
||||
|
||||
CalamityMod.Instance.AddBossHeadTexture(cirrusIconP2Path, -1);
|
||||
cirrusHeadIconP2Index = ModContent.GetModBossHeadSlot(cirrusIconP2Path);
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
@@ -254,7 +259,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
bool inPhase2 = NPC.ai[0] == 3f;
|
||||
if (cirrus)
|
||||
{
|
||||
index = cirrusHeadIconIndex;
|
||||
index = inPhase2 ? cirrusHeadIconP2Index : cirrusHeadIconIndex;
|
||||
}
|
||||
else
|
||||
{
|
||||
@@ -740,7 +745,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if (bulletHellCounter2 < 900)
|
||||
{
|
||||
despawnProj = true;
|
||||
bulletHellCounter2 += 1;
|
||||
bulletHellCounter2++;
|
||||
NPC.damage = 0;
|
||||
NPC.chaseable = false;
|
||||
NPC.dontTakeDamage = true;
|
||||
@@ -750,7 +755,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
bulletHellCounter += 1;
|
||||
bulletHellCounter++;
|
||||
if (bulletHellCounter >= baseBulletHellProjectileGateValue)
|
||||
{
|
||||
bulletHellCounter = 0;
|
||||
@@ -772,7 +777,8 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
else // Blasts from above, left, and right
|
||||
{
|
||||
if (!Main.zenithWorld)
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 3f * uDieLul, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
|
||||
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + 1000f, player.position.Y + Main.rand.Next(-1000, 1001), -3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y + Main.rand.Next(-1000, 1001), 3f * uDieLul, 0f, bulletHellblast, bulletHellblastDamage, 0f, Main.myPlayer);
|
||||
}
|
||||
@@ -812,7 +818,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if (bulletHellCounter2 < 1800 && startSecondAttack)
|
||||
{
|
||||
despawnProj = true;
|
||||
bulletHellCounter2 += 1;
|
||||
bulletHellCounter2++;
|
||||
NPC.damage = 0;
|
||||
NPC.chaseable = false;
|
||||
NPC.dontTakeDamage = true;
|
||||
@@ -822,6 +828,17 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
// Cirrus throws alcohol bottles that explode into Fabstaff Rays
|
||||
if (cirrus)
|
||||
{
|
||||
if (bulletHellCounter2 % 90 == 0)
|
||||
{
|
||||
float bottleSpeed = 12f;
|
||||
Vector2 bottleVelocity = Vector2.Normalize(player.Center + player.velocity * 20f - NPC.Center) * bottleSpeed;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, bottleVelocity * uDieLul, ModContent.ProjectileType<CirrusVolatileVodkaBottle>(), 350, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
if (bulletHellCounter2 < 1200)
|
||||
{
|
||||
if (bulletHellCounter2 % 180 == 0) // Blasts from top
|
||||
@@ -838,7 +855,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer);
|
||||
}
|
||||
|
||||
bulletHellCounter += 1;
|
||||
bulletHellCounter++;
|
||||
if (bulletHellCounter >= baseBulletHellProjectileGateValue + 1)
|
||||
{
|
||||
bulletHellCounter = 0;
|
||||
@@ -903,7 +920,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if (bulletHellCounter2 < 2700 && startThirdAttack)
|
||||
{
|
||||
despawnProj = true;
|
||||
bulletHellCounter2 += 1;
|
||||
bulletHellCounter2++;
|
||||
NPC.damage = 0;
|
||||
NPC.chaseable = false;
|
||||
NPC.dontTakeDamage = true;
|
||||
@@ -919,7 +936,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if (bulletHellCounter2 % 240 == 0) // Fireblasts from above
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 10f * uDieLul, gigablast, fireblastDamage, 0f, Main.myPlayer);
|
||||
|
||||
bulletHellCounter += 1;
|
||||
bulletHellCounter++;
|
||||
if (bulletHellCounter >= baseBulletHellProjectileGateValue + 4)
|
||||
{
|
||||
bulletHellCounter = 0;
|
||||
@@ -984,7 +1001,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if (bulletHellCounter2 < 3600 && startFourthAttack)
|
||||
{
|
||||
despawnProj = true;
|
||||
bulletHellCounter2 += 1;
|
||||
bulletHellCounter2++;
|
||||
NPC.damage = 0;
|
||||
NPC.chaseable = false;
|
||||
NPC.dontTakeDamage = true;
|
||||
@@ -1009,7 +1026,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
passedVar += 1f;
|
||||
}
|
||||
|
||||
bulletHellCounter += 1;
|
||||
bulletHellCounter++;
|
||||
if (bulletHellCounter >= baseBulletHellProjectileGateValue + 6)
|
||||
{
|
||||
bulletHellCounter = 0;
|
||||
@@ -1074,7 +1091,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
if (bulletHellCounter2 < 4500 && startFifthAttack)
|
||||
{
|
||||
despawnProj = true;
|
||||
bulletHellCounter2 += 1;
|
||||
bulletHellCounter2++;
|
||||
NPC.damage = 0;
|
||||
NPC.chaseable = false;
|
||||
NPC.dontTakeDamage = true;
|
||||
@@ -1084,6 +1101,17 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
|
||||
if (Main.netMode != NetmodeID.MultiplayerClient)
|
||||
{
|
||||
// Cirrus throws alcohol bottles that explode into Fabstaff Rays
|
||||
if (cirrus)
|
||||
{
|
||||
if (bulletHellCounter2 % 90 == 0)
|
||||
{
|
||||
float bottleSpeed = 12f;
|
||||
Vector2 bottleVelocity = Vector2.Normalize(player.Center + player.velocity * 20f - NPC.Center) * bottleSpeed;
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), NPC.Center, bottleVelocity * uDieLul, ModContent.ProjectileType<CirrusVolatileVodkaBottle>(), 350, 0f, Main.myPlayer);
|
||||
}
|
||||
}
|
||||
|
||||
if (bulletHellCounter2 % 240 == 0) // Blasts from top
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X + Main.rand.Next(-1000, 1001), player.position.Y - 1000f, 0f, 5f * uDieLul, fireblast, gigablastDamage, 0f, Main.myPlayer);
|
||||
|
||||
@@ -1097,7 +1125,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
Projectile.NewProjectile(NPC.GetSource_FromAI(), player.position.X - 1000f, player.position.Y - random, 5f * uDieLul, 0f, wave, waveDamage, 0f, Main.myPlayer);
|
||||
}
|
||||
|
||||
bulletHellCounter += 1;
|
||||
bulletHellCounter++;
|
||||
if (bulletHellCounter >= baseBulletHellProjectileGateValue + 8)
|
||||
{
|
||||
bulletHellCounter = 0;
|
||||
@@ -1131,6 +1159,7 @@ namespace CalamityMod.NPCs.SupremeCalamitas
|
||||
FrameType = FrameAnimationType.Casting;
|
||||
return;
|
||||
}
|
||||
|
||||
if (!startFifthAttack && lifeRatio <= 0.1f)
|
||||
{
|
||||
// Bouncy Boulders
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.NPCs.AdultEidolonWyrm;
|
||||
using CalamityMod.NPCs.PrimordialWyrm;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System;
|
||||
@@ -1043,7 +1043,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
|
||||
if (npc.ai[0] >= 0f)
|
||||
{
|
||||
// Triple damage if the Adult Eidolon Wyrm is alive
|
||||
// Triple damage if the Primordial Wyrm is alive
|
||||
if (npc.ai[0] == 0f)
|
||||
{
|
||||
if (CalamityGlobalNPC.adultEidolonWyrmHead != -1)
|
||||
@@ -1090,12 +1090,12 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
float lifeRatio = Main.npc[(int)npc.ai[0]].life / (float)Main.npc[(int)npc.ai[0]].lifeMax;
|
||||
|
||||
bool phase2 = lifeRatio < 0.7f;
|
||||
bool phase3 = lifeRatio < (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>() ? 0.6f : 0.55f);
|
||||
bool phase3 = lifeRatio < (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<PrimordialWyrmHead>() ? 0.6f : 0.55f);
|
||||
bool phase4 = lifeRatio < 0.4f;
|
||||
|
||||
bool kill = npc.ai[1] < 0f || !Main.npc[(int)npc.ai[0]].active;
|
||||
int target = Main.maxPlayers;
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss || Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == NPCID.CultistBoss || Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<PrimordialWyrmHead>())
|
||||
{
|
||||
if (target == Main.maxPlayers)
|
||||
target = Main.npc[(int)npc.ai[0]].target;
|
||||
@@ -1106,7 +1106,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
if (phase4 || death)
|
||||
rateOfChange = 3;
|
||||
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<PrimordialWyrmHead>())
|
||||
npc.dontTakeDamage = true;
|
||||
}
|
||||
else
|
||||
@@ -1128,7 +1128,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
double deg = npc.ai[3];
|
||||
double rad = deg * (Math.PI / 180);
|
||||
double dist = 550;
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<PrimordialWyrmHead>())
|
||||
{
|
||||
float aiGateValue = Main.npc[(int)npc.ai[0]].Calamity().newAI[2] - 30f;
|
||||
int ancientDoomScale = (int)(aiGateValue / 120f);
|
||||
@@ -1180,8 +1180,8 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.Bosses
|
||||
int type = ProjectileID.AncientDoomProjectile;
|
||||
int damage = npc.GetProjectileDamage(type);
|
||||
|
||||
// Triple damage if the Adult Eidolon Wyrm is alive
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<AdultEidolonWyrmHead>())
|
||||
// Triple damage if the Primordial Wyrm is alive
|
||||
if (Main.npc[(int)npc.ai[0]].type == ModContent.NPCType<PrimordialWyrmHead>())
|
||||
damage *= 3;
|
||||
|
||||
kill = true;
|
||||
|
||||
@@ -88,7 +88,7 @@ namespace CalamityMod.NPCs.VanillaNPCOverrides.RegularEnemies
|
||||
|
||||
public static bool BuffedSlimeAI(NPC npc, Mod mod)
|
||||
{
|
||||
bool isLavaSlime = npc.type == NPCID.LavaSlime || npc.type == ModContent.NPCType<CharredSlime>();
|
||||
bool isLavaSlime = npc.type == NPCID.LavaSlime || npc.type == ModContent.NPCType<InfernalCongealment>();
|
||||
bool canShootProjectile = npc.type == NPCID.SpikedIceSlime || npc.type == NPCID.SlimeSpiked || npc.type == NPCID.SpikedJungleSlime;
|
||||
int projectileShootType = -1;
|
||||
float projectileShootSpeedFactor = 1f;
|
||||
|
||||
@@ -191,6 +191,23 @@ namespace CalamityMod.Projectiles.Boss
|
||||
return;
|
||||
|
||||
target.AddBuff(ModContent.BuffType<VulnerabilityHex>(), 300, true);
|
||||
|
||||
// Remove all positive buffs from the player if they're hit by HAGE while Cirrus is alive
|
||||
if (Main.npc[CalamityGlobalNPC.SCal].ModNPC<SupremeCalamitas>().cirrus)
|
||||
{
|
||||
if (Main.myPlayer == target.whoAmI)
|
||||
{
|
||||
for (int l = 0; l < Player.MaxBuffs; l++)
|
||||
{
|
||||
int buffType = target.buffType[l];
|
||||
if (!CalamityLists.debuffList.Contains(buffType))
|
||||
{
|
||||
target.DelBuff(l);
|
||||
l--;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void DrawBehind(int index, List<int> behindNPCsAndTiles, List<int> behindNPCs, List<int> behindProjectiles, List<int> overPlayers, List<int> overWiresUI)
|
||||
|
||||
@@ -0,0 +1,103 @@
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Events;
|
||||
using System;
|
||||
|
||||
namespace CalamityMod.Projectiles.Boss
|
||||
{
|
||||
public class CirrusVolatileVodkaBottle : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Boss";
|
||||
|
||||
public override string Texture => "CalamityMod/Items/Potions/Alcohol/FabsolsVodka";
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.width = 30;
|
||||
Projectile.height = 30;
|
||||
Projectile.hostile = true;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.penetrate = 1;
|
||||
Projectile.timeLeft = 120;
|
||||
Projectile.aiStyle = ProjAIStyleID.ThrownProjectile;
|
||||
AIType = ProjectileID.ThrowingKnife;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
if (Projectile.ai[0] == 0f)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item106, Projectile.Center);
|
||||
Projectile.ai[0] = 1f;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
Texture2D tex = ModContent.Request<Texture2D>(Texture).Value;
|
||||
Main.EntitySpriteDraw(tex, Projectile.Center - Main.screenPosition, null, Projectile.GetAlpha(lightColor), Projectile.rotation, tex.Size() / 2f, Projectile.scale, SpriteEffects.None, 0);
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void Kill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Shatter, Projectile.Center);
|
||||
|
||||
for (int i = 0; i < 10; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 0, default, 1.2f);
|
||||
Main.dust[dust].velocity *= 3f;
|
||||
if (Main.rand.NextBool(2))
|
||||
{
|
||||
Main.dust[dust].scale = 0.5f;
|
||||
Main.dust[dust].fadeIn = 1f + (float)Main.rand.Next(10) * 0.1f;
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < 20; i++)
|
||||
{
|
||||
int dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.BlueCosmilite, 0f, 0f, 0, default, 1.7f);
|
||||
Main.dust[dust].noGravity = true;
|
||||
Main.dust[dust].velocity *= 5f;
|
||||
dust = Dust.NewDust(Projectile.position, Projectile.width, Projectile.height, (int)CalamityDusts.PurpleCosmilite, 0f, 0f, 0, default, 1f);
|
||||
Main.dust[dust].velocity *= 2f;
|
||||
}
|
||||
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
int totalProjectiles = 3;
|
||||
float radians = MathHelper.TwoPi / totalProjectiles;
|
||||
int type = ModContent.ProjectileType<FabRay>();
|
||||
float velocity = 8f;
|
||||
double angleA = radians * 0.5;
|
||||
double angleB = MathHelper.ToRadians(90f) - angleA;
|
||||
float velocityX2 = (float)(velocity * Math.Sin(angleA) / Math.Sin(angleB));
|
||||
Vector2 spinningPoint = Main.rand.NextBool() ? new Vector2(0f, -velocity) : new Vector2(-velocityX2, -velocity);
|
||||
for (int k = 0; k < totalProjectiles; k++)
|
||||
{
|
||||
Vector2 velocity2 = spinningPoint.RotatedBy(radians * k);
|
||||
int proj = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center + Vector2.Normalize(velocity2) * 10f, velocity2, type, (int)Math.Round(Projectile.damage * 0.8), 0f, Main.myPlayer);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[proj].DamageType = DamageClass.Default;
|
||||
Main.projectile[proj].friendly = false;
|
||||
Main.projectile[proj].hostile = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
Projectile.Kill();
|
||||
target.AddBuff(ModContent.BuffType<FabsolVodkaBuff>(), 54000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,10 +1,12 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Buffs.Alcohol;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using System;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
public class FabRay : ModProjectile, ILocalizedModType
|
||||
@@ -80,7 +82,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
}
|
||||
|
||||
// Emit light.
|
||||
Lighting.AddLight(Projectile.Center, Vector3.One * Projectile.Opacity * 0.7f);
|
||||
if (!Projectile.hostile)
|
||||
Lighting.AddLight(Projectile.Center, Vector3.One * Projectile.Opacity * 0.7f);
|
||||
}
|
||||
|
||||
internal Color ColorFunction(float completionRatio)
|
||||
@@ -127,5 +130,11 @@ namespace CalamityMod.Projectiles.Magic
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnHitPlayer(Player target, Player.HurtInfo info)
|
||||
{
|
||||
if (Projectile.hostile)
|
||||
target.AddBuff(ModContent.BuffType<FabsolVodkaBuff>(), 54000);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -46,7 +46,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.width = Projectile.height = 2;
|
||||
Projectile.friendly = true;
|
||||
Projectile.ignoreWater = true;
|
||||
Projectile.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.DamageType = TrueMeleeNoSpeedDamageClass.Instance;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = -1;
|
||||
@@ -147,6 +148,7 @@ namespace CalamityMod.Projectiles.Melee
|
||||
DashDestination = intendedDestination;
|
||||
Projectile.damage = (int)(Projectile.damage * MaxChargeDamageMult * Charge / MaxChargeTime);
|
||||
Projectile.ExpandHitboxBy(100);
|
||||
Projectile.tileCollide = true;
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -293,10 +295,10 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Vector2 pointEnd = Projectile.Center + dashLength * 0.1f;
|
||||
Vector2 lineStart = pointStart + dashLength * 0.1f;
|
||||
Vector2 lineEnd = pointStart + dashLength;
|
||||
Color lineColor = telegraphColor * 0.2f;
|
||||
Color lineColor = telegraphColor * 0.3f;
|
||||
float lineScale = 2f;
|
||||
Main.spriteBatch.DrawLineBetter(lineStart, pointEnd, lineColor, lineScale);
|
||||
Main.spriteBatch.DrawLineBetter(lineStart, lineEnd, lineColor, lineScale);
|
||||
Main.spriteBatch.DrawLineBetter(lineStart, lineEnd, lineColor, lineScale * 2f);
|
||||
Main.spriteBatch.DrawLineBetter(lineEnd, intendedDestination, lineColor, lineScale);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,54 +0,0 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
{
|
||||
public class VerdantYoyo : ModProjectile, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Projectiles.Melee";
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
ProjectileID.Sets.YoyosLifeTimeMultiplier[Projectile.type] = -1f;
|
||||
ProjectileID.Sets.YoyosMaximumRange[Projectile.type] = 560f;
|
||||
ProjectileID.Sets.YoyosTopSpeed[Projectile.type] = 17f;
|
||||
|
||||
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 8;
|
||||
ProjectileID.Sets.TrailingMode[Projectile.type] = 1;
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Projectile.aiStyle = ProjAIStyleID.Yoyo;
|
||||
Projectile.width = 16;
|
||||
Projectile.height = 16;
|
||||
Projectile.scale = 1.1f;
|
||||
Projectile.friendly = true;
|
||||
Projectile.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.MaxUpdates = 2;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 9;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
{
|
||||
Projectile.velocity *= 1.01f;
|
||||
|
||||
if (Main.rand.NextBool(5))
|
||||
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 75, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
|
||||
|
||||
CalamityUtils.MagnetSphereHitscan(Projectile, 300f, 12f, 54f, 5, ProjectileID.CrystalLeafShot, 0.8);
|
||||
|
||||
if ((Projectile.position - Main.player[Projectile.owner].position).Length() > 3200f) //200 blocks
|
||||
Projectile.Kill();
|
||||
}
|
||||
|
||||
public override bool PreDraw(ref Color lightColor)
|
||||
{
|
||||
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], lightColor, 1);
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 259 B |
@@ -61,7 +61,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.SourceDamage += OnHitEffect(Main.player[Projectile.owner]);
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers) => modifiers.SourceDamage.Flat += OnHitEffect(Main.player[Projectile.owner]);
|
||||
|
||||
// Returns the amount of bonus damage that should be dealt. Boosts life regeneration appropriately as a side effect.
|
||||
private int OnHitEffect(Player owner)
|
||||
|
||||