Effervescence update + balance

This commit is contained in:
mochi-angel committed 2024-08-19 01:42:44 -07:00
1 parent 26cb93016c
commit c0aa5bfc86
18 files changed
+76 -22

No files matched your search

+4 -4
View File
@@ -335,11 +335,11 @@ namespace CalamityMod.Balancing
#endregion
#region The Devourer of Gods
// 80% resist to Wave Pounder.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.2f, ProjectileType<WavePounderBoom>()))));
// 65% resist to Wave Pounder.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.35f, ProjectileType<WavePounderBoom>()))));
// 50% resist to Eidolic Wail.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.5f, ProjectileType<EidolicWailSoundwave>()))));
// 35% resist to Venusian Trident.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.65f, ProjectileType<VenusianBolt>()))));
// 25% resist to Corinth Prime's Grenades.
NPCSpecificBalancingChanges.AddRange(Bundle(CalamityLists.DevourerOfGodsIDs, Do(new ProjectileResistBalancingRule(0.75f, ProjectileType<CorinthPrimeAirburst>()))));
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 28;
Item.height = 30;
Item.damage = 51;
Item.damage = 54;
Item.DamageType = DamageClass.Magic;
Item.mana = 15;
Item.useTime = 8;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 62;
Item.height = 60;
Item.damage = 115;
Item.damage = 188;
Item.DamageType = DamageClass.Magic;
Item.mana = 60;
Item.useTime = 3;
+1 -1
View File
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 130;
Item.height = 130;
Item.damage = 96;
Item.damage = 92;
Item.DamageType = DamageClass.Melee;
Item.useAnimation = 30;
Item.useStyle = ItemUseStyleID.Swing;
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
{
Item.width = 66;
Item.height = 70;
Item.damage = 417;
Item.damage = 295;
Item.DamageType = DamageClass.MeleeNoSpeed;
Item.noMelee = true;
Item.useTurn = true;
+1 -1
View File
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 46;
Item.height = 24;
Item.damage = 1272;
Item.damage = 1303;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 30;
Item.useAnimation = 30;
+2 -2
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
Item.width = 48;
Item.height = 48;
Item.damage = 97;
Item.damage = 111;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useAnimation = 17;
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.DamageType = RogueDamageClass.Instance;
}
public override float StealthDamageMultiplier => 0.7f;
public override float StealthDamageMultiplier => 0.5f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
+1 -1
View File
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.DamageType = RogueDamageClass.Instance;
}
public override float StealthDamageMultiplier => 0.3f;
public override float StealthDamageMultiplier => 0.26f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
+2 -2
View File
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
Item.width = 106;
Item.height = 104;
Item.damage = 1280;
Item.damage = 1150;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useAnimation = 53;
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Rogue
Item.rare = ModContent.RarityType<PureGreen>();
}
//public override float StealthDamageMultiplier => 0.45f;
public override float StealthDamageMultiplier => 0.65f;
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
{
+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Weapons.Rogue
{
Item.width = 42;
Item.height = 46;
Item.damage = 150;
Item.damage = 135;
Item.noMelee = true;
Item.noUseGraphic = true;
Item.useAnimation = Item.useTime = 50;
@@ -1178,8 +1178,8 @@ StarofDestruction: {
'''
Throws a fan of cosmic bolts that meld together into a star of destruction
The explosive star will slowly follow your cursor until it expires or hits an enemy
Upon running out of time, the star will burst into a huge explosion that deals increased damage
Stealth strikes throw additional bolts that converge into faster star that can pierce, exploding on every hit
Upon running out of time, the star will burst into a huge explosion that deals increased damage
'''
}
+33 -1
View File
@@ -1,4 +1,6 @@
using Microsoft.Xna.Framework;
using CalamityMod.Particles;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using Terraria;
using Terraria.Audio;
using Terraria.ID;
@@ -9,6 +11,12 @@ namespace CalamityMod.Projectiles.Magic
public class BlueBubble : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Magic";
public Color mainColor;
public override void SetStaticDefaults()
{
ProjectileID.Sets.TrailCacheLength[Projectile.type] = 12;
ProjectileID.Sets.TrailingMode[Projectile.type] = 2;
}
public override void SetDefaults()
{
Projectile.width = 10;
@@ -47,12 +55,36 @@ namespace CalamityMod.Projectiles.Magic
Projectile.rotation = Projectile.velocity.ToRotation() - MathHelper.PiOver2;
if (Projectile.timeLeft < 90)
{
CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 400f, 8f, 20f);
if (Main.rand.NextBool(10))
{
Dust trailDust = Dust.NewDustPerfect(Projectile.Center + Main.rand.NextVector2Circular(5, 5) - Projectile.velocity, 66);
trailDust.scale = Main.rand.NextFloat(0.7f, 0.85f);
trailDust.velocity = -Projectile.velocity * Main.rand.NextFloat(0.3f, 0.5f);
trailDust.color = Main.rand.NextBool() ? Color.AliceBlue : Color.SkyBlue;
trailDust.noGravity = true;
}
}
}
public override bool PreDraw(ref Color lightColor)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Magic/BlueBubble").Value;
Vector2 drawPosition = Projectile.Center - Main.screenPosition;
Color drawColor = Color.Lerp(mainColor, Color.White, 0.2f) with { A = 0 };
float drawRotation = Projectile.rotation;
Vector2 rotationPoint = texture.Size() * 0.5f;
CalamityUtils.DrawAfterimagesCentered(Projectile, ProjectileID.Sets.TrailingMode[Projectile.type], drawColor, 1, texture, true, true);
Main.EntitySpriteDraw(texture, drawPosition, null, drawColor, drawRotation, rotationPoint, Projectile.scale, SpriteEffects.None);
return false;
}
public override void OnKill(int timeLeft)
{
SoundEngine.PlaySound(SoundID.Item54, Projectile.Center);
Particle Star = new CritSpark(Projectile.Center, Vector2.Zero, Color.SkyBlue, Color.DeepSkyBlue, Main.rand.NextFloat(1f, 1.1f), 30, 0.1f, 3f);
GeneralParticleHandler.SpawnParticle(Star);
int num190 = Main.rand.Next(5, 9);
for (int i = 0; i < num190; i++)
{
+22
View File
@@ -3,11 +3,14 @@ using Terraria;
using Terraria.Audio;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.Particles;
using CalamityMod.Dusts;
namespace CalamityMod.Projectiles.Magic
{
public class UberBubble : ModProjectile, ILocalizedModType
{
public new string LocalizationCategory => "Projectiles.Magic";
public Color EffectsColor;
public override void SetDefaults()
{
Projectile.width = 10;
@@ -40,11 +43,30 @@ namespace CalamityMod.Projectiles.Magic
rotationClamp -= -MathHelper.TwoPi;
Projectile.rotation = Projectile.velocity.ToRotation() - MathHelper.PiOver2;
if (Projectile.timeLeft == 26) // Firing effects, we set them on this frame so it comes out of the tip
{
for (int i = 0; i <= 10; i++)
{
Dust dust = Dust.NewDustPerfect(Projectile.Center, Main.rand.NextBool(5) ? DustID.HallowSpray : DustID.GemAmethyst, Projectile.velocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.3f, 0.5f));
dust.noGravity = true;
dust.scale = Main.rand.NextFloat(0.85f, 1.4f);
}
for (int i = 0; i <= 2; i++)
{
SquishyLightParticle energy = new(Projectile.Center, Projectile.velocity.RotatedByRandom(0.5f) * Main.rand.NextFloat(0.2f, 0.4f), Main.rand.NextFloat(0.2f, 0.4f), Color.Purple, Main.rand.Next(0, 40 + 1), 0.25f, 2f);
GeneralParticleHandler.SpawnParticle(energy);
}
}
}
public override void OnKill(int timeLeft)
{
SoundEngine.PlaySound(SoundID.Item96, Projectile.Center);
Particle Star = new GenericSparkle(Projectile.Center, Vector2.Zero, Color.Purple, Color.PeachPuff, Main.rand.NextFloat(0.5f, 0.6f), 30, 0.1f, 3f);
GeneralParticleHandler.SpawnParticle(Star);
Star = new GenericSparkle(Projectile.Center + Projectile.velocity, Vector2.Zero, Color.MediumPurple, Color.LightPink, Main.rand.NextFloat(0.5f, 0.6f), 20, 0.1f, 3f);
GeneralParticleHandler.SpawnParticle(Star);
int randDustAmt = Main.rand.Next(4, 6);
for (int i = 0; i < randDustAmt; i++)
{
+1 -1
View File
@@ -76,7 +76,7 @@ namespace CalamityMod.Projectiles.Ranged
Player Owner = Main.player[Projectile.owner];
float targetDist = Vector2.Distance(Owner.Center, Projectile.Center);
bool pullCheckValid = ((chosenTarget != null && chosenTarget.life < Projectile.damage * 15f && Projectile.ai[2] != 5 && chosenTarget.CanBeMoved(true)) || Main.zenithWorld);
bool pullCheckValid = ((chosenTarget != null && chosenTarget.life < Projectile.damage * 10f && Projectile.ai[2] != 5 && chosenTarget.CanBeMoved(true)) || Main.zenithWorld);
if (Projectile.ai[2] == 5)
{
+1 -1
View File
@@ -260,7 +260,7 @@ namespace CalamityMod.Projectiles.Rogue
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
{
if (Projectile.numHits > 0)
Projectile.damage = (int)(Projectile.damage * 0.88f);
Projectile.damage = (int)(Projectile.damage * 0.83f);
if (Projectile.damage < 1)
Projectile.damage = 1;
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Projectiles.Rogue
Projectile.height = 10;
Projectile.friendly = true;
Projectile.tileCollide = false;
Projectile.penetrate = 3;
Projectile.penetrate = 1;
Projectile.timeLeft = 120;
Projectile.DamageType = RogueDamageClass.Instance;
Projectile.usesLocalNPCImmunity = true;
+1 -1
View File
@@ -54,7 +54,7 @@ namespace CalamityMod.Projectiles.Rogue
}
if (Projectile.timeLeft % 30 == 0)
{
Projectile dustProjectile = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedByRandom(0.1f) * -0.6f, ModContent.ProjectileType<ToxicantTwisterDust>(), (int)(Projectile.damage * 0.5), 0f, Projectile.owner, 0, 0, Projectile.ai[2]);
Projectile dustProjectile = Projectile.NewProjectileDirect(Projectile.GetSource_FromThis(), Projectile.Center, Projectile.velocity.RotatedByRandom(0.1f) * -0.6f, ModContent.ProjectileType<ToxicantTwisterDust>(), (int)(Projectile.damage * 0.4), 0f, Projectile.owner, 0, 0, Projectile.ai[2]);
dustProjectile.timeLeft = 240;
}
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Projectiles.Typeless
Projectile.height = 6;
Projectile.friendly = true;
Projectile.alpha = 255;
Projectile.penetrate = -1;
Projectile.penetrate = 1;
Projectile.extraUpdates = 1;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = 6;