Yharims Gift rebalance
- No longer spawns dragon dust when moving - 15 -> 10% dmg - 12 -> 10 defense - 15 -> 20% move speed - 375/375/375 -> 250/500/750 meteor dmg - Meteor spread changed, meteors now have 10 tile homing range - fixed meteors not proccing on all iframe types - Meteors now inflict Dragonfire - All attacks with Yharim's Gift equipped inflict Auric Rebuke Also fixed Virid Vanguard broken localization. Dragonfire meteor buff also effects the nohit bow but that already inflcited dragonfire in other ways.
This commit is contained in:
1 parent
77672cf1ca
commit
774469e8db
7 files changed
+30
-31
No files matched your search
@@ -810,6 +810,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
#region Accessory
|
||||
public bool shieldOfTheHighRulerDashVelocityBoosted = false;
|
||||
public bool yharimsGift = false;
|
||||
public bool luxorsGift = false;
|
||||
public bool luxorHit = false;
|
||||
public bool luxorsGiftVanity = false;
|
||||
@@ -2350,6 +2351,7 @@ namespace CalamityMod.CalPlayer
|
||||
blazingCursorDamage = false;
|
||||
blazingCursorVisuals = false;
|
||||
|
||||
yharimsGift = false;
|
||||
luxorsGift = false;
|
||||
luxorsGiftVanity = false;
|
||||
fungalSymbiote = false;
|
||||
|
||||
@@ -460,6 +460,14 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region OnHitNPC
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (Player.Calamity().yharimsGift)
|
||||
target.AddBuff(ModContent.BuffType<AuricRebuke>(),120);
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Modify Hit NPC
|
||||
public override void ModifyHitNPCWithItem(Item item, NPC target, ref NPC.HitModifiers modifiers)
|
||||
{
|
||||
|
||||
@@ -9,13 +9,14 @@ namespace CalamityMod.Items.Accessories
|
||||
public class YharimsGift : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Accessories";
|
||||
public int dragonTimer = 60;
|
||||
|
||||
public static int MeteorDamage => CalamityUtils.ScaleWithDifficulty(250);
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 20;
|
||||
Item.height = 22;
|
||||
Item.defense = 12;
|
||||
Item.defense = 10;
|
||||
Item.accessory = true;
|
||||
Item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
Item.rare = ModContent.RarityType<BurnishedAuric>();
|
||||
@@ -24,38 +25,20 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.Calamity().yharimsGift = true;
|
||||
var source = player.GetSource_Accessory(Item);
|
||||
player.moveSpeed += 0.15f;
|
||||
player.GetDamage<GenericDamageClass>() += 0.15f;
|
||||
player.moveSpeed += 0.2f;
|
||||
player.GetDamage<GenericDamageClass>() += 0.1f;
|
||||
player.noKnockback = true;
|
||||
if (!player.StandingStill())
|
||||
{
|
||||
dragonTimer--;
|
||||
if (dragonTimer <= 0)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
int damage = (int)player.GetBestClassDamage().ApplyTo(175);
|
||||
|
||||
int projectile1 = Projectile.NewProjectile(source, player.Center, Vector2.Zero, ModContent.ProjectileType<DragonDust>(), damage, 5f, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[projectile1].timeLeft = 60;
|
||||
}
|
||||
dragonTimer = 60;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
dragonTimer = 60;
|
||||
}
|
||||
if (player.immune)
|
||||
if (player.HasIFrames())
|
||||
{
|
||||
if (player.miscCounter % 8 == 0)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
int damage = (int)player.GetBestClassDamage().ApplyTo(375);
|
||||
int damage = (int)player.GetBestClassDamage().ApplyTo(MeteorDamage);
|
||||
|
||||
CalamityUtils.ProjectileRain(source, player.Center, 400f, 100f, 500f, 800f, 22f, ModContent.ProjectileType<SkyFlareFriendly>(), damage, 9f, player.whoAmI);
|
||||
CalamityUtils.ProjectileRain(source, player.Center, 400f, 400f, 500f, 800f, 22f, ModContent.ProjectileType<SkyFlareFriendly>(), damage, 9f, player.whoAmI).Calamity().conditionalHomingRange = 160;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2120,9 +2120,9 @@ YharimsGift: {
|
||||
Tooltip:
|
||||
'''
|
||||
{$Common.KnockbackImmunity}
|
||||
Flaming meteors rain down after getting hit
|
||||
Volatile dragon dust trails behind you
|
||||
Increases damage and movement speed by 15%
|
||||
Increases damage by 10% and movement speed by 20%
|
||||
All attacks inflict [cbuff:CalamityMod/AuricRebuke]
|
||||
Flaming meteors rain down while invincible
|
||||
[c/FCA92B:'The power to kill a god pulses from within this artifact']
|
||||
'''
|
||||
}
|
||||
|
||||
@@ -876,7 +876,7 @@ ViridVanguard: {
|
||||
Alternates between summoning axes and swords, both laced with a powerful poison
|
||||
Axes orbit the player, dealing high damage at a close range
|
||||
Swords chase down enemies with extreme precision, tearing them to shreds
|
||||
All weapons inflict [cbuff:CalamityMod/Sage Poison], which becomes more powerful the more weapons are summoned
|
||||
All weapons inflict [cbuff:CalamityMod/SagePoison], which becomes more powerful the more weapons are summoned
|
||||
When all minion slots are full, <left> again to spin up a flurry of slashes aimed at your cursor
|
||||
This ability has a five-second cooldown that requires holding this item
|
||||
Shift-<right> this item in your inventory to change the rotation direction
|
||||
|
||||
@@ -34,6 +34,7 @@ namespace CalamityMod.Projectiles.Boss
|
||||
Projectile.Opacity = 0f;
|
||||
CooldownSlot = ImmunityCooldownID.Bosses;
|
||||
Projectile.timeLeft = timeLeft;
|
||||
Projectile.Calamity().DealsDefenseDamage = true;
|
||||
}
|
||||
|
||||
public override void SendExtraAI(BinaryWriter writer)
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.Audio;
|
||||
using Terraria.ID;
|
||||
@@ -50,6 +51,10 @@ namespace CalamityMod.Projectiles.Typeless
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<Dragonfire>(), 300);
|
||||
}
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
SoundEngine.PlaySound(SoundID.Item14, Projectile.position);
|
||||
|
||||
Reference in new issue
Block a user