Merge branch '1.4.4' into Debuff-Tooltip-Completion
No files matched your search
@@ -68,6 +68,9 @@ namespace CalamityMod.Balancing
|
||||
|
||||
// 25% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.EaterOfWorlds, Do(ResistTrueMelee(0.75f))));
|
||||
|
||||
// 40% resist to Lemon 'nade
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.EaterOfWorlds, Do(new ProjectileResistBalancingRule(0.60f, ProjectileType<LemonNadeProjectile>()))));
|
||||
#endregion
|
||||
|
||||
#region Brain of Cthulhu: Creepers
|
||||
@@ -195,9 +198,6 @@ namespace CalamityMod.Balancing
|
||||
// 75% resist to Plaguenades.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.25f, ProjectileType<PlaguenadeBee>(), ProjectileType<PlaguenadeProj>()))));
|
||||
|
||||
// 70% resist to Stardust Dragon Staff.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.3f, ProjectileID.StardustDragon1, ProjectileID.StardustDragon2, ProjectileID.StardustDragon3, ProjectileID.StardustDragon4))));
|
||||
|
||||
// 50% resist to true melee.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(ResistTrueMelee(0.5f))));
|
||||
|
||||
@@ -206,7 +206,13 @@ namespace CalamityMod.Balancing
|
||||
|
||||
// 50% resist to Charged Blaster Cannon.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.5f, ProjectileID.ChargedBlasterLaser))));
|
||||
|
||||
|
||||
//45% resist to Duststorm in a Bottle
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.55f, ProjectileType<DuststormCloud>(), ProjectileType<DuststormCloudExplosion>(), ProjectileType<DuststormInABottleProj>()))));
|
||||
|
||||
// 40% resist to Stardust Dragon Staff.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.6f, ProjectileID.StardustDragon1, ProjectileID.StardustDragon2, ProjectileID.StardustDragon3, ProjectileID.StardustDragon4))));
|
||||
|
||||
// 35% resist to Aerial Bane.
|
||||
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityNPCTypeSets.AstrumDeus, Do(new ProjectileResistBalancingRule(0.65f, ProjectileID.DD2BetsyArrow))));
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Systems.Collections;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -18,7 +19,7 @@ namespace CalamityMod.Buffs.Alcohol
|
||||
Main.buffNoSave[Type] = false;
|
||||
Main.persistentBuff[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
|
Before Width: | Height: | Size: 723 B After Width: | Height: | Size: 731 B |
@@ -140,14 +140,16 @@ namespace CalamityMod.Buffs
|
||||
{
|
||||
// Globally remove summon tag debuff stacking, unless allowed in the SummonTag
|
||||
// Other mods need to add to this list because otherwise we can't tell which IsATag buff is actually for whips
|
||||
if (CalamityBuffSets.SummonTagDebuff.TryGetValue(type, out var tag1) && !tag1.AllowsWhipStacking && buffIndex > 0)
|
||||
var tag1 = CalamityBuffSets.SummonTagDebuff[type];
|
||||
if (tag1 is not null && !tag1.AllowsWhipStacking && buffIndex > 0)
|
||||
{
|
||||
for (int i = buffIndex; i >= 0; i--)
|
||||
{
|
||||
if (npc.buffTime[i] > 0)
|
||||
{
|
||||
int buffID = npc.buffType[i];
|
||||
if (CalamityBuffSets.SummonTagDebuff.TryGetValue(buffID, out var tag2) && !tag2.AllowsWhipStacking && buffID != type)
|
||||
var tag2 = CalamityBuffSets.SummonTagDebuff[buffID];
|
||||
if (tag2 is not null && !tag2.AllowsWhipStacking && buffID != type)
|
||||
{
|
||||
npc.DelBuff(i);
|
||||
break;
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -7,6 +7,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -25,7 +26,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
public static void BaneNPCLifeRegen(NPC npc, int buffType, ref int buffIndex, ref int damage)
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -24,7 +25,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -4,6 +4,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -20,7 +21,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -4,6 +4,7 @@ using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = DebuffData.Daybroken;
|
||||
CalamityBuffSets.DebuffDataset[Type] = DebuffData.Daybroken;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -7,6 +7,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -29,7 +30,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -20,7 +21,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
@@ -70,7 +71,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Particle smoke = new HeavySmokeParticle(npcSize, new Vector2(2f, 2f).RotatedByRandom(100) * Main.rand.NextFloat(0.3f, 0.7f), smokeColor, 40, Main.rand.NextFloat(0.3f, 0.4f) + (0.00000013f * npc.width * npc.height), 0.5f, Main.rand.NextFloat(-0.2f, 0.2f), false, required: true);
|
||||
GeneralParticleHandler.SpawnParticle(smoke);
|
||||
}
|
||||
Dust water = Dust.NewDustDirect(npc.position - new Vector2(2f), npc.width + 4, npc.height + 4, 360, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 1.4f);
|
||||
Dust water = Dust.NewDustDirect(npc.position - new Vector2(2f), npc.width + 4, npc.height + 4, 390, npc.velocity.X * 0.4f, npc.velocity.Y * 0.4f, 100, default, 1.4f);
|
||||
water.noGravity = true;
|
||||
water.velocity *= 0.75f;
|
||||
water.velocity.X = water.velocity.X * 0.75f;
|
||||
|
||||
@@ -6,6 +6,7 @@ using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -19,7 +20,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -6,6 +6,7 @@ using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -13,6 +13,7 @@ using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -55,7 +56,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -4,6 +4,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -20,7 +21,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Systems.Collections;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -58,7 +59,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.DataStructures;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -33,7 +34,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -18,7 +19,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = DebuffData.Shadowflame;
|
||||
CalamityBuffSets.DebuffDataset[Type] = DebuffData.Shadowflame;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using CalamityMod.Projectiles.Summon;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -51,7 +52,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
BuffID.Sets.IsATagBuff[Type] = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -34,7 +35,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -4,6 +4,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -20,7 +21,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
|
||||
// Acid Venom immunity is granted automatically if you are immune to Sulphuric Poisoning.
|
||||
BuffID.Sets.GrantImmunityWith[BuffID.Venom].Add(Type);
|
||||
|
||||
@@ -8,6 +8,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -28,7 +29,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex) => player.Calamity().trueVHex = true;
|
||||
|
||||
@@ -6,6 +6,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -23,7 +24,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -8,6 +8,7 @@ using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -31,7 +32,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex) => player.Calamity().vHex = true;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.DataStructures;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.DamageOverTime
|
||||
{
|
||||
@@ -17,7 +18,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex) => player.Calamity().weakBrimstoneFlames = true;
|
||||
|
||||
@@ -1,14 +1,9 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Dusts;
|
||||
using CalamityMod.Particles;
|
||||
using CalamityMod.Projectiles.Magic;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
using CalamityMod.Systems.Collections;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
@@ -31,12 +26,12 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
public static void WindChilledNPCLifeRegen(NPC npc, int buffType, ref int buffIndex, ref int damage)
|
||||
{
|
||||
var cnpc = npc.Calamity();
|
||||
|
||||
|
||||
int baseDoTValue = (int)(cnpc.windChilledMult * npc.Calamity().ActiveColdDebuffMultiplier.ApplyTo(debuffData.EnemyLostRegen));
|
||||
cnpc.ApplyDPSDebuff(baseDoTValue, Math.Max((int)(baseDoTValue * debuffData.MultiplierDamageTickSize), debuffData.MinimumDamageTickSize) / 2, ref npc.lifeRegen, ref damage);
|
||||
}
|
||||
@@ -94,7 +89,7 @@ namespace CalamityMod.Buffs.DamageOverTime
|
||||
bool start = !Main.rand.NextBool(4);
|
||||
Vector2 particleVel = Vector2.UnitY * Main.rand.NextFloat(-1.25f, 1.25f) * Math.Max(hightMult, widthMult) * (Main.rand.NextBool(5) ? 1.5f : 1) + npc.velocity * 0.85f;
|
||||
Vector2 particlePos = npc.Center + Main.rand.NextVector2Circular(3 * widthMult + 8, 3 * widthMult + 8) * Math.Max(hightMult, widthMult);
|
||||
Particle mist = new CustomPulsingSpark(particlePos, particleVel, "CalamityMod/Particles/ThinSparkle", "CalamityMod/Particles/BloomCircle", false, 65, Main.rand.NextFloat(0.95f, 1.35f) * MathF.Pow(widthMult, 0.45f), start ? color : color2, start ? color2 : color,
|
||||
Particle mist = new CustomPulsingSpark(particlePos, particleVel, "CalamityMod/Particles/ThinSparkle", "CalamityMod/Particles/BloomCircle", false, 65, Main.rand.NextFloat(0.95f, 1.35f) * MathF.Pow(widthMult, 0.45f), start ? color : color2, start ? color2 : color,
|
||||
new Vector2(0.6f, 1.2f), true, true, Main.rand.Next(4, 7 + 1), colorFadeSpeed: 0.85f, noShrink: true, extraRotation: -particleVel.ToRotation(), shrinkSpeed: 0.1f, sineRate: Main.rand.NextFloat(0.25f, 0.55f), sineIntensity: (int)(Main.rand.Next(12, 19 + 1) * Math.Max(hightMult, widthMult)));
|
||||
GeneralParticleHandler.SpawnParticle(mist, true, Main.rand.NextBool() ? Enums.GeneralDrawLayer.AfterNPCs : Enums.GeneralDrawLayer.BeforeNPCs);
|
||||
}
|
||||
|
||||
@@ -0,0 +1,27 @@
|
||||
using CalamityMod.Projectiles.Pets;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Pets
|
||||
{
|
||||
public class BeldumBuff : ModBuff
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.vanityPet[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.buffTime[buffIndex] = 18000;
|
||||
player.Calamity().beldum = true;
|
||||
bool PetProjectileNotSpawned = player.ownedProjectileCounts[ModContent.ProjectileType<Beldum>()] <= 0;
|
||||
if (PetProjectileNotSpawned && player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
Projectile.NewProjectile(player.GetSource_Buff(buffIndex), player.Center, Vector2.Zero, ModContent.ProjectileType<Beldum>(), 0, 0f, player.whoAmI, 0f, 0f);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 632 B |
|
Before Width: | Height: | Size: 575 B After Width: | Height: | Size: 587 B |
|
Before Width: | Height: | Size: 664 B After Width: | Height: | Size: 644 B |
|
Before Width: | Height: | Size: 562 B After Width: | Height: | Size: 551 B |
|
Before Width: | Height: | Size: 535 B After Width: | Height: | Size: 503 B |
|
Before Width: | Height: | Size: 587 B After Width: | Height: | Size: 530 B |
@@ -4,6 +4,7 @@ using CalamityMod.Items.Accessories;
|
||||
using Terraria;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
@@ -47,7 +48,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Particles;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
@@ -21,7 +22,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
|
||||
@@ -6,8 +6,6 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
public class Crumbling : ModBuff
|
||||
{
|
||||
public static int DefenseReduction = 10;
|
||||
public static float MultiplicativeDamageReductionPlayer = 0.7f;
|
||||
// 8% DR reduction
|
||||
public static float MultiplicativeDamageReductionEnemy = 0.92f;
|
||||
|
||||
@@ -24,10 +22,5 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
npc.Calamity().crumble = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().crumble = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Systems.Collections;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
@@ -15,7 +16,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
// Purely to make it get electric color in tooltips
|
||||
public static DebuffData debuffData = new DebuffData()
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Projectiles.Magic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
@@ -53,7 +54,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.NurseCannotRemoveDebuff[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -2,11 +2,15 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Systems.Collections;
|
||||
|
||||
namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
public class WhisperingDeath : ModBuff
|
||||
{
|
||||
public static float PlayerDamageReduction = 0.2f;
|
||||
public static float EnemyDamageReduction = 0.1f;
|
||||
|
||||
// Whispering Death does not deal DoT, but is classified as a sickness debuff.
|
||||
public static DebuffData debuffData = new DebuffData()
|
||||
{
|
||||
@@ -18,7 +22,7 @@ namespace CalamityMod.Buffs.StatDebuffs
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
BuffID.Sets.LongerExpertDebuff[Type] = true;
|
||||
BuffDatasets.DebuffDataset[Type] = debuffData;
|
||||
CalamityBuffSets.DebuffDataset[Type] = debuffData;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.Summon
|
||||
{
|
||||
public class RareSandElemental : BaseSummonBuff
|
||||
public class OasisElementalBuff : BaseSummonBuff
|
||||
{
|
||||
protected override int MinionProjectileType => ModContent.ProjectileType<SandElementalHealer>();
|
||||
|
||||
protected override ref bool MinionBool => ref BuffModdedOwner.rareSandEleBuff;
|
||||
protected override ref bool MinionBool => ref BuffModdedOwner.oasisEleBuff;
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 601 B |
|
Before Width: | Height: | Size: 3.3 KiB |
@@ -36,6 +36,7 @@ using CalamityMod.Items.Armor.TitanHeart;
|
||||
using CalamityMod.Items.Armor.Victide;
|
||||
using CalamityMod.Items.Armor.Wulfrum;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using CalamityMod.Items.Fishing;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Mounts.Minecarts;
|
||||
@@ -433,6 +434,7 @@ namespace CalamityMod.CalPlayer
|
||||
public int murasamaHitCooldown = 0;
|
||||
public int giantShellPostHit = 0;
|
||||
public int tortShellPostHit = 0;
|
||||
public int sharkGunDamageScaling = 0;
|
||||
public int MiniSwarmerCooldown = 0;
|
||||
public float SulphWaterPoisoningLevel;
|
||||
public float holyInfernoFadeIntensity;
|
||||
@@ -599,6 +601,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool lordePet = false;
|
||||
public bool frostyBat = false;
|
||||
public bool toastyBat = false;
|
||||
public bool beldum = false;
|
||||
public bool starSwallowerPetFroge = false;
|
||||
#endregion
|
||||
|
||||
@@ -778,8 +781,6 @@ namespace CalamityMod.CalPlayer
|
||||
#endregion
|
||||
|
||||
#region Permanent Buff
|
||||
/// <summary> If true, the player has spawned in Punch Card through its one-time chat easter egg. </summary>
|
||||
public bool spawnedPunchCard = false;
|
||||
/// <summary> If true, the player has consumed Celestial Onion. </summary>
|
||||
public bool extraAccessoryML = false;
|
||||
/// <summary> If true, the player has consumed Comet Shard. </summary>
|
||||
@@ -1101,8 +1102,8 @@ namespace CalamityMod.CalPlayer
|
||||
public float summonProjCooldown;
|
||||
public bool sandElemental = false;
|
||||
public bool sandElementalVanity = false;
|
||||
public bool rareSandElemental = false;
|
||||
public bool rareSandElementalVanity = false;
|
||||
public bool oasisElemental = false;
|
||||
public bool oasisElementalVanity = false;
|
||||
public bool cloudElemental = false;
|
||||
public bool cloudElementalVanity = false;
|
||||
public bool brimElemental = false;
|
||||
@@ -1394,7 +1395,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool staticDischarge = false;
|
||||
public bool miracleBlight = false;
|
||||
public bool armorCrunch = false;
|
||||
public bool crumble = false;
|
||||
public bool irradiated = false;
|
||||
public bool bane = false;
|
||||
public bool brimstoneFlames = false;
|
||||
@@ -1594,7 +1594,7 @@ namespace CalamityMod.CalPlayer
|
||||
/// <summary> Elemental in a Bottle. </summary>
|
||||
public bool sandEleBuff = false;
|
||||
/// <summary> Rare Elemental in a Bottle. </summary>
|
||||
public bool rareSandEleBuff = false;
|
||||
public bool oasisEleBuff = false;
|
||||
/// <summary> Eye of the Storm. </summary>
|
||||
public bool cloudEleBuff = false;
|
||||
/// <summary> Rose Stone. </summary>
|
||||
@@ -1869,7 +1869,6 @@ namespace CalamityMod.CalPlayer
|
||||
#region Saving And Loading
|
||||
public override void Initialize()
|
||||
{
|
||||
spawnedPunchCard = false;
|
||||
extraAccessoryML = false;
|
||||
eCore = false;
|
||||
mFruit = false;
|
||||
@@ -1921,7 +1920,6 @@ namespace CalamityMod.CalPlayer
|
||||
public override void SaveData(TagCompound tag)
|
||||
{
|
||||
var boost = new List<string>();
|
||||
boost.AddWithCondition("spawnedPunchCard", spawnedPunchCard);
|
||||
boost.AddWithCondition("extraAccessoryML", extraAccessoryML);
|
||||
boost.AddWithCondition("etherealCore", eCore);
|
||||
boost.AddWithCondition("miracleFruit", mFruit);
|
||||
@@ -2011,7 +2009,6 @@ namespace CalamityMod.CalPlayer
|
||||
public override void LoadData(TagCompound tag)
|
||||
{
|
||||
var boost = tag.GetList<string>("boost");
|
||||
spawnedPunchCard = boost.Contains("spawnedPunchCard");
|
||||
extraAccessoryML = boost.Contains("extraAccessoryML");
|
||||
eCore = boost.Contains("etherealCore");
|
||||
mFruit = boost.Contains("miracleFruit");
|
||||
@@ -2319,6 +2316,7 @@ namespace CalamityMod.CalPlayer
|
||||
lordePet = false;
|
||||
frostyBat = false;
|
||||
toastyBat = false;
|
||||
beldum = false;
|
||||
starSwallowerPetFroge = false;
|
||||
|
||||
onyxExcavator = false;
|
||||
@@ -2701,7 +2699,6 @@ namespace CalamityMod.CalPlayer
|
||||
staticDischarge = false;
|
||||
miracleBlight = false;
|
||||
armorCrunch = false;
|
||||
crumble = false;
|
||||
irradiated = false;
|
||||
bane = false;
|
||||
brimstoneFlames = false;
|
||||
@@ -2864,7 +2861,7 @@ namespace CalamityMod.CalPlayer
|
||||
cEnergy = false;
|
||||
pSoulGuardians = false;
|
||||
sandEleBuff = false;
|
||||
rareSandEleBuff = false;
|
||||
oasisEleBuff = false;
|
||||
cloudEleBuff = false;
|
||||
brimEleBuff = false;
|
||||
waterEleBuff = false;
|
||||
@@ -2881,8 +2878,8 @@ namespace CalamityMod.CalPlayer
|
||||
MutatedTruffleBool = false;
|
||||
sandElemental = false;
|
||||
sandElementalVanity = false;
|
||||
rareSandElemental = false;
|
||||
rareSandElementalVanity = false;
|
||||
oasisElemental = false;
|
||||
oasisElementalVanity = false;
|
||||
cloudElemental = false;
|
||||
cloudElementalVanity = false;
|
||||
brimElemental = false;
|
||||
@@ -3190,7 +3187,6 @@ namespace CalamityMod.CalPlayer
|
||||
staticDischarge = false;
|
||||
miracleBlight = false;
|
||||
armorCrunch = false;
|
||||
crumble = false;
|
||||
irradiated = false;
|
||||
bane = false;
|
||||
brimstoneFlames = false;
|
||||
@@ -5112,7 +5108,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int l = 0; l < Player.MaxBuffs; ++l)
|
||||
{
|
||||
int buffID = Player.buffType[l];
|
||||
if ((BuffDatasets.DebuffDataset[buffID] != null && BuffDatasets.DebuffDataset[buffID].AlcoholLevel > 0) || buffID == BuffID.Tipsy)
|
||||
if ((CalamityBuffSets.DebuffDataset[buffID] != null && CalamityBuffSets.DebuffDataset[buffID].AlcoholLevel > 0) || buffID == BuffID.Tipsy)
|
||||
{
|
||||
Player.buffTime[l]++;
|
||||
}
|
||||
@@ -6408,6 +6404,9 @@ namespace CalamityMod.CalPlayer
|
||||
if (it.type == ItemType<ElephantKiller>())
|
||||
playerUsingWeapon = false;
|
||||
|
||||
if (it.type == ItemType<Spadefish>())
|
||||
playerUsingWeapon = false;
|
||||
|
||||
// Animation check depends on whether the item is "clockwork", like Clockwork Assault Rifle.
|
||||
// "Clockwork" weapons can chain-fire multiple stealth strikes (really only 2 max) until you run out of stealth.
|
||||
bool animationCheck = it.useAnimation == it.useTime
|
||||
|
||||
@@ -330,7 +330,7 @@ namespace CalamityMod.CalPlayer
|
||||
// Lower chance of Spadefish in Hardmode
|
||||
if (underground) // Underground
|
||||
{
|
||||
int chance = Main.hardMode ? 10 : 2;
|
||||
int chance = Main.hardMode ? 10 : 4;
|
||||
if (attempt.veryrare && Main.rand.NextBool(chance))
|
||||
{
|
||||
itemDrop = ModContent.ItemType<Spadefish>();
|
||||
|
||||
@@ -502,7 +502,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int index = 0; index < target.buffType.Length; index++)
|
||||
{
|
||||
int type = target.buffType[index];
|
||||
var debuffData = BuffDatasets.DebuffDataset[type];
|
||||
var debuffData = CalamityBuffSets.DebuffDataset[type];
|
||||
if (debuffData != null)
|
||||
numOfDebuffs++;
|
||||
}
|
||||
@@ -727,70 +727,10 @@ namespace CalamityMod.CalPlayer
|
||||
if (npc.Calamity().antlionCloudDebuffTimer > 0)
|
||||
modifiers.SourceDamage *= AntlionSkewer.CloudDamageDebuffMult;
|
||||
|
||||
// Enemies deal less contact damage while sick, due to being weakened.
|
||||
if (npc.poisoned)
|
||||
{
|
||||
float damageReductionFromPoison = (float)((npc.Calamity().irradiated ? npc.Calamity().irradiatedContactBoost : 1) * 0.05f);
|
||||
if (npc.Calamity().VulnerableToSickness.HasValue)
|
||||
{
|
||||
if (npc.Calamity().VulnerableToSickness.Value)
|
||||
damageReductionFromPoison *= 2f;
|
||||
else
|
||||
damageReductionFromPoison /= 2f;
|
||||
}
|
||||
damageReductionFromPoison = 1f - damageReductionFromPoison;
|
||||
|
||||
modifiers.SourceDamage *= damageReductionFromPoison;
|
||||
}
|
||||
|
||||
if (npc.venom)
|
||||
{
|
||||
float damageReductionFromVenom = (float)((npc.Calamity().irradiated ? npc.Calamity().irradiatedContactBoost : 1) * 0.05f);
|
||||
if (npc.Calamity().VulnerableToSickness.HasValue)
|
||||
{
|
||||
if (npc.Calamity().VulnerableToSickness.Value)
|
||||
damageReductionFromVenom *= 2f;
|
||||
else
|
||||
damageReductionFromVenom /= 2f;
|
||||
}
|
||||
damageReductionFromVenom = 1f - damageReductionFromVenom;
|
||||
|
||||
modifiers.SourceDamage *= damageReductionFromVenom;
|
||||
}
|
||||
|
||||
if (npc.Calamity().astralInfection)
|
||||
{
|
||||
float damageReductionFromAstralInfection = (float)((npc.Calamity().irradiated ? npc.Calamity().irradiatedContactBoost : 1) * 0.05f);
|
||||
if (npc.Calamity().VulnerableToSickness.HasValue)
|
||||
{
|
||||
if (npc.Calamity().VulnerableToSickness.Value)
|
||||
damageReductionFromAstralInfection *= 2f;
|
||||
else
|
||||
damageReductionFromAstralInfection /= 2f;
|
||||
}
|
||||
damageReductionFromAstralInfection = 1f - damageReductionFromAstralInfection;
|
||||
|
||||
modifiers.SourceDamage *= damageReductionFromAstralInfection;
|
||||
}
|
||||
|
||||
if (npc.Calamity().plague)
|
||||
{
|
||||
float damageReductionFromPlague = (float)((npc.Calamity().irradiated? npc.Calamity().irradiatedContactBoost : 1) * 0.05f);
|
||||
if (npc.Calamity().VulnerableToSickness.HasValue)
|
||||
{
|
||||
if (npc.Calamity().VulnerableToSickness.Value)
|
||||
damageReductionFromPlague *= 2f;
|
||||
else
|
||||
damageReductionFromPlague /= 2f;
|
||||
}
|
||||
damageReductionFromPlague = 1f - damageReductionFromPlague;
|
||||
|
||||
modifiers.SourceDamage *= damageReductionFromPlague;
|
||||
}
|
||||
|
||||
// Whispering Death makes enemies deal less damage
|
||||
if (npc.Calamity().whisperingDeath)
|
||||
{
|
||||
float damageReductionFromWhisperingDeath = (float)((npc.Calamity().irradiated ? npc.Calamity().irradiatedContactBoost : 1) * 0.1f);
|
||||
float damageReductionFromWhisperingDeath = (float)((npc.Calamity().irradiated ? npc.Calamity().irradiatedContactBoost : 1) * WhisperingDeath.EnemyDamageReduction);
|
||||
if (npc.Calamity().VulnerableToSickness.HasValue)
|
||||
{
|
||||
if (npc.Calamity().VulnerableToSickness.Value)
|
||||
|
||||
@@ -198,18 +198,18 @@ namespace CalamityMod.CalPlayer
|
||||
int buff = Player.buffType[l];
|
||||
if (buff <= 0) continue;
|
||||
|
||||
var data = BuffDatasets.DebuffDataset[buff];
|
||||
var data = CalamityBuffSets.DebuffDataset[buff];
|
||||
if (data?.AlcoholLevel > 0)
|
||||
alcoholPoisonLevel += data.AlcoholLevel;
|
||||
}
|
||||
|
||||
if (dripPlayer.ivDripEquipped && dripPlayer.currentAlcohol != AlcoholType.None)
|
||||
{
|
||||
int ivBuffID = BuffDatasets.GetBuffIDFromAlcoholType(dripPlayer.currentAlcohol);
|
||||
int ivBuffID = CalamityBuffSets.GetBuffIDFromAlcoholType(dripPlayer.currentAlcohol);
|
||||
|
||||
if (ivBuffID != -1)
|
||||
{
|
||||
var ivData = BuffDatasets.DebuffDataset[ivBuffID];
|
||||
var ivData = CalamityBuffSets.DebuffDataset[ivBuffID];
|
||||
if (ivData?.AlcoholLevel > 0)
|
||||
alcoholPoisonLevel += ivData.AlcoholLevel;
|
||||
}
|
||||
@@ -338,7 +338,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Permafrost's Concoction increases life regen while afflicted with a fire debuff
|
||||
if (permafrostsConcoction && Player.buffType.Any(l => BuffDatasets.DebuffDataset[l] is not null && BuffDatasets.DebuffDataset[l].HeatDebuffScaling > 0))
|
||||
if (permafrostsConcoction && Player.buffType.Any(l => CalamityBuffSets.DebuffDataset[l] is not null && CalamityBuffSets.DebuffDataset[l].HeatDebuffScaling > 0))
|
||||
Player.lifeRegen += 6;
|
||||
|
||||
if (grandDadHealTimer == 0 && grandDadHealPool >= 7)
|
||||
@@ -588,7 +588,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (community)
|
||||
{
|
||||
int regenBoost = 1 + (int)(TheCommunity.CalculatePower() * TheCommunity.RegenMultiplier);
|
||||
bool lesserEffect = Player.buffType.Any(i => BuffDatasets.DebuffDataset[i] is not null && BuffDatasets.DebuffDataset[i].AlcoholLevel > 0);
|
||||
bool lesserEffect = Player.buffType.Any(i => CalamityBuffSets.DebuffDataset[i] is not null && CalamityBuffSets.DebuffDataset[i].AlcoholLevel > 0);
|
||||
if (Player.lifeRegen < 0)
|
||||
Player.lifeRegen += lesserEffect ? 1 : regenBoost;
|
||||
}
|
||||
|
||||
@@ -908,6 +908,11 @@ namespace CalamityMod.CalPlayer
|
||||
int scoriaOreID = ModContent.TileType<ScoriaOre>();
|
||||
int abyssKelpID = ModContent.TileType<AbyssKelp>();
|
||||
|
||||
// Auric Ore causes an Auric Rejection unless you are wearing Auric Armor or have God Mode
|
||||
// Auric Rejection causes an electrical explosion that yeets the player a considerable distance
|
||||
// CIT 17AUG2024: Despite providing full invulnerability, Silva armor revive intentionally does not prevent Auric rejection's yeeting.
|
||||
// 25FEB2025 Ozzatron: Added external bool to control Auric Rejection immunity from the ore.
|
||||
bool rejectionImmunity = auricSet || seraphTracers || Player.creativeGodMode || externalAuricRejectionImmunity;
|
||||
int auricRejectionDamage = 300;
|
||||
float auricRejectionKB = Player.noKnockback ? 20f : 40f;
|
||||
|
||||
@@ -944,11 +949,6 @@ namespace CalamityMod.CalPlayer
|
||||
Player.AddBuff(BuffID.Burning, 2);
|
||||
}
|
||||
|
||||
// Auric Ore causes an Auric Rejection unless you are wearing Auric Armor or have God Mode
|
||||
// Auric Rejection causes an electrical explosion that yeets the player a considerable distance
|
||||
// CIT 17AUG2024: Despite providing full invulnerability, Silva armor revive intentionally does not prevent Auric rejection's yeeting.
|
||||
// 25FEB2025 Ozzatron: Added external bool to control Auric Rejection immunity from the ore.
|
||||
bool rejectionImmunity = auricSet || seraphTracers || Player.creativeGodMode || externalAuricRejectionImmunity;
|
||||
bool oreRejection = (tile.TileType == auricOreID) && !rejectionImmunity;
|
||||
|
||||
// Repulsers always perform this effect because they are player-placed tiles made for this exact purpose
|
||||
@@ -975,6 +975,19 @@ namespace CalamityMod.CalPlayer
|
||||
SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/ExoMechs/TeslaShoot1"), Player.Center);
|
||||
}
|
||||
}
|
||||
|
||||
if (Player.sitting.TryGetSittingBlock(Player, out Tile AuricToiletTile) && !rejectionImmunity)
|
||||
{
|
||||
if (AuricToiletTile.TileType == ModContent.TileType<AuricToiletTile>())
|
||||
{
|
||||
Player.Hurt(PlayerDeathReason.ByCustomReason(CalamityUtils.GetText("Status.Death.AuricRejection").ToNetworkText(Player.name)), auricRejectionDamage, 0);
|
||||
Player.AddBuff(ModContent.BuffType<AuricRebuke>(), 120);
|
||||
SoundEngine.PlaySound(new SoundStyle("CalamityMod/Sounds/Custom/ExoMechs/TeslaShoot1"), Player.Center);
|
||||
Player.sitting.SitUp(Player, false);
|
||||
Vector2 yeetVec = new Vector2(Player.direction, -1.5f);
|
||||
Player.velocity += yeetVec * auricRejectionKB;
|
||||
}
|
||||
}
|
||||
}
|
||||
private void HandleBlazingMouseEffects()
|
||||
{
|
||||
@@ -1708,6 +1721,7 @@ namespace CalamityMod.CalPlayer
|
||||
fishStockOldPower.Item2,
|
||||
fishStockOldPower.Item3,
|
||||
fishStockOldPower.Item4);
|
||||
fishStockPower = newFishStockPower;
|
||||
}
|
||||
// Stats
|
||||
Player.GetDamage<GenericDamageClass>() += 0.15f * fishStockPower;
|
||||
@@ -2381,7 +2395,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (bloomStoneTotalHeal > 0)
|
||||
{
|
||||
float healRateDiv = (Player.statLife >= Player.statLifeMax ? 5 : // 5 times as slow if at max hp already (overheal prevention)
|
||||
float healRateDiv = (Player.statLife >= Player.statLifeMax ? 2 : // 2 times as slow if at max hp already (overheal prevention)
|
||||
bloomStoneBuffedHealRateTimer > 0 ? Utils.Remap(bloomStoneBuffedHealRateTimer, 90, 0, 0.5f, 1f, true) // 2 times faster if pollen buffed, scales back down to regular speed as the buff fades
|
||||
: 1); // Regular speed
|
||||
bloomStoneHealRate = 1 / healRateDiv;
|
||||
@@ -3837,7 +3851,7 @@ namespace CalamityMod.CalPlayer
|
||||
Player.lifeMagnet = true;
|
||||
|
||||
if (whisperingDeath && !laudanum)
|
||||
Player.GetDamage<GenericDamageClass>() -= 0.2f;
|
||||
Player.GetDamage<GenericDamageClass>() -= WhisperingDeath.PlayerDamageReduction;
|
||||
|
||||
if (armorCrunch && !laudanum)
|
||||
{
|
||||
@@ -4450,7 +4464,7 @@ namespace CalamityMod.CalPlayer
|
||||
else if (hasBuff == ModContent.BuffType<WhisperingDeath>())
|
||||
{
|
||||
Player.lifeRegenCount += 5;
|
||||
Player.GetDamage<GenericDamageClass>() += 0.2f;
|
||||
Player.GetDamage<GenericDamageClass>() += WhisperingDeath.PlayerDamageReduction;
|
||||
}
|
||||
|
||||
switch (hasBuff)
|
||||
|
||||
@@ -456,6 +456,15 @@ namespace CalamityMod.CalPlayer
|
||||
GungeonMusicSystem.GUN();
|
||||
}
|
||||
|
||||
// Used by Megalodon, Seadragon & Voidragon, allows bullets to track their damage scaling
|
||||
if (cgp.sharkBullets)
|
||||
{
|
||||
if (proj.numHits == 0)
|
||||
{
|
||||
sharkGunDamageScaling++;
|
||||
}
|
||||
}
|
||||
|
||||
if (cgp.fireBullet)
|
||||
{
|
||||
target.AddBuff(BuffID.OnFire3, 60);
|
||||
@@ -1289,7 +1298,7 @@ namespace CalamityMod.CalPlayer
|
||||
//Nanotech has the same heal as Electrician's glove
|
||||
Player.SpawnLifeStealProjectile(target, proj, ProjectileID.VampireHeal, electricianGlove ? 10 : 5, electricianGlove ? 2f : 3f);
|
||||
|
||||
if (proj.CountsAsClass<MagicDamageClass>() && Player.HeldItem.CountsAsClass<MagicDamageClass>())
|
||||
if (proj.CountsAsClass<MagicDamageClass>())
|
||||
{
|
||||
if (manaOverloader)
|
||||
{
|
||||
|
||||
@@ -9,88 +9,6 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.DataStructures
|
||||
{
|
||||
[ReinitializeDuringResizeArrays]
|
||||
public static class BuffDatasets
|
||||
{
|
||||
private static DebuffData Alch(int level) => new DebuffData() { AlcoholLevel = level };
|
||||
public static DebuffData[] DebuffDataset = BuffID.Sets.Factory.CreateNamedSet("DebuffData")
|
||||
.Description("Stores DebuffData for a particular debuff")
|
||||
.RegisterCustomSet<DebuffData>(null,
|
||||
BuffID.OnFire, DebuffData.OnFire,
|
||||
BuffID.OnFire3, DebuffData.Hellfire,
|
||||
BuffID.CursedInferno, DebuffData.CursedInferno,
|
||||
BuffID.ShadowFlame, DebuffData.Shadowflame,
|
||||
BuffID.Daybreak, DebuffData.Daybroken,
|
||||
BuffID.Burning, DebuffData.Burning,
|
||||
BuffID.Frostburn, DebuffData.Frostburn,
|
||||
BuffID.Frostburn2, DebuffData.Frostbite,
|
||||
BuffID.Poisoned, DebuffData.Poisoned,
|
||||
BuffID.Venom, DebuffData.AcidVenom,
|
||||
BuffID.Electrified, DebuffData.Electrified,
|
||||
BuffID.Oiled, DebuffData.Oiled,
|
||||
|
||||
BuffID.Tipsy, Alch(1),
|
||||
ModContent.BuffType<BloodyMaryBuff>(), Alch(1),
|
||||
ModContent.BuffType<CaribbeanRumBuff>(), Alch(1),
|
||||
ModContent.BuffType<CinnamonRollBuff>(), Alch(1),
|
||||
ModContent.BuffType<EvergreenGinBuff>(), Alch(1),
|
||||
ModContent.BuffType<FireballBuff>(), Alch(1),
|
||||
ModContent.BuffType<GrapeBeerBuff>(), Alch(1),
|
||||
ModContent.BuffType<ManhattanBuff>(), Alch(1),
|
||||
ModContent.BuffType<MargaritaBuff>(), Alch(1),
|
||||
ModContent.BuffType<MoonshineBuff>(), Alch(1),
|
||||
ModContent.BuffType<MoscowMuleBuff>(), Alch(1),
|
||||
ModContent.BuffType<OldFashionedBuff>(), Alch(1),
|
||||
ModContent.BuffType<PurpleHazeBuff>(), Alch(1),
|
||||
ModContent.BuffType<RedWineBuff>(), Alch(1),
|
||||
ModContent.BuffType<RumBuff>(), Alch(1),
|
||||
ModContent.BuffType<ScrewdriverBuff>(), Alch(1),
|
||||
ModContent.BuffType<StarBeamRyeBuff>(), Alch(1),
|
||||
ModContent.BuffType<TequilaBuff>(), Alch(1),
|
||||
ModContent.BuffType<TequilaSunriseBuff>(), Alch(1),
|
||||
ModContent.BuffType<VodkaBuff>(), Alch(1),
|
||||
ModContent.BuffType<WhiskeyBuff>(), Alch(1),
|
||||
ModContent.BuffType<WhiteWineBuff>(), Alch(1),
|
||||
|
||||
ModContent.BuffType<EverclearBuff>(), Alch(2),
|
||||
ModContent.BuffType<BaconOilBuff>(), Alch(3)
|
||||
);
|
||||
public static int GetBuffIDFromAlcoholType(AlcoholType type)
|
||||
{
|
||||
return type switch
|
||||
{
|
||||
AlcoholType.BaconOil => ModContent.BuffType<BaconOilBuff>(),
|
||||
AlcoholType.BloodyMary => ModContent.BuffType<BloodyMaryBuff>(),
|
||||
AlcoholType.CaribbeanRum => ModContent.BuffType<CaribbeanRumBuff>(),
|
||||
AlcoholType.CinnamonRoll => ModContent.BuffType<CinnamonRollBuff>(),
|
||||
AlcoholType.Everclear => ModContent.BuffType<EverclearBuff>(),
|
||||
AlcoholType.EvergreenGin => ModContent.BuffType<EvergreenGinBuff>(),
|
||||
AlcoholType.Fireball => ModContent.BuffType<FireballBuff>(),
|
||||
AlcoholType.GrapeBeer => ModContent.BuffType<GrapeBeerBuff>(),
|
||||
AlcoholType.Manhattan => ModContent.BuffType<ManhattanBuff>(),
|
||||
AlcoholType.Margarita => ModContent.BuffType<MargaritaBuff>(),
|
||||
AlcoholType.Moonshine => ModContent.BuffType<MoonshineBuff>(),
|
||||
AlcoholType.MoscowMule => ModContent.BuffType<MoscowMuleBuff>(),
|
||||
AlcoholType.OldFashioned => ModContent.BuffType<OldFashionedBuff>(),
|
||||
AlcoholType.PurpleHaze => ModContent.BuffType<PurpleHazeBuff>(),
|
||||
AlcoholType.RedWine => ModContent.BuffType<RedWineBuff>(),
|
||||
AlcoholType.Rum => ModContent.BuffType<RumBuff>(),
|
||||
AlcoholType.Screwdriver => ModContent.BuffType<ScrewdriverBuff>(),
|
||||
AlcoholType.StarBeamRye => ModContent.BuffType<StarBeamRyeBuff>(),
|
||||
AlcoholType.Tequila => ModContent.BuffType<TequilaBuff>(),
|
||||
AlcoholType.TequilaSunrise => ModContent.BuffType<TequilaSunriseBuff>(),
|
||||
AlcoholType.Vodka => ModContent.BuffType<VodkaBuff>(),
|
||||
AlcoholType.Whiskey => ModContent.BuffType<WhiskeyBuff>(),
|
||||
AlcoholType.WhiteWine => ModContent.BuffType<WhiteWineBuff>(),
|
||||
|
||||
// Vanilla treats both Ale and Sake as the "Tipsy" buff
|
||||
AlcoholType.Ale => BuffID.Tipsy,
|
||||
AlcoholType.Sake => BuffID.Tipsy,
|
||||
|
||||
_ => -1
|
||||
};
|
||||
}
|
||||
}
|
||||
public class DebuffData
|
||||
{
|
||||
/// <summary>
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
sampler noiseTexture : register(s1);
|
||||
sampler noiseTexture2 : register(s2);
|
||||
|
||||
float time;
|
||||
float glowPower;
|
||||
float overallColorStrength;
|
||||
float2 noiseScale;
|
||||
float2 edgeFadeoutThreshold;
|
||||
float3 innerColor;
|
||||
float3 outerColor;
|
||||
float3 overallColor;
|
||||
float3 tipColor;
|
||||
matrix uWorldViewProjection;
|
||||
|
||||
struct VertexShaderInput
|
||||
{
|
||||
float4 Position : POSITION0;
|
||||
float4 Color : COLOR0;
|
||||
float3 TextureCoordinates : TEXCOORD0;
|
||||
};
|
||||
|
||||
struct VertexShaderOutput
|
||||
{
|
||||
float4 Position : SV_POSITION;
|
||||
float4 Color : COLOR0;
|
||||
float3 TextureCoordinates : TEXCOORD0;
|
||||
};
|
||||
|
||||
VertexShaderOutput VertexShaderFunction(in VertexShaderInput input)
|
||||
{
|
||||
VertexShaderOutput output = (VertexShaderOutput) 0;
|
||||
float4 pos = mul(input.Position, uWorldViewProjection);
|
||||
output.Position = pos;
|
||||
output.Color = input.Color;
|
||||
output.TextureCoordinates = input.TextureCoordinates;
|
||||
|
||||
return output;
|
||||
}
|
||||
|
||||
float InverseLerp(float from, float to, float x)
|
||||
{
|
||||
return saturate((x - from) / (to - from));
|
||||
}
|
||||
|
||||
float4 PixelShaderFunction(VertexShaderOutput input) : COLOR0
|
||||
{
|
||||
float4 color = input.Color;
|
||||
float2 coords = input.TextureCoordinates;
|
||||
|
||||
// Account for texture distortion artifacts.
|
||||
coords.y = (coords.y - 0.5) / input.TextureCoordinates.z + 0.5;
|
||||
|
||||
// Fade out at the horizontal and vertical ends of the streak.
|
||||
float horizonatalDistanceFromCenter = distance(0.5, coords.y);
|
||||
float opacity = smoothstep(0.5, 0.5 - edgeFadeoutThreshold, horizonatalDistanceFromCenter);
|
||||
|
||||
// Calculate the main nosie color and distortion.
|
||||
float4 noiseDistortion = tex2D(noiseTexture, coords * float2(4, 2) + float2(time * -0.72, time * 0.51));
|
||||
float4 noiseColor = tex2D(noiseTexture, coords * noiseScale + float2(time * -2.42 - noiseDistortion.r * 0.8, time * -1.33 + noiseDistortion.r * 0.8));
|
||||
|
||||
// Calculate how much a pixel should glow from the center outwards.
|
||||
float glow = pow(0.1 / horizonatalDistanceFromCenter, glowPower);
|
||||
|
||||
// Render as white near the tip of the flame jet, then ease into the inner and outer colors of the jet.
|
||||
float3 flameBodyColor = lerp(tipColor, lerp(outerColor, innerColor, opacity), InverseLerp(0, 0.092, coords.x));
|
||||
float3 finalFlameColor = lerp(flameBodyColor, overallColor, overallColorStrength);
|
||||
|
||||
float4 returnColor = (color * float4(finalFlameColor, 1) + noiseColor * glow) * opacity;
|
||||
return returnColor;
|
||||
}
|
||||
|
||||
technique Technique1
|
||||
{
|
||||
pass LaserPass
|
||||
{
|
||||
VertexShader = compile vs_3_0 VertexShaderFunction();
|
||||
PixelShader = compile ps_3_0 PixelShaderFunction();
|
||||
}
|
||||
}
|
||||
@@ -254,6 +254,9 @@ namespace CalamityMod.Effects
|
||||
|
||||
// The distorted circular effect seen emanating from the distortion rift during DoG's fight.
|
||||
internal static Asset<Effect> DoGRiftAuraShader;
|
||||
|
||||
// The shader effect used for Voidragon's Abyssal Fire laser projectile.
|
||||
internal static Asset<Effect> AbyssalFireShader;
|
||||
#endregion
|
||||
|
||||
#region Big E's Shaders
|
||||
@@ -513,6 +516,9 @@ namespace CalamityMod.Effects
|
||||
|
||||
DoGRiftAuraShader = LoadShader("DoGRiftAuraShader");
|
||||
RegisterMiscShader(DoGRiftAuraShader, "DoGRiftAuraPass", "DoGRiftAura");
|
||||
|
||||
AbyssalFireShader = LoadShader("AbyssalFireShader");
|
||||
RegisterMiscShader(AbyssalFireShader, "LaserPass", "AbyssalFire");
|
||||
#endregion
|
||||
|
||||
#region Loading Big E's Shaders
|
||||
|
||||
@@ -186,7 +186,13 @@ namespace CalamityMod.Events
|
||||
|
||||
new Boss(NPCID.QueenBee, permittedNPCs: new int[] { NPCID.Bee, NPCID.BeeSmall, NPCID.LittleHornetHoney, NPCID.HornetHoney, NPCID.BigHornetHoney }),
|
||||
|
||||
new Boss(NPCID.Deerclops),
|
||||
new Boss(NPCID.Deerclops, spawnContext: type =>
|
||||
{
|
||||
Player plr = Main.player[ClosestPlayerToWorldCenter];
|
||||
int deer = NPC.NewNPC(Source, (int)plr.Center.X, (int)(plr.Center.Y - 400f), type, 1);
|
||||
Main.npc[deer].timeLeft *= 20;
|
||||
CalamityUtils.BossAwakenMessage(deer);
|
||||
} ),
|
||||
|
||||
new Boss(NPCID.SkeletronHead, TimeChangeContext.Night, type =>
|
||||
{
|
||||
@@ -700,7 +706,8 @@ namespace CalamityMod.Events
|
||||
// Killing any split Deus head ends the fight instantly. You don't need to kill both.
|
||||
else if (npc.type == ModContent.NPCType<AstrumDeusHead>() && npc.Calamity().newAI[0] != 0f)
|
||||
{
|
||||
BossRushStage++;
|
||||
if (BossRushStage <= Bosses.FindIndex(boss => boss.EntityID == ModContent.NPCType<AstrumDeusHead>()))
|
||||
BossRushStage++;
|
||||
CalamityUtils.KillAllHostileProjectiles();
|
||||
HostileProjectileKillCounter = 3;
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 226 B |
|
After Width: | Height: | Size: 325 B |
|
After Width: | Height: | Size: 228 B |
|
After Width: | Height: | Size: 312 B |
|
After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 315 B |
@@ -850,5 +850,39 @@ namespace CalamityMod.ILEditing
|
||||
});
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Remove Vanilla Whip Tag Crits
|
||||
// Code written by Habble
|
||||
/// <summary>
|
||||
/// IL edits both vanilla whip crit tags' crit bool set calls to ensure they're never assigned a new value
|
||||
/// </summary>
|
||||
/// <param name="context"></param>
|
||||
private static void PreventVanillaWhipTagCrits(ILContext context)
|
||||
{
|
||||
ILCursor cursor = new(context);
|
||||
#region Morning Star
|
||||
// Go to the unique instructions nearest to the Morning Star tag's crit roll and then stand before the crit bool set call
|
||||
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchLdloc(59)) || !cursor.TryGotoNext(MoveType.Before, i => i.MatchStloc(30)))
|
||||
{
|
||||
LogFailure("Removing vanilla whip tag crits", "Could not locate the crit bool set call under Morning Star tag");
|
||||
return;
|
||||
}
|
||||
// Put the previous value of the crit bool on the stack to then return that instead of the supplied value by "consuming" them as parameters, so as to not overwrite it
|
||||
// This is more ideal than modifying label conditions because it is likelier for the latter to change over time
|
||||
cursor.Emit(OpCodes.Ldloc, 30);
|
||||
cursor.EmitDelegate((int input, bool originalValue) => originalValue.ToInt());
|
||||
#endregion Morning Star
|
||||
#region Kaleidoscope
|
||||
// Similar deal for Kaleidoscope as well
|
||||
if (!cursor.TryGotoNext(MoveType.After, i => i.MatchStloc(30)) || !cursor.TryGotoNext(MoveType.Before, i => i.MatchStloc(30)))
|
||||
{
|
||||
LogFailure("Removing vanilla whip tag crits", "Could not locate the crit bool set call under Kaleidoscope tag");
|
||||
return;
|
||||
}
|
||||
cursor.Emit(OpCodes.Ldloc, 30);
|
||||
cursor.EmitDelegate((int input, bool originalValue) => originalValue.ToInt());
|
||||
#endregion Kaleidoscope
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -104,6 +104,7 @@ namespace CalamityMod.ILEditing
|
||||
// Damage and health balance
|
||||
On_Main.DamageVar_float_int_float += AdjustDamageVariance;
|
||||
IL_NPC.ScaleStats_ApplyExpertTweaks += RemoveExpertHardmodeScaling;
|
||||
IL_Projectile.Damage += PreventVanillaWhipTagCrits;
|
||||
IL_Projectile.Damage += VanillaBossResistChanges;
|
||||
IL_Projectile.AI_026 += PygmyAggroOnClosestPointInHitbox;
|
||||
IL_Projectile.AI_099_2 += LimitTerrarianProjectiles;
|
||||
|
||||
@@ -151,7 +151,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<MysteriousCircuitry>(15).
|
||||
AddIngredient<DubiousPlating>(15).
|
||||
AddIngredient(ItemID.LunarBar, 10).
|
||||
AddIngredient<GalacticaSingularity>(4).
|
||||
AddIngredient(ItemID.FragmentVortex, 5).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
|
||||
public static int soulDamage => 15;
|
||||
public static int soulDamage => 20;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 28;
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override bool CanEquipAccessory(Player player, int slot, bool modded)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.brimElemental || modPlayer.sandElemental || modPlayer.rareSandElemental || modPlayer.cloudElemental || modPlayer.waterElemental)
|
||||
if (modPlayer.brimElemental || modPlayer.sandElemental || modPlayer.oasisElemental || modPlayer.cloudElemental || modPlayer.waterElemental)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -177,7 +177,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<ElementalinaBottle>().
|
||||
AddIngredient<RareElementalinaBottle>().
|
||||
AddIngredient<OasisElementalinaBottle>().
|
||||
AddIngredient<PearlofEnthrallment>().
|
||||
AddIngredient<EyeoftheStorm>().
|
||||
AddIngredient<RoseStone>().
|
||||
|
||||
@@ -56,7 +56,8 @@ namespace CalamityMod.Items.Accessories
|
||||
CreateRecipe().
|
||||
AddIngredient<FeatherCrown>().
|
||||
AddIngredient(ItemID.LunarBar, 5).
|
||||
AddIngredient<GalacticaSingularity>(5).
|
||||
AddIngredient(ItemID.FragmentNebula, 5).
|
||||
AddIngredient<CoreofCalamity>(2).
|
||||
AddTile(TileID.LunarCraftingStation).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
@@ -39,6 +40,7 @@ namespace CalamityMod.Items.Accessories
|
||||
AddIngredient<RogueEmblem>().
|
||||
AddIngredient<VampiricTalisman>().
|
||||
AddIngredient<ElectriciansGlove>().
|
||||
AddIngredient(ItemID.LunarBar, 8).
|
||||
AddIngredient<AscendantSpiritEssence>(4).
|
||||
AddTile<CosmicAnvil>().
|
||||
Register();
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.Buffs.Summon;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
@@ -8,8 +9,8 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
[LegacyName("WifeinaBottlewithBoobs")] // Yes, that was the actual name.
|
||||
public class RareElementalinaBottle : ModItem, ILocalizedModType
|
||||
[LegacyName("WifeinaBottlewithBoobs", "RareElementalinaBottle")] // Yes, that was the actual name.
|
||||
public class OasisElementalinaBottle : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
|
||||
@@ -38,12 +39,12 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.rareSandElemental = true;
|
||||
modPlayer.oasisElemental = true;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (player.FindBuffIndex(ModContent.BuffType<RareSandElemental>()) == -1)
|
||||
if (player.FindBuffIndex(ModContent.BuffType<OasisElementalBuff>()) == -1)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<RareSandElemental>(), 3600, true);
|
||||
player.AddBuff(ModContent.BuffType<OasisElementalBuff>(), 3600, true);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SandElementalHealer>()] < 1)
|
||||
{
|
||||
@@ -59,12 +60,12 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateVanity(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.rareSandElementalVanity = true;
|
||||
modPlayer.oasisElementalVanity = true;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (player.FindBuffIndex(ModContent.BuffType<RareSandElemental>()) == -1)
|
||||
if (player.FindBuffIndex(ModContent.BuffType<OasisElementalBuff>()) == -1)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<RareSandElemental>(), 3600, true);
|
||||
player.AddBuff(ModContent.BuffType<OasisElementalBuff>(), 3600, true);
|
||||
}
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<SandElementalHealer>()] < 1)
|
||||
{
|
||||
|
Before Width: | Height: | Size: 472 B After Width: | Height: | Size: 472 B |
@@ -36,7 +36,11 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public const int maxMinionRequirement = 10;
|
||||
public const int maxPscAnimTime = 120;
|
||||
public static SummonTag SummonTag = new() { MultiplicativeTagDamage = 0.2f, TagModifyHitEffects = ApplyTagModifyHit, AutoDrawTooltip = false };
|
||||
public static SummonTag SummonTag = new() {
|
||||
MultiplicativeTagDamage = 0.2f,
|
||||
TagModifyHitEffects = ApplyTagModifyHit,
|
||||
AutoDrawTooltip = false
|
||||
};
|
||||
|
||||
public static void ApplyTagModifyHit(Projectile proj, NPC npc, ref NPC.HitModifiers modifiers, ref float tagDamageMult, ref float critChance)
|
||||
{
|
||||
@@ -221,7 +225,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
SummonTag.TagItem = Item.type;
|
||||
SummonTag.TagItem = Type;
|
||||
SummonTag.TagTexture = TextureAssets.Item[Type];
|
||||
Item.width = 50;
|
||||
Item.height = 50;
|
||||
|
||||
@@ -9,7 +9,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public static int cooldown = 420;
|
||||
public static int damage = 60;
|
||||
public static int damage = 30;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 34;
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CreateRecipe().
|
||||
AddRecipeGroup("AnyQuiver").
|
||||
AddIngredient<GalacticaSingularity>(5).
|
||||
AddIngredient(ItemID.FragmentVortex, 5).
|
||||
AddIngredient<DarkPlasma>(3).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
|
||||
@@ -39,11 +39,11 @@ namespace CalamityMod.Items.Accessories
|
||||
modPlayer.rBrain = true; // Handles shaderain cloud spawning on hit
|
||||
modPlayer.amalgam = true;
|
||||
player.brainOfConfusionItem = Item;
|
||||
modPlayer.HeatDebuffMultiplier += 3f;
|
||||
modPlayer.ColdDebuffMultiplier += 3f;
|
||||
modPlayer.SicknessDebuffMultiplier += 3f;
|
||||
modPlayer.WaterDebuffMultiplier += 3f;
|
||||
modPlayer.ElectricDebuffMultiplier += 3f;
|
||||
modPlayer.HeatDebuffMultiplier += 2f;
|
||||
modPlayer.ColdDebuffMultiplier += 2f;
|
||||
modPlayer.SicknessDebuffMultiplier += 2f;
|
||||
modPlayer.WaterDebuffMultiplier += 2f;
|
||||
modPlayer.ElectricDebuffMultiplier += 2f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -37,7 +37,6 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CryonicBar>(15).
|
||||
AddIngredient<EssenceofEleum>(3).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -58,7 +58,6 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CryonicBar>(7).
|
||||
AddIngredient<EssenceofEleum>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<DaedalusBreastplate>()).
|
||||
Register();
|
||||
|
||||
@@ -58,7 +58,6 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CryonicBar>(7).
|
||||
AddIngredient<EssenceofEleum>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<DaedalusHeadMagic>()).
|
||||
Register();
|
||||
|
||||
@@ -56,7 +56,6 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CryonicBar>(7).
|
||||
AddIngredient<EssenceofEleum>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<DaedalusHeadMagic>()).
|
||||
Register();
|
||||
|
||||
@@ -62,7 +62,6 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CryonicBar>(7).
|
||||
AddIngredient<EssenceofEleum>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<DaedalusBreastplate>()).
|
||||
Register();
|
||||
|
||||
@@ -75,7 +75,6 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CryonicBar>(7).
|
||||
AddIngredient<EssenceofEleum>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<DaedalusHeadRogue>()).
|
||||
Register();
|
||||
|
||||
@@ -34,7 +34,6 @@ namespace CalamityMod.Items.Armor.Daedalus
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<CryonicBar>(10).
|
||||
AddIngredient<EssenceofEleum>(2).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override LocalizedText Tooltip => base.Tooltip.WithFormatArgs(SummonDamageBoost.ToPercent(), RogueVelocityBoost.ToPercent());
|
||||
|
||||
// Set Bonus
|
||||
public static float SetBonusRogueStealth = 0.4f;
|
||||
public static float SetBonusRogueStealth = 1.05f;
|
||||
public static int TagDuration = CalamityUtils.SecondsToFrames(10);
|
||||
public static int StormManaCost = 60;
|
||||
public static int StormCooldown = 45;
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
//These tag damage fields determine the damage of the spawned eater. The resulting number from each is added together
|
||||
//So, 0.5 multiplicative and 10 flat would make the damage be 50% of the spawning hit's damage, plus 10 more.
|
||||
//If you want entirely flt, set multiplicative to 0. If you want entirely multiplicative, set flat to 0.
|
||||
//If you want entirely flat, set multiplicative to 0. If you want entirely multiplicative, set flat to 0.
|
||||
MultiplicativeTagDamage = 0.25f,
|
||||
FlatTagDamage = 5,
|
||||
AllowsWhipStacking = true,
|
||||
@@ -57,7 +57,6 @@ namespace CalamityMod.Items.Armor
|
||||
if (!Main.dedServ)
|
||||
ArmorIDs.Head.Sets.DrawFullHair[Item.headSlot] = true;
|
||||
summonTag.TagItem = Type;
|
||||
CalamityBuffSets.SummonTagDebuff.Add(ModContent.BuffType<ForbiddenStealthSummonTagBuff>(),summonTag);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.GemTech
|
||||
@@ -25,7 +26,11 @@ namespace CalamityMod.Items.Armor.GemTech
|
||||
{
|
||||
CreateRecipe()
|
||||
.AddIngredient<ExoPrism>(16)
|
||||
.AddIngredient<GalacticaSingularity>(5)
|
||||
.AddIngredient(ItemID.FragmentSolar, 5)
|
||||
.AddIngredient(ItemID.FragmentVortex, 5)
|
||||
.AddIngredient(ItemID.FragmentNebula, 5)
|
||||
.AddIngredient(ItemID.FragmentStardust, 5)
|
||||
.AddIngredient<MeldBlob>(5)
|
||||
.AddIngredient<CoreofCalamity>(2)
|
||||
.AddTile<DraedonsForge>()
|
||||
.Register();
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
@@ -150,7 +151,11 @@ namespace CalamityMod.Items.Armor.GemTech
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<ExoPrism>(10).
|
||||
AddIngredient<GalacticaSingularity>(3).
|
||||
AddIngredient(ItemID.FragmentSolar, 5).
|
||||
AddIngredient(ItemID.FragmentVortex, 5).
|
||||
AddIngredient(ItemID.FragmentNebula, 5).
|
||||
AddIngredient(ItemID.FragmentStardust, 5).
|
||||
AddIngredient<MeldBlob>(5).
|
||||
AddIngredient<CoreofCalamity>(2).
|
||||
AddTile<DraedonsForge>().
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<GemTechBodyArmor>()).
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Rarities;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor.GemTech
|
||||
@@ -26,7 +27,11 @@ namespace CalamityMod.Items.Armor.GemTech
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<ExoPrism>(12).
|
||||
AddIngredient<GalacticaSingularity>(4).
|
||||
AddIngredient(ItemID.FragmentSolar, 4).
|
||||
AddIngredient(ItemID.FragmentVortex, 4).
|
||||
AddIngredient(ItemID.FragmentNebula, 4).
|
||||
AddIngredient(ItemID.FragmentStardust, 4).
|
||||
AddIngredient<MeldBlob>(4).
|
||||
AddIngredient<CoreofCalamity>(2).
|
||||
AddTile<DraedonsForge>().
|
||||
Register();
|
||||
|
||||
@@ -44,7 +44,6 @@ namespace CalamityMod.Items.Armor.Hydrothermic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<ScoriaBar>(15).
|
||||
AddIngredient<EssenceofHavoc>(3).
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
|
||||
@@ -62,7 +62,6 @@ namespace CalamityMod.Items.Armor.Hydrothermic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<ScoriaBar>(7).
|
||||
AddIngredient<EssenceofHavoc>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<HydrothermicArmor>()).
|
||||
Register();
|
||||
|
||||
@@ -60,7 +60,6 @@ namespace CalamityMod.Items.Armor.Hydrothermic
|
||||
{
|
||||
CreateRecipe().
|
||||
AddIngredient<ScoriaBar>(7).
|
||||
AddIngredient<EssenceofHavoc>().
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
SortBeforeFirstRecipesOf(ModContent.ItemType<HydrothermicHeadMagic>()).
|
||||
Register();
|
||||
|
||||