fixed conflicts
No files matched your search
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 515 B |
@@ -0,0 +1,25 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class KamiBuff : ModBuff
|
||||
{
|
||||
public const float RunSpeedBoost = 0.2f;
|
||||
public const float RunAccelerationBoost = 0.4f;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Kami Injection");
|
||||
Description.SetDefault("Increased defense, movement speed, and damage");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().kamiBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 423 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 714 B |
|
Before Width: | Height: | Size: 3.9 KiB After Width: | Height: | Size: 663 B |
@@ -0,0 +1,33 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatDebuffs
|
||||
{
|
||||
public class KamiDebuff : ModBuff
|
||||
{
|
||||
public const float MultiplicativeDamageReduction = 0.8f;
|
||||
public const float MaxNPCSpeed = 16f; // Hard-cap for npc speed when afflicted with this debuff. Does not affect certain NPCs and does not affect any bosses (Basically only works on boss minions).
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Kami Flu");
|
||||
Description.SetDefault("Defenseless and dying");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(NPC npc, ref int buffIndex)
|
||||
{
|
||||
if (npc.Calamity().kamiFlu < npc.buffTime[buffIndex])
|
||||
npc.Calamity().kamiFlu = npc.buffTime[buffIndex];
|
||||
npc.DelBuff(buffIndex);
|
||||
buffIndex--;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().teslaFreeze = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 514 B |
|
Before Width: | Height: | Size: 631 B After Width: | Height: | Size: 546 B |
|
Before Width: | Height: | Size: 477 B After Width: | Height: | Size: 685 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 636 B |
|
Before Width: | Height: | Size: 715 B After Width: | Height: | Size: 750 B |
@@ -111,6 +111,13 @@ namespace CalamityMod.CalPlayer
|
||||
public Projectile lastProjectileHit;
|
||||
public double acidRoundMultiplier = 1D;
|
||||
public int waterLeechTarget = -1;
|
||||
public float KameiTrailXScale = 0.1f;
|
||||
public int KameiBladeUseDelay = 0;
|
||||
public Vector2[] KameiOldPositions = new Vector2[4];
|
||||
public double trueMeleeDamage = 0D;
|
||||
public double contactDamageReduction = 0D;
|
||||
public double projectileDamageReduction = 0D;
|
||||
#endregion
|
||||
|
||||
public double trueMeleeDamage = 0D;
|
||||
public double contactDamageReduction = 0D;
|
||||
@@ -268,6 +275,7 @@ namespace CalamityMod.CalPlayer
|
||||
public int throwingCrit = 0;
|
||||
public bool throwingAmmoCost75 = false;
|
||||
public bool throwingAmmoCost66 = false;
|
||||
public bool throwingAmmoCost55 = false;
|
||||
public bool throwingAmmoCost50 = false;
|
||||
#endregion
|
||||
|
||||
@@ -492,6 +500,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool depthCharm = false;
|
||||
public bool anechoicPlating = false;
|
||||
public bool jellyfishNecklace = false;
|
||||
public bool abyssDivingGear = false;
|
||||
public bool abyssalAmulet = false;
|
||||
public bool lumenousAmulet = false;
|
||||
public bool reaperToothNecklace = false;
|
||||
@@ -641,6 +650,11 @@ namespace CalamityMod.CalPlayer
|
||||
public bool auricBoost = false;
|
||||
public bool daedalusReflect = false;
|
||||
public bool daedalusSplit = false;
|
||||
public bool titanHeartSet = false;
|
||||
public bool titanHeartMask = false;
|
||||
public bool titanHeartMantle = false;
|
||||
public bool titanHeartBoots = false;
|
||||
public int titanCooldown = 0;
|
||||
public bool umbraphileSet = false;
|
||||
public bool reaverBlast = false;
|
||||
public bool reaverBurst = false;
|
||||
@@ -826,6 +840,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool hallowedDefense = false;
|
||||
public bool hallowedPower = false;
|
||||
public bool hallowedRegen = false;
|
||||
public bool kamiBoost = false;
|
||||
#endregion
|
||||
|
||||
#region Minion
|
||||
@@ -961,6 +976,10 @@ namespace CalamityMod.CalPlayer
|
||||
public bool snowmanForce;
|
||||
public bool snowmanNoseless;
|
||||
public bool snowmanPower;
|
||||
public bool meldTransformationPrevious;
|
||||
public bool meldTransformation;
|
||||
public bool meldTransformationForce;
|
||||
public bool meldTransformationPower;
|
||||
#endregion
|
||||
|
||||
#endregion
|
||||
@@ -1325,6 +1344,7 @@ namespace CalamityMod.CalPlayer
|
||||
throwingCrit = 0;
|
||||
throwingAmmoCost75 = false;
|
||||
throwingAmmoCost66 = false;
|
||||
throwingAmmoCost55 = false;
|
||||
throwingAmmoCost50 = false;
|
||||
accStealthGenBoost = 0f;
|
||||
|
||||
@@ -1559,6 +1579,7 @@ namespace CalamityMod.CalPlayer
|
||||
hallowedDefense = false;
|
||||
hallowedRegen = false;
|
||||
hallowedPower = false;
|
||||
kamiBoost = false;
|
||||
IBoots = false;
|
||||
elysianFire = false;
|
||||
sTracers = false;
|
||||
@@ -1601,6 +1622,7 @@ namespace CalamityMod.CalPlayer
|
||||
depthCharm = false;
|
||||
anechoicPlating = false;
|
||||
jellyfishNecklace = false;
|
||||
abyssDivingGear = false;
|
||||
abyssalAmulet = false;
|
||||
lumenousAmulet = false;
|
||||
reaperToothNecklace = false;
|
||||
@@ -1625,6 +1647,10 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
statigelSet = false;
|
||||
|
||||
titanHeartSet = false;
|
||||
titanHeartMask = false;
|
||||
titanHeartMantle = false;
|
||||
titanHeartBoots = false;
|
||||
umbraphileSet = false;
|
||||
plagueReaper = false;
|
||||
plaguebringerPatronSet = false;
|
||||
@@ -1929,6 +1955,9 @@ namespace CalamityMod.CalPlayer
|
||||
snowmanPrevious = snowman;
|
||||
snowman = snowmanHide = snowmanForce = snowmanPower = false;
|
||||
|
||||
meldTransformationPrevious = meldTransformation;
|
||||
meldTransformation = meldTransformationForce = meldTransformationPower = false;
|
||||
|
||||
rageModeActive = false;
|
||||
adrenalineModeActive = false;
|
||||
|
||||
@@ -1985,8 +2014,6 @@ namespace CalamityMod.CalPlayer
|
||||
hallowedRuneCooldown = 0;
|
||||
doubledHorror = false;
|
||||
sulphurBubbleCooldown = 0;
|
||||
forbiddenCooldown = 0;
|
||||
tornadoCooldown = 0;
|
||||
ladHearts = 0;
|
||||
prismaticLasers = 0;
|
||||
|
||||
@@ -2050,6 +2077,7 @@ namespace CalamityMod.CalPlayer
|
||||
throwingCrit = 0;
|
||||
throwingAmmoCost75 = false;
|
||||
throwingAmmoCost66 = false;
|
||||
throwingAmmoCost55 = false;
|
||||
throwingAmmoCost50 = false;
|
||||
#endregion
|
||||
|
||||
@@ -2082,6 +2110,7 @@ namespace CalamityMod.CalPlayer
|
||||
rRage = false;
|
||||
xRage = false;
|
||||
xWrath = false;
|
||||
kamiBoost = false;
|
||||
graxDefense = false;
|
||||
encased = false;
|
||||
sMeleeBoost = false;
|
||||
@@ -2205,6 +2234,11 @@ namespace CalamityMod.CalPlayer
|
||||
reaverDoubleTap = false;
|
||||
shadeRegen = false;
|
||||
dsSetBonus = false;
|
||||
titanHeartSet = false;
|
||||
titanHeartMask = false;
|
||||
titanHeartMantle = false;
|
||||
titanHeartBoots = false;
|
||||
titanCooldown = 0;
|
||||
umbraphileSet = false;
|
||||
reaverBlast = false;
|
||||
reaverBurst = false;
|
||||
@@ -2233,6 +2267,8 @@ namespace CalamityMod.CalPlayer
|
||||
desertProwler = false;
|
||||
snowRuffianSet = false;
|
||||
forbiddenCirclet = false;
|
||||
forbiddenCooldown = 0;
|
||||
tornadoCooldown = 0;
|
||||
eskimoSet = false; //vanilla armor
|
||||
meteorSet = false; //vanilla armor, for Space Gun nerf
|
||||
victideSet = false;
|
||||
@@ -2279,6 +2315,7 @@ namespace CalamityMod.CalPlayer
|
||||
CurrentlyViewedHologramX = CurrentlyViewedHologramY = -1;
|
||||
CurrentlyViewedHologramText = string.Empty;
|
||||
|
||||
KameiBladeUseDelay = 0;
|
||||
lastProjectileHit = null;
|
||||
|
||||
if (CalamityWorld.bossRushActive)
|
||||
@@ -3306,6 +3343,10 @@ namespace CalamityMod.CalPlayer
|
||||
profanedCrystalHide = false;
|
||||
profanedCrystalForce = true;
|
||||
}
|
||||
else if (item.type == ModContent.ItemType<AbyssalDivingGear>())
|
||||
{
|
||||
abyssDivingGear = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3652,6 +3693,7 @@ namespace CalamityMod.CalPlayer
|
||||
((frostFlare && player.statLife < (int)(player.statLifeMax2 * 0.25)) ? 0.15f : 0f) +
|
||||
(auricSet ? 0.1f : 0f) +
|
||||
(dragonScales ? 0.1f : 0f) +
|
||||
(kamiBoost ? KamiBuff.RunAccelerationBoost : 0f) +
|
||||
(cTracers ? 0.1f : 0f) +
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(eTracers ? 0.05f : 0f) +
|
||||
@@ -3671,6 +3713,7 @@ namespace CalamityMod.CalPlayer
|
||||
(cTracers ? 0.1f : 0f) +
|
||||
(silvaSet ? 0.05f : 0f) +
|
||||
(eTracers ? 0.05f : 0f) +
|
||||
(kamiBoost ? KamiBuff.RunSpeedBoost : 0f) +
|
||||
(etherealExtorter && player.ZoneBeach ? 0.05f : 0f) +
|
||||
(stressPills ? 0.05f : 0f) +
|
||||
(laudanum && horror ? 0.1f : 0f) +
|
||||
@@ -3752,7 +3795,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Rogue Mirrors
|
||||
@@ -3779,6 +3821,11 @@ namespace CalamityMod.CalPlayer
|
||||
Main.projectile[lumenyl].rotation = Main.rand.NextFloat(0, 360);
|
||||
Main.projectile[lumenyl].frame = Main.rand.Next(0, 4);
|
||||
}
|
||||
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
NetMessage.SendData(MessageID.Dodge, -1, -1, null, player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -3799,6 +3846,11 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
Main.PlaySound(SoundID.Item68, Main.player[Main.myPlayer].position);
|
||||
int eclipseBurst = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, ModContent.ProjectileType<EclipseMirrorBurst>(), (int)(7000 * player.RogueDamage()), 0, player.whoAmI);
|
||||
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
NetMessage.SendData(MessageID.Dodge, -1, -1, null, player.whoAmI, 1f, 0f, 0f, 0, 0, 0);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -4077,16 +4129,19 @@ namespace CalamityMod.CalPlayer
|
||||
sCalDeathCount++;
|
||||
}
|
||||
}
|
||||
deathCount++;
|
||||
|
||||
if (CalamityWorld.ironHeart)
|
||||
{
|
||||
KillPlayer();
|
||||
return false;
|
||||
}
|
||||
|
||||
deathCount++;
|
||||
if (player.whoAmI == Main.myPlayer && Main.netMode == NetmodeID.MultiplayerClient)
|
||||
{
|
||||
DeathPacket(false);
|
||||
}
|
||||
if (CalamityWorld.ironHeart && areThereAnyDamnBosses)
|
||||
{
|
||||
KillPlayer();
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
#endregion
|
||||
@@ -4121,6 +4176,14 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Get Heal Life
|
||||
public override void GetHealLife(Item item, bool quickHeal, ref int healValue)
|
||||
{
|
||||
if (CalamityWorld.ironHeart)
|
||||
healValue = 0;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Get Weapon Damage And KB
|
||||
public override void ModifyWeaponDamage(Item item, ref float add, ref float mult, ref float flat)
|
||||
{
|
||||
@@ -4190,6 +4253,26 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
knockback *= 1.09f;
|
||||
}
|
||||
if (titanHeartMask && item.Calamity().rogue)
|
||||
{
|
||||
knockback *= 1.05f;
|
||||
}
|
||||
if (titanHeartMantle && item.Calamity().rogue)
|
||||
{
|
||||
knockback *= 1.05f;
|
||||
}
|
||||
if (titanHeartBoots && item.Calamity().rogue)
|
||||
{
|
||||
knockback *= 1.05f;
|
||||
}
|
||||
if (titanHeartSet && item.Calamity().rogue)
|
||||
{
|
||||
knockback *= 1.2f;
|
||||
}
|
||||
if (titanHeartSet && StealthStrikeAvailable() && item.Calamity().rogue)
|
||||
{
|
||||
knockback *= 2f;
|
||||
}
|
||||
bool ZoneForest = !ZoneAbyss && !ZoneSulphur && !ZoneAstral && !ZoneCalamity && !ZoneSunkenSea && !player.ZoneSnow && !player.ZoneCorrupt && !player.ZoneCrimson && !player.ZoneHoly && !player.ZoneDesert && !player.ZoneUndergroundDesert && !player.ZoneGlowshroom && !player.ZoneDungeon && !player.ZoneBeach && !player.ZoneMeteor;
|
||||
if (etherealExtorter)
|
||||
{
|
||||
@@ -5878,7 +5961,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
else
|
||||
{
|
||||
float amount = npc.velocity.Length() / npc.Calamity().maxVelocity;
|
||||
float amount = npc.velocity.Length() / (npc.Calamity().maxVelocity * 0.5f);
|
||||
if (amount > 1f)
|
||||
amount = 1f;
|
||||
|
||||
@@ -5971,7 +6054,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (DRStat > 0)
|
||||
contactDamageReduction *= 1f - (DRStat * 0.01f);
|
||||
|
||||
contactDamageReduction = 1D - (1D / (1D + contactDamageReduction));
|
||||
contactDamageReduction = 1D / (1D + contactDamageReduction);
|
||||
damage = (int)(damage * contactDamageReduction);
|
||||
}
|
||||
|
||||
@@ -6200,7 +6283,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (DRStat > 0)
|
||||
projectileDamageReduction *= 1f - (DRStat * 0.01f);
|
||||
|
||||
projectileDamageReduction = 1D - (1D / (1D + projectileDamageReduction));
|
||||
projectileDamageReduction = 1D / (1D + projectileDamageReduction);
|
||||
damage = (int)(damage * projectileDamageReduction);
|
||||
}
|
||||
|
||||
@@ -7013,93 +7096,108 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Frame Effects
|
||||
#region Frame Effects
|
||||
public override void FrameEffects()
|
||||
{
|
||||
if (player.Calamity().andromedaState == AndromedaPlayerState.LargeRobot ||
|
||||
player.Calamity().andromedaState == AndromedaPlayerState.SpecialAttack)
|
||||
{
|
||||
player.head = mod.GetEquipSlot("NoHead", EquipType.Head); // To make the head invisible on the map. The map was having a hissy fit because of hitbox changes.
|
||||
}
|
||||
else if ((profanedCrystal || profanedCrystalForce) && !profanedCrystalHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("ProviLegs", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("ProviBody", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("ProviHead", EquipType.Head);
|
||||
player.wings = mod.GetEquipSlot("ProviWings", EquipType.Wings);
|
||||
player.face = -1;
|
||||
|
||||
public override void FrameEffects()
|
||||
{
|
||||
if (player.Calamity().andromedaState == AndromedaPlayerState.LargeRobot ||
|
||||
player.Calamity().andromedaState == AndromedaPlayerState.SpecialAttack)
|
||||
bool enrage = !profanedCrystalForce && profanedCrystalBuffs && player.statLife <= (int)(player.statLifeMax2 * 0.5);
|
||||
|
||||
if (profanedCrystalWingCounter.Value == 0)
|
||||
{
|
||||
int key = profanedCrystalWingCounter.Key;
|
||||
profanedCrystalWingCounter = new KeyValuePair<int, int>(key == 3 ? 0 : key + 1, enrage ? 5 : 7);
|
||||
}
|
||||
|
||||
player.wingFrame = profanedCrystalWingCounter.Key;
|
||||
profanedCrystalWingCounter = new KeyValuePair<int, int>(profanedCrystalWingCounter.Key, profanedCrystalWingCounter.Value - 1);
|
||||
player.armorEffectDrawOutlines = true;
|
||||
if (profanedCrystalBuffs)
|
||||
{
|
||||
player.armorEffectDrawShadow = true;
|
||||
if (enrage)
|
||||
{
|
||||
player.armorEffectDrawOutlinesForbidden = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ((snowmanPower || snowmanForce) && !snowmanHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("PopoLeg", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("PopoBody", EquipType.Body);
|
||||
player.head = snowmanNoseless ? mod.GetEquipSlot("PopoNoselessHead", EquipType.Head) : mod.GetEquipSlot("PopoHead", EquipType.Head);
|
||||
player.face = -1;
|
||||
}
|
||||
else if ((abyssalDivingSuitPower || abyssalDivingSuitForce) && !abyssalDivingSuitHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("AbyssalDivingSuitLeg", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("AbyssalDivingSuitBody", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("AbyssalDivingSuitHead", EquipType.Head);
|
||||
player.face = -1;
|
||||
}
|
||||
else if ((sirenBoobsPower || sirenBoobsForce) && !sirenBoobsHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("SirenLeg", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("SirenBody", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("SirenHead", EquipType.Head);
|
||||
player.face = -1;
|
||||
}
|
||||
else if ((sirenBoobsAltPower || sirenBoobsAltForce) && !sirenBoobsAltHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("SirenLegAlt", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("SirenBodyAlt", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("SirenHeadAlt", EquipType.Head);
|
||||
player.face = -1;
|
||||
}
|
||||
else if (meldTransformationPower || meldTransformationForce)
|
||||
{
|
||||
player.head = mod.GetEquipSlot("NoHead", EquipType.Head); // To make the head invisible on the map. The map was having a hissy fit because of hitbox changes.
|
||||
player.legs = mod.GetEquipSlot("MeldTransformationLegs", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("MeldTransformationBody", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("MeldTransformationHead", EquipType.Head);
|
||||
}
|
||||
else if (snowRuffianSet)
|
||||
{
|
||||
player.wings = mod.GetEquipSlot("SnowRuffWings", EquipType.Wings);
|
||||
bool falling = player.gravDir == -1 ? player.velocity.Y < 0.05f : player.velocity.Y > 0.05f;
|
||||
if (player.controlJump && falling)
|
||||
{
|
||||
player.velocity.Y *= 0.9f;
|
||||
player.wingFrame = 3;
|
||||
else
|
||||
{
|
||||
if (profanedCrystalWingCounter.Key != 1)
|
||||
profanedCrystalWingCounter = new KeyValuePair<int, int>(1, 7);
|
||||
if (profanedCrystalAnimCounter.Key != 0)
|
||||
profanedCrystalAnimCounter = new KeyValuePair<int, int>(0, 10);
|
||||
}
|
||||
if (snowRuffianSet)
|
||||
{
|
||||
player.wings = mod.GetEquipSlot("SnowRuffWings", EquipType.Wings);
|
||||
bool falling = player.gravDir == -1 ? player.velocity.Y < 0.05f : player.velocity.Y > 0.05f;
|
||||
if (player.controlJump && falling)
|
||||
{
|
||||
player.velocity.Y *= 0.9f;
|
||||
player.wingFrame = 3;
|
||||
player.noFallDmg = true;
|
||||
player.fallStart = (int)(player.position.Y / 16f);
|
||||
}
|
||||
}
|
||||
else if ((profanedCrystal || profanedCrystalForce) && !profanedCrystalHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("ProviLegs", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("ProviBody", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("ProviHead", EquipType.Head);
|
||||
player.wings = mod.GetEquipSlot("ProviWings", EquipType.Wings);
|
||||
}
|
||||
}
|
||||
if (abyssDivingGear && (player.head == -1 || player.head == ArmorIDs.Head.FamiliarWig))
|
||||
{
|
||||
player.head = mod.GetEquipSlot("AbyssDivingGearHead", EquipType.Head);
|
||||
player.face = -1;
|
||||
}
|
||||
|
||||
bool enrage = !profanedCrystalForce && profanedCrystalBuffs && player.statLife <= (int)(player.statLifeMax2 * 0.5);
|
||||
if (CalamityWorld.defiled)
|
||||
Defiled();
|
||||
|
||||
if (profanedCrystalWingCounter.Value == 0)
|
||||
{
|
||||
int key = profanedCrystalWingCounter.Key;
|
||||
profanedCrystalWingCounter = new KeyValuePair<int, int>(key == 3 ? 0 : key + 1, enrage ? 5 : 7);
|
||||
}
|
||||
|
||||
player.wingFrame = profanedCrystalWingCounter.Key;
|
||||
profanedCrystalWingCounter = new KeyValuePair<int, int>(profanedCrystalWingCounter.Key, profanedCrystalWingCounter.Value - 1);
|
||||
player.armorEffectDrawOutlines = true;
|
||||
if (profanedCrystalBuffs)
|
||||
{
|
||||
player.armorEffectDrawShadow = true;
|
||||
if (enrage)
|
||||
{
|
||||
player.armorEffectDrawOutlinesForbidden = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
else if ((snowmanPower || snowmanForce) && !snowmanHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("PopoLeg", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("PopoBody", EquipType.Body);
|
||||
player.head = snowmanNoseless ? mod.GetEquipSlot("PopoNoselessHead", EquipType.Head) : mod.GetEquipSlot("PopoHead", EquipType.Head);
|
||||
}
|
||||
else if ((abyssalDivingSuitPower || abyssalDivingSuitForce) && !abyssalDivingSuitHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("AbyssalDivingSuitLeg", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("AbyssalDivingSuitBody", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("AbyssalDivingSuitHead", EquipType.Head);
|
||||
}
|
||||
else if ((sirenBoobsPower || sirenBoobsForce) && !sirenBoobsHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("SirenLeg", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("SirenBody", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("SirenHead", EquipType.Head);
|
||||
}
|
||||
else if ((sirenBoobsAltPower || sirenBoobsAltForce) && !sirenBoobsAltHide)
|
||||
{
|
||||
player.legs = mod.GetEquipSlot("SirenLegAlt", EquipType.Legs);
|
||||
player.body = mod.GetEquipSlot("SirenBodyAlt", EquipType.Body);
|
||||
player.head = mod.GetEquipSlot("SirenHeadAlt", EquipType.Head);
|
||||
}
|
||||
else
|
||||
{
|
||||
if (profanedCrystalWingCounter.Key != 1)
|
||||
profanedCrystalWingCounter = new KeyValuePair<int, int>(1, 7);
|
||||
if (profanedCrystalAnimCounter.Key != 0)
|
||||
profanedCrystalAnimCounter = new KeyValuePair<int, int>(0, 10);
|
||||
}
|
||||
|
||||
if (CalamityWorld.defiled)
|
||||
Defiled();
|
||||
|
||||
if (weakPetrification)
|
||||
WeakPetrification();
|
||||
}
|
||||
#endregion
|
||||
if (weakPetrification)
|
||||
WeakPetrification();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Limitations
|
||||
private void WeakPetrification()
|
||||
@@ -7187,6 +7285,18 @@ namespace CalamityMod.CalPlayer
|
||||
Main.PlaySound(SoundID.FemaleHit, (int)player.position.X, (int)player.position.Y, 1, 1f, 0f); //female hit noise
|
||||
hurtSoundTimer = 10;
|
||||
}
|
||||
else if (titanHeartSet)
|
||||
{
|
||||
playSound = false;
|
||||
Terraria.Audio.LegacySoundStyle atlasHurt = Utils.SelectRandom(Main.rand, new Terraria.Audio.LegacySoundStyle[]
|
||||
{
|
||||
mod.GetLegacySoundSlot(SoundType.NPCHit, "Sounds/NPCHit/AtlasHurt0"),
|
||||
mod.GetLegacySoundSlot(SoundType.NPCHit, "Sounds/NPCHit/AtlasHurt1"),
|
||||
mod.GetLegacySoundSlot(SoundType.NPCHit, "Sounds/NPCHit/AtlasHurt2")
|
||||
});
|
||||
Main.PlaySound(atlasHurt, (int)player.position.X, (int)player.position.Y);
|
||||
hurtSoundTimer = 10;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -7228,6 +7338,20 @@ namespace CalamityMod.CalPlayer
|
||||
damage = (int)newDamage;
|
||||
}
|
||||
|
||||
if (CalamityWorld.ironHeart)
|
||||
{
|
||||
int damageMin = player.statLifeMax2 / 4;
|
||||
playSound = false;
|
||||
hurtSoundTimer = 20;
|
||||
if (damage < damageMin)
|
||||
{
|
||||
damage = damageMin;
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/IronHeartHurt"), (int)player.position.X, (int)player.position.Y);
|
||||
}
|
||||
else
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/IronHeartBigHurt"), (int)player.position.X, (int)player.position.Y);
|
||||
}
|
||||
|
||||
#region MultiplicativeReductions
|
||||
if (trinketOfChiBuff)
|
||||
{
|
||||
@@ -7944,7 +8068,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.lastDeathPostion = player.Center;
|
||||
player.lastDeathTime = DateTime.Now;
|
||||
player.showLastDeath = true;
|
||||
bool specialDeath = CalamityWorld.ironHeart && areThereAnyDamnBosses;
|
||||
bool specialDeath = CalamityWorld.ironHeart;
|
||||
int coinsOwned = (int)Utils.CoinsCount(out bool flag, player.inventory, new int[0]);
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
{
|
||||
@@ -7958,13 +8082,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
{
|
||||
player.trashItem.SetDefaults(0, false);
|
||||
if (specialDeath)
|
||||
{
|
||||
player.difficulty = 2;
|
||||
player.DropItems();
|
||||
player.KillMeForGood();
|
||||
}
|
||||
else if (player.difficulty == 0)
|
||||
if (player.difficulty == 0)
|
||||
{
|
||||
for (int i = 0; i < 59; i++)
|
||||
{
|
||||
@@ -8367,11 +8485,11 @@ namespace CalamityMod.CalPlayer
|
||||
Rectangle rectangle = new Rectangle((int)((double)player.position.X + (double)player.velocity.X * 0.5 - 4.0), (int)((double)player.position.Y + (double)player.velocity.Y * 0.5 - 4.0), player.width + 8, player.height + 8);
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
if (Main.npc[i].active && !Main.npc[i].dontTakeDamage && !Main.npc[i].friendly && !Main.npc[i].townNPC && Main.npc[i].immune[player.whoAmI] <= 0 && Main.npc[i].damage > 0)
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && !npc.townNPC && npc.immune[player.whoAmI] <= 0 && npc.damage > 0)
|
||||
{
|
||||
NPC nPC = Main.npc[i];
|
||||
Rectangle rect = nPC.getRect();
|
||||
if (rectangle.Intersects(rect) && (nPC.noTileCollide || player.CanHit(nPC)))
|
||||
if (rectangle.Intersects(rect) && (npc.noTileCollide || player.CanHit(npc)))
|
||||
{
|
||||
OnDodge();
|
||||
break;
|
||||
@@ -8380,9 +8498,9 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
for (int i = 0; i < Main.maxProjectiles; i++)
|
||||
{
|
||||
if (Main.projectile[i].active && !Main.projectile[i].friendly && Main.projectile[i].hostile && Main.projectile[i].damage > 0)
|
||||
Projectile proj = Main.projectile[i];
|
||||
if (proj.active && !proj.friendly && proj.hostile && proj.damage > 0)
|
||||
{
|
||||
Projectile proj = Main.projectile[i];
|
||||
Rectangle rect = proj.getRect();
|
||||
if (rectangle.Intersects(rect))
|
||||
{
|
||||
@@ -9345,7 +9463,6 @@ namespace CalamityMod.CalPlayer
|
||||
#endregion
|
||||
|
||||
#region Drawing
|
||||
|
||||
public static readonly PlayerLayer MiscEffectsBack = new PlayerLayer("CalamityMod", "MiscEffectsBack", PlayerLayer.MiscEffectsBack, delegate (PlayerDrawInfo drawInfo)
|
||||
{
|
||||
if (drawInfo.shadow != 0f)
|
||||
@@ -9376,10 +9493,40 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
if (drawInfo.shadow != 0f)
|
||||
return;
|
||||
|
||||
Player drawPlayer = drawInfo.drawPlayer;
|
||||
Item item = drawPlayer.ActiveItem();
|
||||
|
||||
// Kamei trail/afterimage effect.
|
||||
if (drawPlayer.Calamity().kamiBoost)
|
||||
{
|
||||
for (int i = drawPlayer.Calamity().KameiOldPositions.Length - 1; i > 0; i--)
|
||||
{
|
||||
if (drawPlayer.Calamity().KameiOldPositions[i - 1] == Vector2.Zero)
|
||||
drawPlayer.Calamity().KameiOldPositions[i - 1] = drawPlayer.position;
|
||||
drawPlayer.Calamity().KameiOldPositions[i] = drawPlayer.Calamity().KameiOldPositions[i - 1];
|
||||
}
|
||||
drawPlayer.Calamity().KameiOldPositions[0] = drawPlayer.position;
|
||||
|
||||
List<DrawData> existingDrawData = Main.playerDrawData;
|
||||
for (int i = 0; i < drawPlayer.Calamity().KameiOldPositions.Length; i++)
|
||||
{
|
||||
float scale = MathHelper.Lerp(1f, 0.5f, i / (float)drawPlayer.Calamity().KameiOldPositions.Length);
|
||||
float opacity = MathHelper.Lerp(0.25f, 0.08f, i / (float)drawPlayer.Calamity().KameiOldPositions.Length);
|
||||
List<DrawData> afterimage = new List<DrawData>();
|
||||
for (int j = 0; j < existingDrawData.Count; j++)
|
||||
{
|
||||
var drawData = existingDrawData[j];
|
||||
drawData.position = existingDrawData[j].position - drawPlayer.position + drawPlayer.oldPosition;
|
||||
drawData.color = Color.Cyan * opacity;
|
||||
drawData.color.G = (byte)(drawData.color.G * 1.6);
|
||||
drawData.color.B = (byte)(drawData.color.B * 1.2);
|
||||
drawData.scale = new Vector2(scale);
|
||||
afterimage.Add(drawData);
|
||||
}
|
||||
Main.playerDrawData.InsertRange(0, afterimage);
|
||||
}
|
||||
}
|
||||
|
||||
if (!drawPlayer.frozen &&
|
||||
item.type > ItemID.None &&
|
||||
!drawPlayer.dead &&
|
||||
@@ -9539,6 +9686,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
public override void ModifyDrawInfo(ref PlayerDrawInfo drawInfo)
|
||||
{
|
||||
if (drawInfo.shadow != 0f)
|
||||
@@ -10456,6 +10604,7 @@ namespace CalamityMod.CalPlayer
|
||||
chatText = "Now is not the time!";
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -461,7 +461,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen /= 2;
|
||||
}
|
||||
|
||||
if (modPlayer.omegaBlueChestplate || modPlayer.godSlayerCooldown || player.ownedProjectileCounts[ModContent.ProjectileType<BloodBoilerFire>()] > 0)
|
||||
if (CalamityWorld.ironHeart || modPlayer.omegaBlueChestplate || modPlayer.godSlayerCooldown || player.ownedProjectileCounts[ModContent.ProjectileType<BloodBoilerFire>()] > 0)
|
||||
{
|
||||
if (player.lifeRegen > 0)
|
||||
player.lifeRegen = 0;
|
||||
|
||||
@@ -339,8 +339,8 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
player.Calamity().andromedaState = AndromedaPlayerState.Inactive;
|
||||
}
|
||||
|
||||
if (player.Calamity().andromedaState == AndromedaPlayerState.LargeRobot)
|
||||
|
||||
if(player.Calamity().andromedaState == AndromedaPlayerState.LargeRobot)
|
||||
{
|
||||
player.width = 152;
|
||||
player.height = 212;
|
||||
@@ -905,6 +905,8 @@ namespace CalamityMod.CalPlayer
|
||||
// Cooldowns and timers
|
||||
if (modPlayer.gainRageCooldown > 0)
|
||||
modPlayer.gainRageCooldown--;
|
||||
if (modPlayer.KameiBladeUseDelay > 0)
|
||||
modPlayer.KameiBladeUseDelay--;
|
||||
if (modPlayer.galileoCooldown > 0)
|
||||
modPlayer.galileoCooldown--;
|
||||
if (modPlayer.soundCooldown > 0)
|
||||
@@ -981,6 +983,8 @@ namespace CalamityMod.CalPlayer
|
||||
modPlayer.titanBoost--;
|
||||
if (modPlayer.prismaticLasers > 0)
|
||||
modPlayer.prismaticLasers--;
|
||||
if (modPlayer.titanCooldown > 0)
|
||||
modPlayer.titanCooldown--;
|
||||
|
||||
// Silva invincibility effects
|
||||
if (modPlayer.silvaCountdown > 0 && modPlayer.hasSilvaEffect && modPlayer.silvaSet)
|
||||
@@ -1139,8 +1143,14 @@ namespace CalamityMod.CalPlayer
|
||||
player.endurance += 0.07f;
|
||||
}
|
||||
|
||||
// Absorber bonus
|
||||
if (modPlayer.absorber)
|
||||
if (modPlayer.kamiBoost)
|
||||
{
|
||||
player.allDamage += 0.3f;
|
||||
player.statDefense += 20;
|
||||
}
|
||||
|
||||
// Absorber bonus
|
||||
if (modPlayer.absorber)
|
||||
{
|
||||
player.moveSpeed += 0.12f;
|
||||
player.jumpSpeedBoost += 1.2f;
|
||||
@@ -3305,7 +3315,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
|
||||
// Brimstone Elemental lore inferno potion boost
|
||||
if (modPlayer.brimstoneElementalLore && player.inferno)
|
||||
if ((modPlayer.brimstoneElementalLore || modPlayer.ataxiaBlaze) && player.inferno)
|
||||
{
|
||||
const int FramesPerHit = 30;
|
||||
|
||||
@@ -3799,7 +3809,7 @@ namespace CalamityMod.CalPlayer
|
||||
modPlayer.critStats[0] = player.meleeCrit;
|
||||
modPlayer.critStats[1] = player.rangedCrit;
|
||||
modPlayer.critStats[2] = player.magicCrit;
|
||||
modPlayer.critStats[3] = modPlayer.throwingCrit;
|
||||
modPlayer.critStats[3] = player.thrownCrit + modPlayer.throwingCrit;
|
||||
modPlayer.ammoReductionRanged = (int)(100f *
|
||||
(player.ammoBox ? 0.8f : 1f) *
|
||||
(player.ammoPotion ? 0.8f : 1f) *
|
||||
@@ -3844,7 +3854,7 @@ namespace CalamityMod.CalPlayer
|
||||
#region Rogue Mirrors
|
||||
private static void RogueMirrors(Player player, CalamityPlayer modPlayer)
|
||||
{
|
||||
Rectangle rectangle = new Rectangle((int)((double)player.position.X + (double)player.velocity.X * 0.5 - 4.0), (int)((double)player.position.Y + (double)player.velocity.Y * 0.5 - 4.0), player.width + 8, player.height + 8);
|
||||
Rectangle rectangle = new Rectangle((int)(player.position.X + player.velocity.X * 0.5f - 4f), (int)(player.position.Y + player.velocity.Y * 0.5f - 4f), player.width + 8, player.height + 8);
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC npc = Main.npc[i];
|
||||
|
||||
@@ -135,8 +135,8 @@ namespace CalamityMod
|
||||
|
||||
// Boss velocity scaling data structure
|
||||
public static SortedDictionary<int, float> bossVelocityDamageScaleValues;
|
||||
public const float velocityScaleMin = 0.66f;
|
||||
public const float bitingEnemeyVelocityScale = 0.9f;
|
||||
public const float velocityScaleMin = 0.5f;
|
||||
public const float bitingEnemeyVelocityScale = 0.8f;
|
||||
|
||||
// Lists
|
||||
public static IList<string> donatorList;
|
||||
@@ -209,6 +209,7 @@ namespace CalamityMod
|
||||
public static List<int> angryBonesList;
|
||||
public static List<int> hornetList;
|
||||
public static List<int> mossHornetList;
|
||||
public static List<int> bossMinionList;
|
||||
|
||||
public static List<int> legOverrideList;
|
||||
|
||||
@@ -287,6 +288,12 @@ namespace CalamityMod
|
||||
|
||||
AddEquipTexture(new SnowRuffianWings(), null, EquipType.Wings, "SnowRuffWings", "CalamityMod/Items/Armor/SnowRuffianWings");
|
||||
|
||||
AddEquipTexture(new MeldTransformationHead(), null, EquipType.Head, "MeldTransformationHead", "CalamityMod/Items/Armor/MeldTransformation_Head");
|
||||
AddEquipTexture(new MeldTransformationBody(), null, EquipType.Body, "MeldTransformationBody", "CalamityMod/Items/Armor/MeldTransformation_Body", "CalamityMod/Items/Armor/MeldTransformation_Arms");
|
||||
AddEquipTexture(new MeldTransformationLegs(), null, EquipType.Legs, "MeldTransformationLegs", "CalamityMod/Items/Armor/MeldTransformation_Legs");
|
||||
|
||||
AddEquipTexture(new AbyssDivingGearHair(), null, EquipType.Head, "AbyssDivingGearHead", "CalamityMod/Items/Accessories/AbyssalDivingGear_Face");
|
||||
|
||||
AstralCactusTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tiles/AstralCactus");
|
||||
AstralCactusGlowTexture = ModContent.GetTexture("CalamityMod/ExtraTextures/Tiles/AstralCactusGlow");
|
||||
AstralSky = ModContent.GetTexture("CalamityMod/ExtraTextures/AstralSky");
|
||||
@@ -438,6 +445,7 @@ namespace CalamityMod
|
||||
angryBonesList = null;
|
||||
hornetList = null;
|
||||
mossHornetList = null;
|
||||
bossMinionList = null;
|
||||
|
||||
legOverrideList = null;
|
||||
|
||||
@@ -737,7 +745,10 @@ namespace CalamityMod
|
||||
ModContent.ProjectileType<RainbowTrail>(),
|
||||
ModContent.ProjectileType<PrismaticBeam>(),
|
||||
ModContent.ProjectileType<ExoLight>(),
|
||||
ModContent.ProjectileType<ExoLightBomb>()
|
||||
ModContent.ProjectileType<ExoLightBomb>(),
|
||||
ModContent.ProjectileType<UltimaBowProjectile>(),
|
||||
ModContent.ProjectileType<UltimaSpark>(), // Because of potential dust lag.
|
||||
ModContent.ProjectileType<UltimaRay>()
|
||||
};
|
||||
|
||||
projectileDestroyExceptionList = new List<int>()
|
||||
@@ -2595,6 +2606,107 @@ namespace CalamityMod
|
||||
NPCID.GiantMossHornet
|
||||
};
|
||||
|
||||
bossMinionList = new List<int>()
|
||||
{
|
||||
ModContent.NPCType<DesertScourgeHeadSmall>(),
|
||||
ModContent.NPCType<DesertScourgeBodySmall>(),
|
||||
ModContent.NPCType<DesertScourgeTailSmall>(),
|
||||
NPCID.SlimeSpiked,
|
||||
NPCID.ServantofCthulhu,
|
||||
ModContent.NPCType<CrabShroom>(),
|
||||
NPCID.EaterofWorldsHead,
|
||||
NPCID.EaterofWorldsBody,
|
||||
NPCID.EaterofWorldsTail,
|
||||
NPCID.Creeper,
|
||||
ModContent.NPCType<PerforatorHeadSmall>(),
|
||||
ModContent.NPCType<PerforatorBodySmall>(),
|
||||
ModContent.NPCType<PerforatorTailSmall>(),
|
||||
ModContent.NPCType<PerforatorHeadMedium>(),
|
||||
ModContent.NPCType<PerforatorBodyMedium>(),
|
||||
ModContent.NPCType<PerforatorTailMedium>(),
|
||||
ModContent.NPCType<PerforatorHeadLarge>(),
|
||||
ModContent.NPCType<PerforatorBodyLarge>(),
|
||||
ModContent.NPCType<PerforatorTailLarge>(),
|
||||
ModContent.NPCType<HiveBlob>(),
|
||||
ModContent.NPCType<HiveBlob2>(),
|
||||
ModContent.NPCType<DankCreeper>(),
|
||||
NPCID.SkeletronHand,
|
||||
ModContent.NPCType<SlimeGod>(),
|
||||
ModContent.NPCType<SlimeGodSplit>(),
|
||||
ModContent.NPCType<SlimeGodRun>(),
|
||||
ModContent.NPCType<SlimeGodRunSplit>(),
|
||||
ModContent.NPCType<SlimeSpawnCorrupt>(),
|
||||
ModContent.NPCType<SlimeSpawnCorrupt2>(),
|
||||
ModContent.NPCType<SlimeSpawnCrimson>(),
|
||||
ModContent.NPCType<SlimeSpawnCrimson2>(),
|
||||
NPCID.LeechHead,
|
||||
NPCID.LeechBody,
|
||||
NPCID.LeechTail,
|
||||
NPCID.WallofFleshEye,
|
||||
NPCID.TheHungry,
|
||||
NPCID.TheHungryII,
|
||||
ModContent.NPCType<Cryocore>(),
|
||||
ModContent.NPCType<Cryocore2>(),
|
||||
ModContent.NPCType<IceMass>(),
|
||||
NPCID.PrimeCannon,
|
||||
NPCID.PrimeLaser,
|
||||
NPCID.PrimeSaw,
|
||||
NPCID.PrimeVice,
|
||||
ModContent.NPCType<Brimling>(),
|
||||
NPCID.TheDestroyer,
|
||||
NPCID.TheDestroyerBody,
|
||||
NPCID.TheDestroyerTail,
|
||||
ModContent.NPCType<AquaticScourgeHead>(),
|
||||
ModContent.NPCType<AquaticScourgeBody>(),
|
||||
ModContent.NPCType<AquaticScourgeBodyAlt>(),
|
||||
ModContent.NPCType<AquaticScourgeTail>(),
|
||||
ModContent.NPCType<CalamitasRun>(),
|
||||
ModContent.NPCType<CalamitasRun2>(),
|
||||
ModContent.NPCType<LifeSeeker>(),
|
||||
ModContent.NPCType<SoulSeeker>(),
|
||||
NPCID.PlanterasTentacle,
|
||||
ModContent.NPCType<AureusSpawn>(),
|
||||
NPCID.Spore,
|
||||
NPCID.GolemHead,
|
||||
NPCID.GolemHeadFree,
|
||||
NPCID.GolemFistLeft,
|
||||
NPCID.GolemFistRight,
|
||||
ModContent.NPCType<PlagueMine>(),
|
||||
ModContent.NPCType<PlagueHomingMissile>(),
|
||||
ModContent.NPCType<RavagerClawLeft>(),
|
||||
ModContent.NPCType<RavagerClawRight>(),
|
||||
ModContent.NPCType<RavagerLegLeft>(),
|
||||
ModContent.NPCType<RavagerLegLeft>(),
|
||||
ModContent.NPCType<RavagerHead>(),
|
||||
NPCID.CultistDragonHead,
|
||||
NPCID.CultistDragonBody1,
|
||||
NPCID.CultistDragonBody2,
|
||||
NPCID.CultistDragonBody3,
|
||||
NPCID.CultistDragonBody4,
|
||||
NPCID.CultistDragonTail,
|
||||
NPCID.AncientCultistSquidhead,
|
||||
NPCID.MoonLordFreeEye,
|
||||
NPCID.MoonLordHand,
|
||||
NPCID.MoonLordHead,
|
||||
ModContent.NPCType<Bumblefuck2>(),
|
||||
ModContent.NPCType<ProvSpawnOffense>(),
|
||||
ModContent.NPCType<ProvSpawnDefense>(),
|
||||
ModContent.NPCType<ProvSpawnHealer>(),
|
||||
ModContent.NPCType<DarkEnergy>(),
|
||||
ModContent.NPCType<DarkEnergy2>(),
|
||||
ModContent.NPCType<DarkEnergy3>(),
|
||||
ModContent.NPCType<CosmicLantern>(),
|
||||
ModContent.NPCType<StasisProbe>(),
|
||||
ModContent.NPCType<StasisProbeNaked>(),
|
||||
ModContent.NPCType<DevourerofGodsHead2>(),
|
||||
ModContent.NPCType<DevourerofGodsBody2>(),
|
||||
ModContent.NPCType<DevourerofGodsTail2>(),
|
||||
ModContent.NPCType<DetonatingFlare>(),
|
||||
ModContent.NPCType<DetonatingFlare2>(),
|
||||
ModContent.NPCType<SupremeCataclysm>(),
|
||||
ModContent.NPCType<SupremeCatastrophe>()
|
||||
};
|
||||
|
||||
Mod thorium = ModLoader.GetMod("ThoriumMod");
|
||||
if (CalamityConfig.Instance.BuffThoriumBosses && thorium != null)
|
||||
{
|
||||
|
||||
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 212 B |
|
After Width: | Height: | Size: 334 B |
|
After Width: | Height: | Size: 227 B |
|
After Width: | Height: | Size: 292 B |
|
Before Width: | Height: | Size: 508 B After Width: | Height: | Size: 344 B |
|
After Width: | Height: | Size: 10 KiB |
|
After Width: | Height: | Size: 12 KiB |
|
After Width: | Height: | Size: 19 KiB |
|
After Width: | Height: | Size: 8.8 KiB |
|
Before Width: | Height: | Size: 16 KiB |
|
Before Width: | Height: | Size: 14 KiB |
|
Before Width: | Height: | Size: 27 KiB |
|
Before Width: | Height: | Size: 868 B |
|
Before Width: | Height: | Size: 1.9 KiB |
|
Before Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 764 B |
|
Before Width: | Height: | Size: 1.6 KiB |
@@ -6,54 +6,70 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
[AutoloadEquip(EquipType.Face)]
|
||||
public class AbyssalDivingGear : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Gear");
|
||||
Tooltip.SetDefault("Reduces the damage caused by the pressure of the abyss while out of breath\n" +
|
||||
"Removes the bleed effect caused by the abyss\n" +
|
||||
"Grants the ability to swim and greatly extends underwater breathing\n" +
|
||||
"Provides light underwater and extra mobility on ice\n" +
|
||||
"Provides a moderate amount of light in the abyss\n" +
|
||||
"Greatly reduces breath loss in the abyss");
|
||||
}
|
||||
//[AutoloadEquip(EquipType.Face)]
|
||||
public class AbyssalDivingGear : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Abyssal Diving Gear");
|
||||
Tooltip.SetDefault("Reduces the damage caused by the pressure of the abyss while out of breath\n" +
|
||||
"Removes the bleed effect caused by the abyss\n" +
|
||||
"Grants the ability to swim and greatly extends underwater breathing\n" +
|
||||
"Provides light underwater and extra mobility on ice\n" +
|
||||
"Provides a moderate amount of light in the abyss\n" +
|
||||
"Greatly reduces breath loss in the abyss");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.rare = 7;
|
||||
item.accessory = true;
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.rare = 7;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.depthCharm = true;
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
player.arcticDivingGear = true;
|
||||
player.accFlipper = true;
|
||||
player.accDivingHelm = true;
|
||||
player.iceSkate = true;
|
||||
if (player.wet)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.2f, 0.8f, 0.9f);
|
||||
}
|
||||
}
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.depthCharm = true;
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
if (!hideVisual)
|
||||
modPlayer.abyssDivingGear = true; //this bool is just used for drawing
|
||||
player.arcticDivingGear = true;
|
||||
player.accFlipper = true;
|
||||
player.accDivingHelm = true;
|
||||
player.iceSkate = true;
|
||||
if (player.wet)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, 0.2f, 0.8f, 0.9f);
|
||||
}
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.ArcticDivingGear);
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCharm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 10);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
public override void UpdateVanity(Player player, EquipType type)
|
||||
{
|
||||
player.Calamity().abyssDivingGear = true; //this bool is just used for drawing
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.ArcticDivingGear);
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCharm>());
|
||||
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 10);
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
|
||||
public class AbyssDivingGearHair : EquipTexture
|
||||
{
|
||||
public override void DrawHair(ref bool drawHair, ref bool drawAltHair)
|
||||
{
|
||||
drawHair = false;
|
||||
drawAltHair = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -44,7 +44,6 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddIngredient(ModContent.ItemType<SilencingSheath>());
|
||||
recipe.AddIngredient(ModContent.ItemType<RuinMedallion>());
|
||||
recipe.AddIngredient(ModContent.ItemType<MeldiateBar>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 25);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 848 B |
|
Before Width: | Height: | Size: 3.6 KiB After Width: | Height: | Size: 458 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 643 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 485 B |
|
Before Width: | Height: | Size: 576 B After Width: | Height: | Size: 807 B |
|
Before Width: | Height: | Size: 1.0 KiB After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 601 B After Width: | Height: | Size: 1.0 KiB |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 371 B After Width: | Height: | Size: 497 B |
|
Before Width: | Height: | Size: 465 B After Width: | Height: | Size: 492 B |
|
Before Width: | Height: | Size: 438 B After Width: | Height: | Size: 595 B |
|
Before Width: | Height: | Size: 435 B After Width: | Height: | Size: 430 B |
|
Before Width: | Height: | Size: 470 B After Width: | Height: | Size: 450 B |
@@ -47,8 +47,8 @@ namespace CalamityMod.Items.Armor
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.daedalusSplit = true;
|
||||
modPlayer.rogueStealthMax += 1.05f;
|
||||
player.Calamity().throwingDamage += 0.05f;
|
||||
player.Calamity().wearingRogueArmor = true;
|
||||
modPlayer.throwingDamage += 0.05f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
|
After Width: | Height: | Size: 857 B |
|
After Width: | Height: | Size: 3.2 KiB |
|
After Width: | Height: | Size: 3.9 KiB |
|
After Width: | Height: | Size: 2.4 KiB |
@@ -26,10 +26,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.meleeCrit += 5;
|
||||
player.magicCrit += 5;
|
||||
player.rangedCrit += 5;
|
||||
player.Calamity().throwingCrit += 5;
|
||||
player.Calamity().AllCritBoost(5);
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
[AutoloadEquip(EquipType.Legs)]
|
||||
public class TitanHeartBoots : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Titan Heart Boots");
|
||||
Tooltip.SetDefault("10% increased rogue velocity and 5% boosted rogue knockback");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(0, 12, 0, 0);
|
||||
item.rare = 5;
|
||||
item.defense = 14;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().titanHeartBoots = true;
|
||||
player.Calamity().throwingVelocity += 0.1f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 14);
|
||||
recipe.AddIngredient(ModContent.ItemType<TitanHeart>());
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 273 B |
|
After Width: | Height: | Size: 1.9 KiB |
@@ -0,0 +1,43 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
[AutoloadEquip(EquipType.Body)]
|
||||
public class TitanHeartMantle : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Titan Heart Mantle");
|
||||
Tooltip.SetDefault("45% chance to not consume rogue items\n" +
|
||||
"5% boosted rogue knockback but 20% lowered rogue shoot speed");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(0, 12, 0, 0);
|
||||
item.rare = 5;
|
||||
item.defense = 17;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.Calamity().titanHeartMantle = true;
|
||||
player.Calamity().throwingAmmoCost55 = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 20);
|
||||
recipe.AddIngredient(ModContent.ItemType<TitanHeart>());
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 390 B |
|
After Width: | Height: | Size: 1.5 KiB |
|
After Width: | Height: | Size: 3.5 KiB |
@@ -0,0 +1,64 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Armor
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class TitanHeartMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Titan Heart Mask");
|
||||
Tooltip.SetDefault("5% increased rogue damage and knockback");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 18;
|
||||
item.height = 18;
|
||||
item.value = Item.buyPrice(0, 12, 0, 0);
|
||||
item.rare = 5;
|
||||
item.defense = 12; //43
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<TitanHeartMantle>() && legs.type == ModContent.ItemType<TitanHeartBoots>();
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "20% increased rogue damage and knockback\n" +
|
||||
"Stealth strikes deal double knockback and cause an astral explosion\n" +
|
||||
"Rogue stealth builds while not attacking and slower while moving, up to a max of 100\n" +
|
||||
"Once you have built max stealth, you will be able to perform a Stealth Strike\n" +
|
||||
"Rogue stealth only reduces when you attack, it does not reduce while moving\n" +
|
||||
"The higher your rogue stealth the higher your rogue damage, crit, and movement speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.titanHeartSet = true;
|
||||
modPlayer.throwingDamage += 0.2f;
|
||||
modPlayer.rogueStealthMax += 1f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.titanHeartMask = true;
|
||||
modPlayer.throwingDamage += 0.05f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ModContent.ItemType<Stardust>(), 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<TitanHeart>());
|
||||
recipe.AddTile(TileID.MythrilAnvil);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 411 B |
|
After Width: | Height: | Size: 3.4 KiB |
@@ -0,0 +1,22 @@
|
||||
using Terraria.ModLoader;
|
||||
namespace CalamityMod.Items.Armor.Vanity
|
||||
{
|
||||
[AutoloadEquip(EquipType.Head)]
|
||||
public class AnahitaMask : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Anahita Mask");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 20;
|
||||
item.rare = 1;
|
||||
item.vanity = true;
|
||||
}
|
||||
|
||||
public override bool DrawHead() => false;
|
||||
}
|
||||
}
|
||||
|
After Width: | Height: | Size: 484 B |
|
After Width: | Height: | Size: 2.4 KiB |
|
Before Width: | Height: | Size: 489 B After Width: | Height: | Size: 573 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 423 B After Width: | Height: | Size: 519 B |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 2.7 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 2.8 KiB After Width: | Height: | Size: 3.6 KiB |
|
Before Width: | Height: | Size: 297 B After Width: | Height: | Size: 506 B |
|
Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.4 KiB |
|
Before Width: | Height: | Size: 441 B After Width: | Height: | Size: 474 B |
|
Before Width: | Height: | Size: 2.4 KiB After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 566 B |
|
Before Width: | Height: | Size: 1.4 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 306 B After Width: | Height: | Size: 554 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 330 B After Width: | Height: | Size: 421 B |
|
Before Width: | Height: | Size: 5.4 KiB After Width: | Height: | Size: 3.3 KiB |
|
Before Width: | Height: | Size: 258 B After Width: | Height: | Size: 541 B |
|
Before Width: | Height: | Size: 1.2 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Xeroc Cuisses");
|
||||
DisplayName.SetDefault("Empyrean Cuisses");
|
||||
Tooltip.SetDefault("5% increased rogue damage and critical strike chance\n" +
|
||||
"20% increased movement speed\n" +
|
||||
"Speed of the cosmos");
|
||||
|
||||
|
Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 388 B |
|
Before Width: | Height: | Size: 3.7 KiB After Width: | Height: | Size: 3.0 KiB |
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Xeroc Mask");
|
||||
DisplayName.SetDefault("Empyrean Mask");
|
||||
Tooltip.SetDefault("11% increased rogue damage and critical strike chance, 22% increased movement speed\n" +
|
||||
"Temporary immunity to lava\n" +
|
||||
"Provides heat protection in Death Mode\n" +
|
||||
@@ -36,6 +36,8 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
player.armorEffectDrawShadow = true;
|
||||
player.armorEffectDrawOutlines = true;
|
||||
player.Calamity().meldTransformation = true;
|
||||
player.Calamity().meldTransformationForce = true;
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
@@ -50,7 +52,7 @@ namespace CalamityMod.Items.Armor
|
||||
"Once you have built max stealth, you will be able to perform a Stealth Strike\n" +
|
||||
"Rogue stealth only reduces when you attack, it does not reduce while moving\n" +
|
||||
"The higher your rogue stealth the higher your rogue damage, crit, and movement speed";
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
{
|
||||
player.AddBuff(BuffID.Wrath, 2);
|
||||
player.AddBuff(BuffID.Rage, 2);
|
||||
@@ -78,4 +80,28 @@ namespace CalamityMod.Items.Armor
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
|
||||
public class MeldTransformationHead : EquipTexture
|
||||
{
|
||||
public override bool DrawHead()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public class MeldTransformationBody : EquipTexture
|
||||
{
|
||||
public override bool DrawBody()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public class MeldTransformationLegs : EquipTexture
|
||||
{
|
||||
public override bool DrawLegs()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 450 B After Width: | Height: | Size: 566 B |
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 3.8 KiB |
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Armor
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Xeroc Plate Mail");
|
||||
DisplayName.SetDefault("Empyrean Cloak");
|
||||
Tooltip.SetDefault("+20 max life\n" +
|
||||
"6% increased movement speed\n" +
|
||||
"7% increased rogue damage and critical strike chance\n" +
|
||||
|
||||
|
Before Width: | Height: | Size: 504 B After Width: | Height: | Size: 696 B |
|
Before Width: | Height: | Size: 3.3 KiB After Width: | Height: | Size: 912 B |
|
Before Width: | Height: | Size: 5.2 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 5.2 KiB |
@@ -2,6 +2,7 @@ using CalamityMod.NPCs.SlimeGod;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.Localization;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,10 +14,10 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Iron Heart");
|
||||
Tooltip.SetDefault("Makes dying while a boss is alive permanently kill you.\n" +
|
||||
Tooltip.SetDefault("Healing with potions and all positive life regen is disabled.\n" +
|
||||
"Enemy damage scales with your max health.\n" +
|
||||
"Can be toggled on and off.\n" +
|
||||
"Using this while a boss is alive will permanently kill you.\n" +
|
||||
"Cannot be activated if any boss has been killed.");
|
||||
"Using this while a boss is alive will instantly kill you and despawn the boss.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -32,24 +33,19 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
item.consumable = false;
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
return !CalamityWorld.downedBossAny;
|
||||
}
|
||||
|
||||
public override bool UseItem(Player player)
|
||||
{
|
||||
for (int doom = 0; doom < 200; doom++)
|
||||
{
|
||||
if ((Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == ModContent.NPCType<SlimeGodRun>() ||
|
||||
Main.npc[doom].type == ModContent.NPCType<SlimeGodRunSplit>() || Main.npc[doom].type == ModContent.NPCType<SlimeGod>() || Main.npc[doom].type == ModContent.NPCType<SlimeGodSplit>())) || CalamityWorld.DoGSecondStageCountdown > 0)
|
||||
{
|
||||
player.KillMeForGood();
|
||||
Main.npc[doom].active = Main.npc[doom].friendly;
|
||||
Main.npc[doom].netUpdate = true;
|
||||
}
|
||||
}
|
||||
if (!CalamityWorld.ironHeart)
|
||||
for (int doom = 0; doom < Main.npc.Length; doom++)
|
||||
{
|
||||
if ((Main.npc[doom].active && (Main.npc[doom].boss || Main.npc[doom].type == NPCID.EaterofWorldsHead || Main.npc[doom].type == NPCID.EaterofWorldsTail || Main.npc[doom].type == ModContent.NPCType<SlimeGodRun>() ||
|
||||
Main.npc[doom].type == ModContent.NPCType<SlimeGodRunSplit>() || Main.npc[doom].type == ModContent.NPCType<SlimeGod>() || Main.npc[doom].type == ModContent.NPCType<SlimeGodSplit>())) || CalamityWorld.DoGSecondStageCountdown > 0)
|
||||
{
|
||||
player.KillMe(PlayerDeathReason.ByCustomReason(player.name + " tried to change the rules."), 1000.0, 0, false);
|
||||
Main.npc[doom].active = Main.npc[doom].friendly;
|
||||
Main.npc[doom].netUpdate = true;
|
||||
}
|
||||
}
|
||||
if (!CalamityWorld.ironHeart)
|
||||
{
|
||||
CalamityWorld.ironHeart = true;
|
||||
string key = "Mods.CalamityMod.IronHeartText";
|
||||
|
||||
|
Before Width: | Height: | Size: 654 B After Width: | Height: | Size: 863 B |
@@ -15,7 +15,8 @@ namespace CalamityMod.Items.LoreItems
|
||||
Tooltip.SetDefault("A horror born of pollution and insatiable hunger; based on size alone this was merely a juvenile.\n" +
|
||||
"These scourge creatures are the largest aquatic predators and very rarely do they frequent such shallow waters.\n" +
|
||||
"Place in your inventory to gain immunity to the sulphurous waters and increase the stat gains from the Well Fed buff.\n" +
|
||||
"However, without the Well Fed buff your stats will decrease due to your insatiable hunger.");
|
||||
"However, without the Well Fed buff your stats will decrease due to your insatiable hunger.\n" +
|
||||
"These effects only occur if the item is favorited.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -31,11 +32,12 @@ namespace CalamityMod.Items.LoreItems
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void UpdateInventory(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.aquaticScourgeLore = true;
|
||||
}
|
||||
public override void UpdateInventory(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (item.favorited)
|
||||
modPlayer.aquaticScourgeLore = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -14,7 +14,8 @@ namespace CalamityMod.Items.LoreItems
|
||||
DisplayName.SetDefault("Astrum Aureus");
|
||||
Tooltip.SetDefault("A titanic cyborg infected by a star-borne disease expelled from the belly of an ancient god.\n" +
|
||||
"The destruction of this creature will not prevent the spread of the disease.\n" +
|
||||
"Place in your inventory to gain increased jump speed in space.");
|
||||
"Place in your inventory to gain increased jump speed in space.\n" +
|
||||
"This effect only occurs if the item is favorited.");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -33,7 +34,8 @@ namespace CalamityMod.Items.LoreItems
|
||||
public override void UpdateInventory(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.astrumAureusLore = true;
|
||||
if (item.favorited)
|
||||
modPlayer.astrumAureusLore = true;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||