Merge pull request #294 from CalamityTeam/balancing-yet-again

Balancing yet again
This commit is contained in:
mountaindrew10 authored and GitHub committed 2021-05-23 05:03:09 -05:00
commit 3c64e0a5c6
34 files changed
+79 -92

No files matched your search

+1 -1
View File
@@ -564,7 +564,7 @@ namespace CalamityMod.CalPlayer
int flare = Projectile.NewProjectile(source, velocity, ProjectileID.LunarFlare, (int)(60 * player.RogueDamage()), 3, proj.owner);
if (flare.WithinBounds(Main.maxProjectiles))
Main.projectile[flare].Calamity().forceTypeless = true;
modPlayer.moonCrownCooldown = 15;
modPlayer.moonCrownCooldown = 60;
}
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
{
public class TeslaCannon : ModItem
{
private int BaseDamage = 1060;
private int BaseDamage = 1050;
public override void SetStaticDefaults()
{
+3 -4
View File
@@ -20,13 +20,12 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 112;
item.damage = 130;
item.magic = true;
item.mana = 5;
item.width = 84;
item.height = 74;
item.useTime = 3;
item.useAnimation = 3;
item.useTime = item.useAnimation = 4;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 1.5f;
@@ -47,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
if (player.altFunctionUse == 2)
{
Projectile.NewProjectile(position.X, position.Y, speedX * 1.35f, speedY * 1.35f, ModContent.ProjectileType<BigBeamofDeath>(), (int)(damage * 1.75), knockBack, player.whoAmI, 0f, 0f);
Projectile.NewProjectile(position.X, position.Y, speedX * 1.35f, speedY * 1.35f, ModContent.ProjectileType<BigBeamofDeath>(), (int)(damage * 1.6625), knockBack, player.whoAmI, 0f, 0f);
}
else
{
+2 -3
View File
@@ -22,14 +22,13 @@ namespace CalamityMod.Items.Weapons.Magic
item.width = 28;
item.height = 30;
item.damage = 130;
item.damage = 275;
item.knockBack = 3.5f;
item.noMelee = true;
item.magic = true;
item.mana = 12;
item.useTime = 28;
item.useAnimation = 28;
item.useTime = item.useAnimation = 32;
item.useStyle = ItemUseStyleID.HoldingOut;
item.autoReuse = true;
+4 -10
View File
@@ -39,17 +39,11 @@ namespace CalamityMod.Items.Weapons.Magic
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
int totalBeads = 2;
for (int index = 0; index < totalBeads; index++)
{
float SpeedX = speedX + (float)Main.rand.Next(-50, 51) * 0.05f;
float SpeedY = speedY + (float)Main.rand.Next(-50, 51) * 0.05f;
Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)(double)damage, knockBack, player.whoAmI, 0.0f, 0.0f);
}
Vector2 beadVelocity = new Vector2(speedX, speedY) + Main.rand.NextVector2Square(-2.5f, 2.5f);
Projectile.NewProjectile(position, beadVelocity, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f);
if (Main.rand.NextBool(3))
{
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<LightBall>(), (int)((double)damage * 2.0), knockBack, player.whoAmI, 0.0f, 0.0f);
}
Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<LightBall>(), damage * 2, knockBack, player.whoAmI, 0f, 0f);
return false;
}
+2 -3
View File
@@ -19,13 +19,12 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetDefaults()
{
item.damage = 128;
item.damage = 115;
item.magic = true;
item.mana = 19;
item.width = 64;
item.height = 64;
item.useTime = 20;
item.useAnimation = 20;
item.useTime = item.useAnimation = 25;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 8f;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 3200;
item.damage = 3520;
item.ranged = true;
item.width = 76;
item.height = 30;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 275;
item.damage = 225;
item.ranged = true;
item.width = 40;
item.height = 82;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged
item.width = 94;
item.height = 44;
item.ranged = true;
item.damage = 1040;
item.damage = 900;
item.knockBack = 12f;
item.useTime = 52;
item.useAnimation = 52;
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 90;
item.damage = 110;
item.ranged = true;
item.width = 46;
item.height = 78;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 520;
item.damage = 442;
item.knockBack = 15f;
item.shootSpeed = 30f;
item.useStyle = ItemUseStyleID.HoldingOut;
+3 -4
View File
@@ -24,8 +24,7 @@ namespace CalamityMod.Items.Weapons.Ranged
item.ranged = true;
item.width = 84;
item.height = 34;
item.useTime = 9;
item.useAnimation = 9;
item.useTime = item.useAnimation = 7;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 4.5f;
@@ -49,8 +48,8 @@ namespace CalamityMod.Items.Weapons.Ranged
Vector2 velocity = new Vector2(speedX, speedY);
// Fire the Onyx Shard that is characteristic of the Onyx Blaster
// The shard deals 250% damage and double knockback
int shardDamage = (int)(2.5f * damage);
// The shard deals 145% damage and double knockback
int shardDamage = (int)(1.45f * damage);
float shardKB = 2f * knockBack;
Projectile shard = Projectile.NewProjectileDirect(position, velocity, ProjectileID.BlackBolt, shardDamage, shardKB, player.whoAmI, 0f, 0f);
shard.timeLeft = (int)(shard.timeLeft * 1.4f);
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 1280;
item.damage = 1178;
item.ranged = true;
item.knockBack = 10f;
item.useTime = 30;
+1 -1
View File
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 112;
item.damage = 100;
item.ranged = true;
item.width = 74;
item.height = 34;
+2 -2
View File
@@ -23,11 +23,11 @@ namespace CalamityMod.Items.Weapons.Ranged
public override void SetDefaults()
{
item.damage = 58;
item.damage = 85;
item.ranged = true;
item.width = 44;
item.height = 58;
item.useTime = item.useAnimation = 3;
item.useTime = item.useAnimation = 8;
item.useStyle = ItemUseStyleID.HoldingOut;
item.noMelee = true;
item.knockBack = 2f;
+2
View File
@@ -42,7 +42,9 @@ namespace CalamityMod.Items.Weapons.Rogue
if (player.Calamity().StealthStrikeAvailable())
{
type = ModContent.ProjectileType<EclipsesStealth>();
damage = (int)(damage * 0.6);
}
int proj = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
if (proj.WithinBounds(Main.maxProjectiles))
Main.projectile[proj].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override void SafeSetDefaults()
{
item.width = 38;
item.damage = 270;
item.damage = 257;
item.noMelee = true;
item.noUseGraphic = true;
item.autoReuse = true;
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
public class GodsParanoia : RogueWeapon
{
private static int damage = 70;
private static int damage = 91;
private static int knockBack = 5;
public override void SetStaticDefaults()
+5 -7
View File
@@ -9,8 +9,6 @@ namespace CalamityMod.Items.Weapons.Rogue
{
public class Hypothermia : RogueWeapon
{
private int counter = 0;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Hypothermia");
@@ -30,7 +28,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.value = Item.buyPrice(1, 80, 0, 0);
item.rare = ItemRarityID.Red;
item.damage = 216;
item.damage = 195;
item.useAnimation = 21;
item.useTime = 3;
item.reuseDelay = 1;
@@ -47,7 +45,10 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
if (player.Calamity().StealthStrikeAvailable() && counter == 0) //setting up the stealth strikes
if (player.Calamity().StealthStrikeAvailable())
damage = (int)(damage * 1.55);
if (player.Calamity().StealthStrikeAvailable() && player.itemAnimation == item.useAnimation - 1) //setting up the stealth strikes
{
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<HypothermiaChunk>(), damage, knockBack, player.whoAmI);
if (stealth.WithinBounds(Main.maxProjectiles))
@@ -61,9 +62,6 @@ namespace CalamityMod.Items.Weapons.Rogue
Projectile.NewProjectile(position, new Vector2(SpeedX, SpeedY), type, damage, knockBack, player.whoAmI, Main.rand.Next(4), 0f);
}
counter++;
if (counter >= item.useAnimation / item.useTime)
counter = 0;
return false;
}
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue
item.value = Item.buyPrice(1, 80, 0, 0);
item.rare = ItemRarityID.Red;
item.damage = 1008;
item.damage = 983;
item.useAnimation = 40;
item.useTime = 40;
item.knockBack = 8f;
+2
View File
@@ -42,6 +42,8 @@ namespace CalamityMod.Items.Weapons.Rogue
{
if (player.Calamity().StealthStrikeAvailable()) //setting the stealth strike
{
damage = (int)(damage * 0.8);
int spread = 10;
for (int i = 0; i < 4; i++)
{
+1 -2
View File
@@ -38,8 +38,7 @@ namespace CalamityMod.Items.Weapons.Rogue
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
{
double stealthMult = player.Calamity().StealthStrikeAvailable() ? 1.3333 : 1D;
int boomer = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, (int)(damage * stealthMult), knockBack, player.whoAmI);
int boomer = Projectile.NewProjectile(position, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
if (boomer.WithinBounds(Main.maxProjectiles))
Main.projectile[boomer].Calamity().stealthStrike = player.Calamity().StealthStrikeAvailable();
return false;
+1 -1
View File
@@ -2945,7 +2945,7 @@ namespace CalamityMod.NPCs.Yharon
public override void ModifyHitByProjectile(Projectile projectile, ref int damage, ref float knockback, ref bool crit, ref int hitDirection)
{
if (projectile.type == ModContent.ProjectileType<ReaperProjectile>())
damage = (int)(damage * 0.7);
damage = (int)(damage * 0.65);
if (projectile.type == ModContent.ProjectileType<TimeBoltKnife>())
damage = (int)(damage * 0.85);
if (projectile.type == ModContent.ProjectileType<PhantasmalSoul>() || projectile.type == ModContent.ProjectileType<PhantasmalRuinProj>() || projectile.type == ModContent.ProjectileType<PhantasmalRuinGhost>())
+3 -3
View File
@@ -89,8 +89,8 @@ namespace CalamityMod.Projectiles.Magic
Vector2 center = projectile.Center;
float homingRange = 200f;
bool homeIn = false;
float inertia = 30f;
float homingVelocity = 20f;
float inertia = 25f;
float homingSpeed = 23f;
for (int i = 0; i < Main.maxNPCs; i++)
{
@@ -112,7 +112,7 @@ namespace CalamityMod.Projectiles.Magic
projectile.extraUpdates = 1;
Vector2 homeInVector = projectile.SafeDirectionTo(center, Vector2.UnitY);
projectile.velocity = (projectile.velocity * inertia + homeInVector * homingVelocity) / (inertia + 1f);
projectile.velocity = (projectile.velocity * inertia + homeInVector * homingSpeed) / (inertia + 1f);
}
else
projectile.extraUpdates = 0;
+10 -9
View File
@@ -1,6 +1,7 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
{
public class LightBead : ModProjectile
@@ -27,13 +28,14 @@ namespace CalamityMod.Projectiles.Magic
Lighting.AddLight(projectile.Center, 0.5f, 0.5f, 0.5f);
projectile.rotation += projectile.velocity.X * 0.2f;
projectile.ai[1] += 1f;
if (Main.rand.NextBool(3))
if (Main.rand.NextBool(5))
{
int num300 = Dust.NewDust(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 0, default, 1f);
Main.dust[num300].noGravity = true;
Main.dust[num300].velocity *= 0.5f;
Main.dust[num300].scale *= 0.9f;
Dust whiteMagic = Dust.NewDustDirect(projectile.position, projectile.width, projectile.height, 244, 0f, 0f, 0, default, 1f);
whiteMagic.noGravity = true;
whiteMagic.velocity *= 0.5f;
whiteMagic.scale *= 0.9f;
}
if (projectile.ai[1] > 300f)
{
projectile.scale -= 0.05f;
@@ -44,7 +46,7 @@ namespace CalamityMod.Projectiles.Magic
return;
}
}
CalamityGlobalProjectile.HomeInOnNPC(projectile, !projectile.tileCollide, 200f, 18f, 10f);
CalamityGlobalProjectile.HomeInOnNPC(projectile, !projectile.tileCollide, 200f, 15f, 15f);
}
public override Color? GetAlpha(Color lightColor)
@@ -54,10 +56,9 @@ namespace CalamityMod.Projectiles.Magic
public override void Kill(int timeLeft)
{
for (int k = 0; k < 6; k++)
{
for (int k = 0; k < 4; k++)
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, 244, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f);
}
int beadAmt = Main.rand.Next(2, 3);
if (projectile.owner == Main.myPlayer)
{
-1
View File
@@ -28,7 +28,6 @@ namespace CalamityMod.Projectiles.Magic
Lighting.AddLight(projectile.Center, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.5f / 255f, (255 - projectile.alpha) * 0.5f / 255f);
projectile.rotation += projectile.velocity.X * 0.2f;
projectile.velocity *= 0.985f;
}
public override void Kill(int timeLeft)
+3 -2
View File
@@ -15,12 +15,13 @@ namespace CalamityMod.Projectiles.Magic
projectile.height = 24;
projectile.friendly = true;
projectile.magic = true;
projectile.penetrate = 10;
projectile.timeLeft = 600;
projectile.penetrate = 2;
projectile.timeLeft = 300;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 5;
projectile.tileCollide = false;
projectile.ignoreWater = true;
projectile.Calamity().ResistDamagePenaltyHarshness = 1.65f;
}
public override void AI()
+3 -2
View File
@@ -15,12 +15,13 @@ namespace CalamityMod.Projectiles.Magic
projectile.height = 24;
projectile.friendly = true;
projectile.magic = true;
projectile.penetrate = 10;
projectile.timeLeft = 600;
projectile.penetrate = 2;
projectile.timeLeft = 300;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 7;
projectile.tileCollide = false;
projectile.ignoreWater = true;
projectile.Calamity().ResistDamagePenaltyHarshness = 1.65f;
}
public override void AI()
+5 -5
View File
@@ -27,12 +27,12 @@ namespace CalamityMod.Projectiles.Melee
projectile.friendly = true;
projectile.melee = true;
projectile.tileCollide = false;
projectile.penetrate = 10;
projectile.timeLeft = 300;
projectile.penetrate = 12;
projectile.extraUpdates = 1;
projectile.timeLeft = 135 * projectile.MaxUpdates;
projectile.ignoreWater = true;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 10;
projectile.extraUpdates = 1;
projectile.localNPCHitCooldown = projectile.MaxUpdates * 10;
}
public override void AI()
@@ -47,7 +47,7 @@ namespace CalamityMod.Projectiles.Melee
}
}
projectile.rotation += projectile.direction * 0.55f;
CalamityGlobalProjectile.HomeInOnNPC(projectile, true, 250f, 12f, 20f);
CalamityGlobalProjectile.HomeInOnNPC(projectile, true, 250f, 10f, 25f);
}
public override bool PreDraw(SpriteBatch spriteBatch, Color lightColor)
+1 -1
View File
@@ -11,7 +11,7 @@ namespace CalamityMod.Projectiles.Melee
{
public class GalileosPlanet : ModProjectile
{
private int radius = 47;
private int radius = 84;
public override void SetStaticDefaults()
{
+7 -1
View File
@@ -41,7 +41,13 @@ namespace CalamityMod.Projectiles.Ranged
if (!initialized && projectile.ranged) //Ranged check prevents quiver splits triggering the sound
{
initialized = true;
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LargeWeaponFire"), projectile.Center);
if (Main.netMode != NetmodeID.Server)
{
var sound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LargeWeaponFire");
sound = sound.WithVolume(sound.Volume * 0.45f);
Main.PlaySound(sound, projectile.Center);
}
}
}
+1 -1
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Ranged
vector63.Normalize();
vector63 *= Main.rand.Next(45, 65) * 0.1f;
vector63 = vector63.RotatedBy((Main.rand.NextDouble() - 0.5) * MathHelper.PiOver2);
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector63.X, vector63.Y, ModContent.ProjectileType<SepticSkewerBacteria>(), (int)(projectile.damage * 0.25), projectile.knockBack * 0.2f, projectile.owner, -10f, 0f);
Projectile.NewProjectile(projectile.Center.X, projectile.Center.Y, vector63.X, vector63.Y, ModContent.ProjectileType<SepticSkewerBacteria>(), (int)(projectile.damage * 0.175), projectile.knockBack * 0.2f, projectile.owner, -10f, 0f);
}
if (player.dead)
{
+2 -2
View File
@@ -24,9 +24,9 @@ namespace CalamityMod.Projectiles.Rogue
projectile.height = 70;
projectile.friendly = true;
projectile.tileCollide = false;
projectile.penetrate = 30;
projectile.timeLeft = 1080;
projectile.penetrate = -1;
projectile.extraUpdates = 3;
projectile.timeLeft = projectile.MaxUpdates * 90;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 32; // can't hit too fast, but can hit many many times
projectile.Calamity().rogue = true;
@@ -37,20 +37,16 @@ namespace CalamityMod.Projectiles.Rogue
{
if (projectile.Calamity().stealthStrike)
{
if (projectile.timeLeft % 20 == 0)
if (projectile.timeLeft % 20 == 0 && Main.myPlayer == projectile.owner)
{
for (int i = 0; i < 2; i++)
{
Projectile.NewProjectile(projectile.Center,
(-1f * projectile.velocity).RotatedByRandom(0.1f) * 0.6f,
ModContent.ProjectileType<ToxicantTwisterDust>(), projectile.damage, 0f, projectile.owner);
}
Projectile.NewProjectile(projectile.Center, projectile.velocity.RotatedByRandom(0.1f) * -0.6f, ModContent.ProjectileType<ToxicantTwisterDust>(), (int)(projectile.damage * 0.35), 0f, projectile.owner);
}
projectile.rotation += 0.06f * (projectile.velocity.X > 0).ToDirectionInt();
}
// Boomerang rotation
projectile.rotation += 0.4f * (float)projectile.direction;
projectile.rotation += 0.4f * projectile.direction;
// Boomerang sound
if (projectile.soundDelay == 0)
@@ -144,11 +140,7 @@ namespace CalamityMod.Projectiles.Rogue
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 180);
Main.PlaySound(SoundID.Item20, projectile.position);
for (int k = 0; k < 10; k++)
{
Dust.NewDust(projectile.position + projectile.velocity,
projectile.width, projectile.height, (int)CalamityDusts.SulfurousSeaAcid,
projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f);
}
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, (int)CalamityDusts.SulfurousSeaAcid, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f);
}
public override void OnHitPvp(Player target, int damage, bool crit)
@@ -157,11 +149,7 @@ namespace CalamityMod.Projectiles.Rogue
target.AddBuff(ModContent.BuffType<SulphuricPoisoning>(), 180);
Main.PlaySound(SoundID.Item20, projectile.position);
for (int k = 0; k < 10; k++)
{
Dust.NewDust(projectile.position + projectile.velocity,
projectile.width, projectile.height, (int)CalamityDusts.SulfurousSeaAcid,
projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f);
}
Dust.NewDust(projectile.position + projectile.velocity, projectile.width, projectile.height, (int)CalamityDusts.SulfurousSeaAcid, projectile.oldVelocity.X * 0.5f, projectile.oldVelocity.Y * 0.5f);
}
}
}