Frost Barrier, Frost Flare, Soul of Cryogen buffs

This commit is contained in:
CongratsIsTrash committed 2024-04-13 10:08:20 -04:00
1 parent 0d39da72ac
commit 2dfcb31f16
9 files changed
+17 -35

No files matched your search

+2 -2
View File
@@ -3662,7 +3662,7 @@ namespace CalamityMod.CalPlayer
(stressPills ? 0.05f : 0f) +
((abyssalDivingSuit && Player.IsUnderwater()) ? 0.05f : 0f) +
(aquaticHeartWaterBuff ? 0.15f : 0f) +
((frostFlare && Player.statLife < (int)(Player.statLifeMax2 * 0.25)) ? 0.15f : 0f) +
((frostFlare && Player.statLife <= (int)(Player.statLifeMax2 * 0.5)) ? 0.15f : 0f) +
(dragonScales ? 0.1f : 0f) +
(kamiBoost ? KamiBuff.RunAccelerationBoost : 0f) +
(CobaltSet ? CobaltArmorSetChange.SpeedBoostSetBonusPercentage * 0.01f : 0f) +
@@ -3677,7 +3677,7 @@ namespace CalamityMod.CalPlayer
(stressPills ? 0.05f : 0f) +
((abyssalDivingSuit && Player.IsUnderwater()) ? 0.05f : 0f) +
(aquaticHeartWaterBuff ? 0.15f : 0f) +
((frostFlare && Player.statLife < (int)(Player.statLifeMax2 * 0.25)) ? 0.15f : 0f) +
((frostFlare && Player.statLife <= (int)(Player.statLifeMax2 * 0.5)) ? 0.15f : 0f) +
(dragonScales ? 0.1f : 0f) +
(kamiBoost ? KamiBuff.RunSpeedBoost : 0f) +
(CobaltSet ? CobaltArmorSetChange.SpeedBoostSetBonusPercentage * 0.01f : 0f) +
+4 -8
View File
@@ -2263,7 +2263,7 @@ namespace CalamityMod.CalPlayer
Player.AddBuff(ModContent.BuffType<ReaverRage>(), 180);
}
if ((fBarrier || (aquaticHeart && NPC.downedBoss3)) && !areThereAnyDamnBosses)
if (fBarrier || (aquaticHeart && NPC.downedBoss3))
{
SoundEngine.PlaySound(SoundID.Item27, Player.Center);
for (int m = 0; m < Main.maxNPCs; m++)
@@ -2273,17 +2273,13 @@ namespace CalamityMod.CalPlayer
continue;
float npcDist = (npc.Center - Player.Center).Length();
float freezeDist = Main.rand.Next(200 + (int)hurtInfo.Damage / 2, 301 + (int)hurtInfo.Damage * 2);
float freezeDist = 300 + (int)hurtInfo.Damage * 2;
if (freezeDist > 500f)
freezeDist = 500f + (freezeDist - 500f) * 0.75f;
if (freezeDist > 700f)
freezeDist = 700f + (freezeDist - 700f) * 0.5f;
if (freezeDist > 900f)
freezeDist = 900f + (freezeDist - 900f) * 0.25f;
freezeDist = 500f + (freezeDist - 500f) * 0.5f;
if (npcDist < freezeDist)
{
float duration = Main.rand.Next(10 + (int)hurtInfo.Damage / 4, 20 + (int)hurtInfo.Damage / 3);
float duration = Main.rand.Next(10 + (int)hurtInfo.Damage / 2, 20 + (int)hurtInfo.Damage);
if (duration > 120)
duration = 120;
+2 -2
View File
@@ -2992,9 +2992,9 @@ namespace CalamityMod.CalPlayer
Player.buffImmune[BuffID.Chilled] = true;
Player.buffImmune[BuffID.Frozen] = true;
if (Player.statLife > (int)(Player.statLifeMax2 * 0.75))
if (Player.statLife > (int)(Player.statLifeMax2 * 0.5))
Player.GetDamage<GenericDamageClass>() += 0.1f;
if (Player.statLife < (int)(Player.statLifeMax2 * 0.25))
if (Player.statLife <= (int)(Player.statLifeMax2 * 0.5))
Player.statDefense += 20;
}
-4
View File
@@ -1006,10 +1006,6 @@ namespace CalamityMod.CalPlayer
{
CalamityUtils.Inflict246DebuffsNPC(target, ModContent.BuffType<ElementalMix>());
}
if (cryogenSoul)
{
CalamityUtils.Inflict246DebuffsNPC(target, BuffID.Frostburn);
}
if (ataxiaFire)
{
CalamityUtils.Inflict246DebuffsNPC(target, BuffID.OnFire3, 4f);
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
{
Item.width = 20;
Item.height = 24;
Item.defense = 4;
Item.defense = 10;
Item.value = CalamityGlobalItem.Rarity4BuyPrice;
Item.rare = ItemRarityID.LightRed;
Item.accessory = true;
+2 -2
View File
@@ -59,7 +59,7 @@ namespace CalamityMod.Items.Accessories.Wings
if (player.controlJump && player.jump == 0 && player.velocity.Y != 0f && !player.mount.Active && !player.mount.Cart)
{
var source = player.GetSource_Accessory(Item);
int damage = (int)player.GetBestClassDamage().ApplyTo(25);
int damage = (int)player.GetBestClassDamage().ApplyTo(32);
damage = player.ApplyArmorAccDamageBonusesTo(damage);
int p = Projectile.NewProjectile(source, player.Center.X, player.Center.Y, player.velocity.X * 0f, 2f, ModContent.ProjectileType<FrostShardFriendly>(), damage, 3f, player.whoAmI, 1f);
@@ -68,7 +68,7 @@ namespace CalamityMod.Items.Accessories.Wings
Main.projectile[p].DamageType = DamageClass.Generic;
Main.projectile[p].frame = Main.rand.Next(5);
}
modPlayer.icicleCooldown = 10;
modPlayer.icicleCooldown = 7;
}
}
}
@@ -123,7 +123,6 @@ SoulofCryogen: {
Average vertical speed
Flight time: 120
7% increase to all damage
All melee attacks and projectiles inflict frostburn
Icicles rain down as you fly
'''
}
@@ -763,8 +763,8 @@ FrostBarrier: {
DisplayName: Frost Barrier
Tooltip:
'''
You will freeze enemies near you when you are struck
You are immune to the chilled debuff
You will freeze nearby enemies when you are struck
Grants immunity to the Chilled debuff
'''
}
@@ -772,10 +772,10 @@ FrostFlare: {
DisplayName: Frost Flare
Tooltip:
'''
All attacks and projectiles inflict frostbite
Immunity to frostburn, chilled and frozen
Being above 75% life grants 10% increased damage
Being below 25% life grants 20 defense and 15% increased max movement speed and acceleration
All attacks and projectiles inflict Frostbite
Immunity to Frostburn, Chilled and Frozen
Being above 50% life grants 10% increased damage
Being below 50% life grants 20 defense and 15% increased max movement speed and acceleration
Grants resistance against cold attacks
'''
}
-9
View File
@@ -1238,15 +1238,6 @@ namespace CalamityMod.NPCs
shop.AddWithCustomValue(ItemID.Steak, Item.buyPrice(gold: 5), Condition.HappyEnough, Condition.Hardmode);
}
}
public override void SetupTravelShop(int[] shop, ref int nextSlot)
{
if (Main.moonPhase == 0)
{
shop[nextSlot] = ItemType<FrostBarrier>();
nextSlot++;
}
}
#endregion
}
}