More ammo balance
Bone arrows rise up
This commit is contained in:
1 parent
b2e4d5fcb3
commit
cc70007e15
3 files changed
+31
-4
No files matched your search
@@ -61,6 +61,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.Blowgun, Do(DamageExact(40), ShootSpeedExact(15f)) }, // VANILLA: 27 DMG, 13 VEL
|
||||
{ ItemID.BluePhaseblade, phaseblade },
|
||||
{ ItemID.BluePhasesaber, phasesaber },
|
||||
{ ItemID.BoneArrow, Do(DamageExact(9)) }, // VANILLA: 8 DMG
|
||||
{ ItemID.BoneSword, Do(UseTurn, DamageExact(25)) }, // VANILLA: 19 DMG
|
||||
{ ItemID.BookofSkulls, Do(ShootSpeedExact(5.5f)) }, // VANILLA: 3.5 VEL
|
||||
{ ItemID.Boomstick, Do(DamageExact(11)) }, // VANILLA: 14 DMG
|
||||
|
||||
@@ -3934,6 +3934,12 @@ namespace CalamityMod.Projectiles
|
||||
if (projectile.aiStyle == ProjAIStyleID.Flare && projectile.ai[2] == 1f && projectile.localAI[0] == 0f)
|
||||
projectile.localAI[1]--;
|
||||
|
||||
if (projectile.type == ProjectileID.BoneArrowFromMerchant) // Bone arrow no gravity before hitting tile
|
||||
{
|
||||
if (projectile.ai[2] != 1)
|
||||
projectile.ai[0] = 0;
|
||||
}
|
||||
|
||||
// Hack to allow Desert Tiger minion to fall through platforms while attacking
|
||||
if (projectile.type >= ProjectileID.StormTigerTier1 && projectile.type <= ProjectileID.StormTigerTier3)
|
||||
{
|
||||
@@ -4731,7 +4737,7 @@ namespace CalamityMod.Projectiles
|
||||
if (projectile.type == ProjectileID.HellfireArrow) // damage falloff
|
||||
{
|
||||
if (projectile.numHits > 0)
|
||||
projectile.damage = (int)(projectile.damage * 0.6f);
|
||||
projectile.damage = (int)(projectile.damage * 0.8f);
|
||||
if (projectile.damage < 1)
|
||||
projectile.damage = 1;
|
||||
}
|
||||
@@ -5025,6 +5031,26 @@ namespace CalamityMod.Projectiles
|
||||
#region TileCollide
|
||||
public override bool OnTileCollide(Projectile projectile, Vector2 oldVelocity)
|
||||
{
|
||||
if (projectile.type == ProjectileID.BoneArrowFromMerchant) // Bone arrow bounce
|
||||
{
|
||||
if (projectile.velocity.X != oldVelocity.X)
|
||||
{
|
||||
projectile.velocity.X = -oldVelocity.X;
|
||||
}
|
||||
if (projectile.velocity.Y != oldVelocity.Y)
|
||||
{
|
||||
projectile.velocity.Y = -oldVelocity.Y;
|
||||
}
|
||||
projectile.timeLeft -= 120;
|
||||
if (projectile.timeLeft < 1)
|
||||
projectile.timeLeft = 1;
|
||||
|
||||
if (projectile.ai[2] != 1)
|
||||
SoundEngine.PlaySound(SoundID.NPCHit2 with { Volume = 0.5f, Pitch = Main.rand.NextFloat(-0.3f, 0.3f), MaxInstances = 10 }, projectile.Center);
|
||||
projectile.ai[2] = 1;
|
||||
|
||||
return false;
|
||||
}
|
||||
//Crystal Darts use -1 local that needs to reset whenever they bounce
|
||||
if (projectile.type == ProjectileID.CrystalDart)
|
||||
{
|
||||
|
||||
@@ -299,8 +299,8 @@ namespace CalamityMod.Projectiles
|
||||
{ ProjectileID.Bomb, defaultIFrames },
|
||||
{ ProjectileID.BombFish, defaultIFrames },
|
||||
{ ProjectileID.Bone, defaultIFrames },
|
||||
{ ProjectileID.BoneArrow, Do(LocalIFrames(-1)) },
|
||||
{ ProjectileID.BoneArrowFromMerchant, defaultIFrames },
|
||||
{ ProjectileID.BoneArrow, defaultIFrames },
|
||||
{ ProjectileID.BoneArrowFromMerchant, Do(ExtraUpdatesExact(2), LocalIFrames(-1)) },
|
||||
{ ProjectileID.BoneDagger, defaultIFrames },
|
||||
{ ProjectileID.BookOfSkullsSkull, defaultIFrames },
|
||||
{ ProjectileID.BookStaffShot, defaultIFrames },
|
||||
@@ -413,7 +413,7 @@ namespace CalamityMod.Projectiles
|
||||
{ ProjectileID.IchorDart, Do(ExtraUpdatesExact(1), DefaultIDStaticIFrames) },
|
||||
{ ProjectileID.JackOLantern, defaultIFrames },
|
||||
{ ProjectileID.JavelinFriendly, defaultIFrames },
|
||||
{ ProjectileID.JestersArrow, defaultIFrames },
|
||||
{ ProjectileID.JestersArrow, Do(LocalIFrames(-1)) },
|
||||
{ ProjectileID.Landmine, defaultIFrames },
|
||||
{ ProjectileID.LaserMachinegun, defaultIFrames },
|
||||
{ ProjectileID.LaserMachinegunLaser, defaultIFrames },
|
||||
|
||||
Reference in new issue
Block a user