Post-Moon Lord and Provi gun + ammo balance
This commit is contained in:
1 parent
f2510baa46
commit
a682cd1b28
6 files changed
+22
-20
No files matched your search
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Ammo
|
||||
public class HolyFireBullet : ModItem, ILocalizedModType
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Ammo";
|
||||
internal const float ExplosionMultiplier = 0.33f;
|
||||
internal const float ExplosionMultiplier = 0.275f;
|
||||
public static readonly SoundStyle Explosion = new("CalamityMod/Sounds/Item/HolyFireBulletExplosion") { PitchVariance = 0.2f, Volume = 0.6f };
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Ammo
|
||||
{
|
||||
Item.width = 22;
|
||||
Item.height = 22;
|
||||
Item.damage = 22;
|
||||
Item.damage = 20;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.maxStack = 9999;
|
||||
Item.consumable = true;
|
||||
|
||||
@@ -162,6 +162,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.MonkStaffT1, Do(TrueMeleeNoSpeed, DamageExact(83)) }, // Sleepy Octopod
|
||||
{ ItemID.MonkStaffT2, Do(AutoReuse, TrueMelee, DamageExact(90)) }, // Ghastly Glaive
|
||||
{ ItemID.MonkStaffT3, Do(DamageExact(225)) }, // Sky Dragon's Fury
|
||||
{ ItemID.MoonlordBullet, Do(DamageExact(19)) }, // Luminite Bullet
|
||||
{ ItemID.MoonlordTurretStaff, Do(DamageExact(50), UseExact(15)) }, //Lunar Portal Staff
|
||||
{ ItemID.Muramasa, Do(CritDelta(+20)) },
|
||||
{ ItemID.MushroomSpear, Do(AutoReuse, TrueMelee, UseRatio(0.8f), DamageExact(100)) },
|
||||
@@ -211,7 +212,6 @@ namespace CalamityMod.Items
|
||||
{ ItemID.RocketLauncher, Do(DamageExact(70)) },
|
||||
{ ItemID.Sandgun, Do(PointBlank, DamageExact(22), UseExact(20)) },
|
||||
{ ItemID.SapphireStaff, Do(DamageExact(25)) },
|
||||
{ ItemID.SDMG, Do(PointBlank, DamageExact(80)) },
|
||||
{ ItemID.Seedler, Do(UseMeleeSpeed, DamageExact(74), ShootSpeedDelta(+4f)) },
|
||||
{ ItemID.ShadowbeamStaff, Do(DamageExact(100)) },
|
||||
{ ItemID.ShadowFlameBow, Do(PointBlank, DamageExact(55)) },
|
||||
@@ -456,6 +456,7 @@ namespace CalamityMod.Items
|
||||
{ ItemID.PulseBow, pointBlank },
|
||||
{ ItemID.Revolver, Do(PointBlank, AutoReuse) },
|
||||
{ ItemID.RichMahoganyBow, pointBlank },
|
||||
{ ItemID.SDMG, pointBlank },
|
||||
{ ItemID.ShadewoodBow, pointBlank },
|
||||
{ ItemID.SilverBow, pointBlank },
|
||||
{ ItemID.SnowballCannon, pointBlank },
|
||||
|
||||
@@ -21,14 +21,14 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 86;
|
||||
Item.height = 38;
|
||||
Item.damage = 96;
|
||||
Item.damage = 92;
|
||||
Item.knockBack = 3f;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.noMelee = true;
|
||||
Item.autoReuse = true;
|
||||
|
||||
Item.useTime = 24;
|
||||
Item.useAnimation = 24;
|
||||
Item.useTime = 26;
|
||||
Item.useAnimation = 26;
|
||||
Item.UseSound = SoundID.Item38;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
|
||||
@@ -49,7 +49,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
int NumBullets = Main.rand.Next(5, 8);
|
||||
int NumBullets = Main.rand.Next(5, 6+1);
|
||||
Vector2 baseVelocity = velocity.SafeNormalize(Vector2.Zero) * BulletSpeed;
|
||||
|
||||
// If Musket Balls are used, damage is set to match Hallow-Point Rounds for both bullets and lasers
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
// Spawn a beam from the sky ala Deathhail Staff or Lunar Flare
|
||||
float laserSpeed = 8f;
|
||||
int laserDamage = 3 * damage;
|
||||
int laserDamage = (int)(damage * 2.5f);
|
||||
float laserKB = 5f;
|
||||
|
||||
Vector2 rrp = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
|
||||
@@ -14,10 +14,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
Item.width = 66;
|
||||
Item.height = 24;
|
||||
Item.damage = 58;
|
||||
Item.damage = 61;
|
||||
Item.DamageType = DamageClass.Ranged;
|
||||
Item.useTime = 35;
|
||||
Item.useAnimation = 35;
|
||||
Item.useTime = 32;
|
||||
Item.useAnimation = 32;
|
||||
Item.useStyle = ItemUseStyleID.Shoot;
|
||||
Item.noMelee = true;
|
||||
Item.knockBack = 4.5f;
|
||||
|
||||
@@ -81,8 +81,8 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
// Returns the amount of bonus damage that should be dealt. Boosts life regeneration appropriately as a side effect.
|
||||
private int OnHitEffect(Player owner)
|
||||
{
|
||||
// Adds 2 frames to lifeRegenTime on every hit. This increased value is used for the damage calculation.
|
||||
owner.lifeRegenTime += 2;
|
||||
// Adds 3 frames to lifeRegenTime on every hit. This increased value is used for the damage calculation.
|
||||
owner.lifeRegenTime += 3;
|
||||
|
||||
// Deals (1.00 + (0.1 * current lifeRegen))% of current lifeRegenTime as flat bonus damage on hit.
|
||||
// For example, at 0 life regen, you get 1% of lifeRegenTime as bonus damage.
|
||||
@@ -91,15 +91,16 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
int regenForCalc = owner.lifeRegen > 0 ? owner.lifeRegen : 0;
|
||||
float regenDamageRatio = (1f + 0.1f * regenForCalc) / 100f;
|
||||
|
||||
// For the sake of bonus damage, life regen time caps at 3600, aka 60 seconds. This is its natural cap in vanilla. This then gets divided by 2 for computing final damage.
|
||||
int regenTimeForCalc = (int)MathHelper.Clamp(owner.lifeRegenTime, 0f, 3600f) / 2;
|
||||
// For the sake of bonus damage, life regen time caps at 3600, aka 60 seconds. This is its natural cap in vanilla. 75% of this is taken for computing the final damage.
|
||||
int regenTimeForCalc = (int)(MathHelper.Clamp(owner.lifeRegenTime, 0f, 3600f) * 0.75f);
|
||||
|
||||
int finalDamageBoost = (int)(regenDamageRatio * regenTimeForCalc);
|
||||
// Damage boost has a cap of 25 to prevent it from getting too crazy.
|
||||
if (finalDamageBoost > 25)
|
||||
finalDamageBoost = 25;
|
||||
// Damage boost has a cap of 35 to prevent it from getting too crazy.
|
||||
int damageCap = 35;
|
||||
if (finalDamageBoost > damageCap)
|
||||
finalDamageBoost = damageCap;
|
||||
|
||||
if (finalDamageBoost == 25) // Special hit visual if youre at max bonus damage
|
||||
if (finalDamageBoost == damageCap) // Special hit visual if the bonus damage is at the cap.
|
||||
{
|
||||
for (int k = 0; k < 3; k++)
|
||||
{
|
||||
|
||||
@@ -81,7 +81,7 @@ namespace CalamityMod.Projectiles.Ranged
|
||||
|
||||
public override void OnKill(int timeLeft)
|
||||
{
|
||||
// Spawn an on-hit explosion which deals 75% of the projectile's damage.
|
||||
// Spawn an on-hit explosion which deals 30% of the projectile's damage.
|
||||
if (Projectile.owner == Main.myPlayer)
|
||||
{
|
||||
Projectile.damage = (int)(Projectile.damage * HolyFireBullet.ExplosionMultiplier);
|
||||
|
||||
Reference in new issue
Block a user