Fixed the close-up burst damage bug with yoyos
Some miscellaneous yoyo balancing, mainly to make yoyo iframes through progression make more sense
This commit is contained in:
1 parent
6a58977542
commit
663b75cff0
11 files changed
+26
-14
No files matched your search
@@ -286,6 +286,10 @@ namespace CalamityMod.CalPlayer
|
||||
target.AddBuff(BuffType<WhisperingDeath>(), 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.Cascade:
|
||||
target.AddBuff(BuffID.OnFire, 60);
|
||||
break;
|
||||
|
||||
case ProjectileID.Bee:
|
||||
case ProjectileID.GiantBee:
|
||||
case ProjectileID.BladeOfGrass:
|
||||
|
||||
@@ -61,7 +61,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Boomstick, Do(PointBlank, DamageExact(11)) },
|
||||
{ ItemID.BreakerBlade, Do(AutoReuse, UseTurn, DamageExact(97)) },
|
||||
{ ItemID.CandyCornRifle, Do(PointBlank, DamageExact(66)) },
|
||||
{ ItemID.Cascade, Do(AutoReuse, DamageExact(30)) },
|
||||
{ ItemID.Cascade, Do(AutoReuse, DamageExact(31)) },
|
||||
{ ItemID.ChainGuillotines, Do(DamageExact(100)) },
|
||||
{ ItemID.ChainGun, Do(PointBlank, DamageExact(35)) },
|
||||
{ ItemID.ChainKnife, Do(AutoReuse, DamageRatio(1.34f)) }, // Uses ratios due to remix seed
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.width = 30;
|
||||
Item.height = 26;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.damage = 130;
|
||||
Item.damage = 152;
|
||||
Item.knockBack = 7f;
|
||||
Item.useTime = 20;
|
||||
Item.useAnimation = 20;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.width = 36;
|
||||
Item.height = 38;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.damage = 26;
|
||||
Item.damage = 27;
|
||||
Item.knockBack = 3.5f;
|
||||
Item.useTime = 21;
|
||||
Item.useAnimation = 21;
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
Item.width = 58;
|
||||
Item.height = 50;
|
||||
Item.DamageType = DamageClass.MeleeNoSpeed;
|
||||
Item.damage = 205;
|
||||
Item.damage = 192;
|
||||
Item.knockBack = 4f;
|
||||
Item.useTime = 20;
|
||||
Item.useAnimation = 20;
|
||||
|
||||
@@ -270,6 +270,14 @@ namespace CalamityMod.Projectiles
|
||||
projectile.damage = (int)projectile.ai[2];
|
||||
}
|
||||
|
||||
// This code fixes the wacky close-up burst damage bug which occurs with double yoyos and local iframes.
|
||||
// Oh my good friends, do not ask me how or why this works, for I do not know!
|
||||
if (projectile.aiStyle == ProjAIStyleID.Yoyo)
|
||||
{
|
||||
if (projectile.ai[0] == -1)
|
||||
projectile.Kill();
|
||||
}
|
||||
|
||||
// Chlorophyte Crystal AI rework.
|
||||
if (projectile.type == ProjectileID.CrystalLeaf)
|
||||
return ChlorophyteCrystalAI.DoChlorophyteCrystalAI(projectile);
|
||||
|
||||
@@ -50,7 +50,7 @@ namespace CalamityMod.Projectiles
|
||||
{ ProjectileID.Amarok, RebalanceYoyo(-1f, 432f, 28f, 1, 12) },
|
||||
|
||||
// original: 13s lifetime | 235px range | 14px/f top speed | 0 extra updates
|
||||
{ ProjectileID.Cascade, RebalanceYoyo(30f, 384f, 28f, 1, 12) },
|
||||
{ ProjectileID.Cascade, RebalanceYoyo(30f, 384f, 28f, 1, 15) },
|
||||
|
||||
// original: 16s lifetime | 275px range | 17px/f top speed | 0 extra updates
|
||||
{ ProjectileID.Chik, RebalanceYoyo(-1f, 400f, 32f, 1, 12) },
|
||||
@@ -74,7 +74,7 @@ namespace CalamityMod.Projectiles
|
||||
{ ProjectileID.Gradient, RebalanceYoyo(-1f, 384f, 36f, 1, 12) },
|
||||
|
||||
// original: 12s lifetime | 275px range | 15px/f top speed | 0 extra updates
|
||||
{ ProjectileID.HelFire, RebalanceYoyo(-1f, 320f, 42f, 2, 12) },
|
||||
{ ProjectileID.HelFire, RebalanceYoyo(-1f, 368f, 42f, 2, 12) },
|
||||
|
||||
// original: 11s lifetime | 225px range | 14px/f top speed | 0 extra updates
|
||||
{ ProjectileID.HiveFive, RebalanceYoyo(24f, 320f, 20f, 0, 15) },
|
||||
@@ -103,7 +103,7 @@ namespace CalamityMod.Projectiles
|
||||
{ ProjectileID.ValkyrieYoyo, RebalanceYoyo(-1f, 480f, 42f, 2, 12) },
|
||||
|
||||
// original: 11s lifetime | 225px range | 14px/f top speed | 0 extra updates
|
||||
{ ProjectileID.Valor, RebalanceYoyo(30f, 400f, 36f, 1, 12) },
|
||||
{ ProjectileID.Valor, RebalanceYoyo(30f, 400f, 36f, 1, 15) },
|
||||
|
||||
// original: 3s lifetime | 130px range | 9px/f top speed | 0 extra updates
|
||||
{ ProjectileID.WoodYoyo, RebalanceYoyo(15f, 240f, 14f, 0, 20) },
|
||||
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.MaxUpdates = MaxUpdates;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 12 * MaxUpdates;
|
||||
Projectile.localNPCHitCooldown = 15 * MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -32,7 +32,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.MaxUpdates = MaxUpdates;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 3 * MaxUpdates;
|
||||
Projectile.localNPCHitCooldown = 6 * MaxUpdates;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
private const float MinDischargeRate = 0.05f;
|
||||
private const float MaxDischargeRate = 0.53f;
|
||||
private const float DischargeRateScaleFactor = 0.003f;
|
||||
private const float ChargePerHit = 6f;
|
||||
private const float ChargePerHit = 4f;
|
||||
private float rotationAngle = 0;
|
||||
private bool rotDirection = false;
|
||||
private const int HitsPerOrbVolley = 2;
|
||||
@@ -82,7 +82,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
Projectile.MaxUpdates = UpdatesPerFrame;
|
||||
Projectile.tileCollide = false;
|
||||
Projectile.usesLocalNPCImmunity = true;
|
||||
Projectile.localNPCHitCooldown = 8 * UpdatesPerFrame;
|
||||
Projectile.localNPCHitCooldown = 5 * UpdatesPerFrame;
|
||||
}
|
||||
|
||||
public override void AI()
|
||||
@@ -339,7 +339,7 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
{
|
||||
int numOrbs = 3;
|
||||
int orbID = ModContent.ProjectileType<Orbacle>();
|
||||
int orbDamage = Projectile.damage * 2;
|
||||
int orbDamage = Projectile.damage;
|
||||
float orbKB = 8f;
|
||||
float angleVariance = MathHelper.TwoPi / numOrbs;
|
||||
float spinOffsetAngle = MathHelper.Pi / (2f * numOrbs);
|
||||
|
||||
@@ -46,13 +46,13 @@ namespace CalamityMod.Projectiles.Melee.Yoyos
|
||||
if (bubbleStronk)
|
||||
{
|
||||
Projectile.MaxUpdates = 3;
|
||||
Projectile.localNPCHitCooldown = 12 * Projectile.MaxUpdates;
|
||||
Projectile.localNPCHitCooldown = 10 * Projectile.MaxUpdates;
|
||||
bubbleStronkCounter++;
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.MaxUpdates = 2;
|
||||
Projectile.localNPCHitCooldown = 15 * Projectile.MaxUpdates;
|
||||
Projectile.localNPCHitCooldown = 12 * Projectile.MaxUpdates;
|
||||
bubbleStronkCounter = 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user