Hell's sun nerf, Emyrean armor changes, CannotProc exists, the DragonShit speed buff that got eaten in the merge and WIP Elemental Disk nerfs
This commit is contained in:
1 parent
b6c2debbce
commit
aaec2dfd44
5 files changed
+80
-76
No files matched your search
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Buffs.StatBuffs;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
@@ -68,8 +69,8 @@ namespace CalamityMod.Items.Armor.Empyrean
|
||||
player.setBonus = this.GetLocalizedValue("SetBonus");
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
{
|
||||
player.AddBuff(BuffID.Wrath, 2);
|
||||
player.AddBuff(BuffID.Rage, 2);
|
||||
player.AddBuff(ModContent.BuffType<EmpyreanWrath>(), 2);
|
||||
player.AddBuff(ModContent.BuffType<EmpyreanRage>(), 2);
|
||||
}
|
||||
player.GetDamage<ThrowingDamageClass>() += 0.09f;
|
||||
modPlayer.rogueVelocity += 0.09f;
|
||||
|
||||
@@ -11,6 +11,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
[LegacyName("AccretionDisk")]
|
||||
public class ElementalDisk : RogueWeapon
|
||||
{
|
||||
public static int stealthTimeMult = 2;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.width = 38;
|
||||
@@ -18,20 +19,20 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
Item.autoReuse = true;
|
||||
Item.useAnimation = 15;
|
||||
Item.useAnimation = 16;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.useTime = 15;
|
||||
Item.useTime = 16;
|
||||
Item.knockBack = 9f;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
Item.height = 38;
|
||||
Item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
Item.shoot = ModContent.ProjectileType<ElementalDiskProj>();
|
||||
Item.shootSpeed = 13f;
|
||||
Item.shootSpeed = 15f;
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
}
|
||||
|
||||
public override float StealthVelocityMultiplier => 0.7f;
|
||||
public override float StealthVelocityMultiplier => 0.8f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
@@ -41,7 +42,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[proj].Calamity().stealthStrike = true;
|
||||
Main.projectile[proj].timeLeft *= 3;
|
||||
Main.projectile[proj].timeLeft *= stealthTimeMult;
|
||||
Main.projectile[proj].localNPCHitCooldown *= 2;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -11,13 +11,9 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class HellsSun : RogueWeapon
|
||||
{
|
||||
private static int damage = 240;
|
||||
private static int knockBack = 5;
|
||||
private static float SdamageMult = 0.12f;
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
Item.damage = damage;
|
||||
Item.damage = 200;
|
||||
Item.DamageType = RogueDamageClass.Instance;
|
||||
Item.noMelee = true;
|
||||
Item.noUseGraphic = true;
|
||||
@@ -26,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
Item.useTime = 15;
|
||||
Item.useAnimation = 15;
|
||||
Item.useStyle = ItemUseStyleID.Swing;
|
||||
Item.knockBack = knockBack;
|
||||
Item.knockBack = 5;
|
||||
Item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
Item.rare = ItemRarityID.Purple;
|
||||
Item.UseSound = SoundID.Item1;
|
||||
@@ -50,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
}
|
||||
}
|
||||
|
||||
public override float StealthDamageMultiplier => SdamageMult;
|
||||
public override float StealthDamageMultiplier => 0.10f;
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
|
||||
@@ -110,6 +110,7 @@ namespace CalamityMod.Projectiles
|
||||
public int stealthStrikeHitCount = 0;
|
||||
public bool extorterBoost = false;
|
||||
public bool LocketClone = false;
|
||||
public bool CannotProc = false;
|
||||
|
||||
// Note: Although this was intended for fishing line colors, I use this as an AI variable a lot because vanilla only has 4 that sometimes are already in use. ~Ben
|
||||
// TODO -- uses of this variable are undocumented and unstable. Remove it from the API surface.
|
||||
@@ -2412,71 +2413,74 @@ namespace CalamityMod.Projectiles
|
||||
|
||||
if (projectile.CountsAsClass<RogueDamageClass>())
|
||||
{
|
||||
if (modPlayer.nanotech)
|
||||
if (!LocketClone && !CannotProc)
|
||||
{
|
||||
if (Main.player[projectile.owner].miscCounter % 30 == 0 && projectile.FinalExtraUpdate())
|
||||
if (modPlayer.nanotech)
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<NanotechProjectile>()] < 5)
|
||||
if (Main.player[projectile.owner].miscCounter % 30 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(60);
|
||||
if (modPlayer.oldFashioned)
|
||||
damage = (int)(damage * OldFashioned.AccessoryAndSetBonusDamageMultiplier);
|
||||
|
||||
Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType<NanotechProjectile>(), damage, 0f, projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
else if (modPlayer.moonCrown)
|
||||
{
|
||||
if (Main.player[projectile.owner].miscCounter % 120 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<MoonSigil>()] < 5)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(45);
|
||||
if (modPlayer.oldFashioned)
|
||||
damage = (int)(damage * OldFashioned.AccessoryAndSetBonusDamageMultiplier);
|
||||
|
||||
int proj = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType<MoonSigil>(), damage, 0f, projectile.owner);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.dragonScales)
|
||||
{
|
||||
if (Main.player[projectile.owner].miscCounter % 50 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<DragonShit>()] < 5)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(DragonScales.ShitBaseDamage);
|
||||
if (modPlayer.oldFashioned)
|
||||
damage = (int)(damage * OldFashioned.AccessoryAndSetBonusDamageMultiplier);
|
||||
|
||||
int proj = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi)*1.2f, ProjectileType<DragonShit>(), damage, 0f, projectile.owner);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<NanotechProjectile>()] < 5)
|
||||
{
|
||||
Main.projectile[proj].DamageType = DamageClass.Generic;
|
||||
Main.projectile[proj].ArmorPenetration = 10;
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(60);
|
||||
if (modPlayer.oldFashioned)
|
||||
damage = (int)(damage * OldFashioned.AccessoryAndSetBonusDamageMultiplier);
|
||||
|
||||
Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType<NanotechProjectile>(), damage, 0f, projectile.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.daedalusSplit)
|
||||
{
|
||||
if (Main.player[projectile.owner].miscCounter % 30 == 0 && projectile.FinalExtraUpdate())
|
||||
else if (modPlayer.moonCrown)
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileID.CrystalShard] < 15)
|
||||
if (Main.player[projectile.owner].miscCounter % 120 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
// Daedalus Rogue Crystals: 2 x 25%, soft cap starts at 120 base damage
|
||||
int crystalDamage = CalamityUtils.DamageSoftCap(projectile.damage * 0.25, 30);
|
||||
for (int i = 0; i < 2; i++)
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<MoonSigil>()] < 5)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
int shard = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, velocity, ProjectileID.CrystalShard, crystalDamage, 0f, projectile.owner);
|
||||
if (shard.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[shard].DamageType = DamageClass.Generic;
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(45);
|
||||
if (modPlayer.oldFashioned)
|
||||
damage = (int)(damage * OldFashioned.AccessoryAndSetBonusDamageMultiplier);
|
||||
|
||||
int proj = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.Zero, ProjectileType<MoonSigil>(), damage, 0f, projectile.owner);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[proj].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.dragonScales)
|
||||
{
|
||||
if (Main.player[projectile.owner].miscCounter % 50 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileType<DragonShit>()] < 5)
|
||||
{
|
||||
int damage = (int)player.GetTotalDamage<RogueDamageClass>().ApplyTo(DragonScales.ShitBaseDamage);
|
||||
if (modPlayer.oldFashioned)
|
||||
damage = (int)(damage * OldFashioned.AccessoryAndSetBonusDamageMultiplier);
|
||||
|
||||
int proj = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, Vector2.One.RotatedByRandom(MathHelper.TwoPi) * 1.2f, ProjectileType<DragonShit>(), damage, 0f, projectile.owner);
|
||||
if (proj.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[proj].DamageType = DamageClass.Generic;
|
||||
Main.projectile[proj].ArmorPenetration = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (modPlayer.daedalusSplit)
|
||||
{
|
||||
if (Main.player[projectile.owner].miscCounter % 30 == 0 && projectile.FinalExtraUpdate())
|
||||
{
|
||||
if (projectile.owner == Main.myPlayer && player.ownedProjectileCounts[ProjectileID.CrystalShard] < 15)
|
||||
{
|
||||
// Daedalus Rogue Crystals: 2 x 25%, soft cap starts at 120 base damage
|
||||
int crystalDamage = CalamityUtils.DamageSoftCap(projectile.damage * 0.25, 30);
|
||||
for (int i = 0; i < 2; i++)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
int shard = Projectile.NewProjectile(projectile.GetSource_FromThis(), projectile.Center, velocity, ProjectileID.CrystalShard, crystalDamage, 0f, projectile.owner);
|
||||
if (shard.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[shard].DamageType = DamageClass.Generic;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
|
||||
namespace CalamityMod.Projectiles.Rogue
|
||||
{
|
||||
@@ -55,15 +56,15 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
}
|
||||
|
||||
// Returns after some number of frames in the air
|
||||
int timeMult = Projectile.Calamity().stealthStrike ? 3 : 1;
|
||||
int timeMult = Projectile.Calamity().stealthStrike ? ElementalDisk.stealthTimeMult : 1;
|
||||
if (Projectile.timeLeft < Lifetime * timeMult - ReboundTime * timeMult)
|
||||
Projectile.ai[0] = 1f;
|
||||
|
||||
if (Projectile.ai[0] == 1f)
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
float returnSpeed = 9f;
|
||||
float acceleration = 0.4f;
|
||||
float returnSpeed = 10f;
|
||||
float acceleration = 0.5f;
|
||||
Vector2 playerVec = player.Center - Projectile.Center;
|
||||
float dist = playerVec.Length();
|
||||
|
||||
@@ -140,7 +141,7 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
if (Main.player[Projectile.owner].miscCounter % counter == 0)
|
||||
{
|
||||
int splitProj = ModContent.ProjectileType<ElementalDiskSplit>();
|
||||
if (Projectile.owner == Main.myPlayer && Main.player[Projectile.owner].ownedProjectileCounts[splitProj] < 25)
|
||||
if (Projectile.owner == Main.myPlayer && Main.player[Projectile.owner].ownedProjectileCounts[splitProj] < 20)
|
||||
{
|
||||
float spread = 45f * 0.0174f;
|
||||
double startAngle = Math.Atan2(Projectile.velocity.X, Projectile.velocity.Y) - spread / 2;
|
||||
@@ -153,9 +154,10 @@ namespace CalamityMod.Projectiles.Rogue
|
||||
int disk2 = Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center.X, Projectile.Center.Y, (float)(-Math.Sin(offsetAngle) * 5f), (float)(-Math.Cos(offsetAngle) * 5f), splitProj, Projectile.damage, Projectile.knockBack, Projectile.owner);
|
||||
if (Projectile.Calamity().stealthStrike)
|
||||
{
|
||||
Main.projectile[disk].idStaticNPCHitCooldown = Main.projectile[disk2].idStaticNPCHitCooldown = 6;
|
||||
Main.projectile[disk].idStaticNPCHitCooldown = Main.projectile[disk2].idStaticNPCHitCooldown = 8;
|
||||
Main.projectile[disk].usesIDStaticNPCImmunity = Main.projectile[disk2].usesIDStaticNPCImmunity = true;
|
||||
Main.projectile[disk].timeLeft = Main.projectile[disk2].timeLeft = 90;
|
||||
Main.projectile[disk].timeLeft = Main.projectile[disk2].timeLeft = 60;
|
||||
Main.projectile[disk].Calamity().CannotProc = Main.projectile[disk2].Calamity().CannotProc = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user