acid round nerfs and hadopelagic tweaks v2
This commit is contained in:
1 parent
df36c62e4b
commit
182ced3402
4 files changed
+17
-6
No files matched your search
@@ -76,6 +76,7 @@ namespace CalamityMod.CalPlayer
|
||||
public int deathModeBlizzardTime = 0;
|
||||
public bool killSpikyBalls = false;
|
||||
public Projectile lastProjectileHit;
|
||||
public double acidRoundMultiplier = 1D;
|
||||
|
||||
// Stat Meter
|
||||
public int[] damageStats = new int[5];
|
||||
@@ -1499,6 +1500,7 @@ namespace CalamityMod.CalPlayer
|
||||
bossRushImmunityFrameCurseTimer = 0;
|
||||
aBulwarkRareMeleeBoostTimer = 0;
|
||||
theBeeDamage = 0;
|
||||
acidRoundMultiplier = 1D;
|
||||
reforges = 0;
|
||||
polarisBoostCounter = 0;
|
||||
spectralVeilImmunity = 0;
|
||||
@@ -3400,6 +3402,15 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
theBeeDamage = 0;
|
||||
}
|
||||
|
||||
if (item.ranged)
|
||||
{
|
||||
acidRoundMultiplier = (double)(item.useTime) / 20D;
|
||||
}
|
||||
else
|
||||
{
|
||||
acidRoundMultiplier = 1D;
|
||||
}
|
||||
}
|
||||
public override void GetWeaponKnockback(Item item, ref float knockback)
|
||||
{
|
||||
@@ -4885,7 +4896,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (proj.type == ModContent.ProjectileType<AcidBulletProj>())
|
||||
{
|
||||
int defenseAdd = (int)((double)target.defense * 0.1 * ((double)damage / 50.0)); //100 defense * 0.1 = 10
|
||||
int defenseAdd = (int)((double)target.defense * 0.05 * ((double)proj.damage / 50.0) * acidRoundMultiplier); //100 defense * 0.05 = 5
|
||||
damage += defenseAdd;
|
||||
}
|
||||
if (uberBees && (proj.type == ProjectileID.GiantBee || proj.type == ProjectileID.Bee || proj.type == ProjectileID.Wasp || proj.type == ModContent.ProjectileType<PlaguenadeBee>()))
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 28;
|
||||
item.damage = 20;
|
||||
item.ranged = true;
|
||||
item.width = 8;
|
||||
item.height = 8;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
DisplayName.SetDefault("Lacerator");
|
||||
Tooltip.SetDefault("Enemies that are hit by the yoyo will have their life drained\n" +
|
||||
"A very agile yoyo\n"
|
||||
"A very agile yoyo\n" +
|
||||
"Someone thought this was a viable weapon against DoG at one point lol");
|
||||
ItemID.Sets.Yoyo[item.type] = true;
|
||||
ItemID.Sets.GamepadExtraRange[item.type] = 15;
|
||||
|
||||
@@ -79,12 +79,12 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
|
||||
{
|
||||
damage = (int)(((double)damage * (double)projectile.localAI[0]) / (projectile.penetrate / 2));
|
||||
damage = (int)(((double)damage * (double)projectile.localAI[0]) * (0.5D + (0.5D / (double)projectile.penetrate)));
|
||||
}
|
||||
|
||||
public override void ModifyHitPvp(Player target, ref int damage, ref bool crit)
|
||||
{
|
||||
damage = (int)(((double)damage * (double)projectile.localAI[0]) / (projectile.penetrate / 2));
|
||||
damage = (int)(((double)damage * (double)projectile.localAI[0]) * (0.5D + (0.5D / (double)projectile.penetrate)));
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
|
||||
@@ -94,7 +94,7 @@ namespace CalamityMod.Projectiles.Magic
|
||||
target.AddBuff(BuffID.Electrified, 600);
|
||||
projectile.velocity *= 0.85f;
|
||||
|
||||
if (echoCooldown == 0)
|
||||
if (echoCooldown <= 0)
|
||||
{
|
||||
echoCooldown = 60;
|
||||
int echoID = ModContent.ProjectileType<HadopelagicEcho2>();
|
||||
|
||||
Reference in new issue
Block a user