summon item rebalancing and fixes

This commit is contained in:
ben-tk authored and Cameron Ewell committed 2021-11-23 13:08:24 -05:00
1 parent e94f4438f1
commit 26dd5e99ad
8 files changed
+63 -19

No files matched your search

+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 35;
item.damage = 28;
item.mana = 10;
item.width = item.height = 36;
item.useTime = item.useAnimation = 30;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 26;
item.damage = 23;
item.mana = 10;
item.width = item.height = 48;
item.useTime = item.useAnimation = 30;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 156;
item.damage = 280;
item.summon = true;
item.sentry = true;
item.mana = 10;
+3 -6
View File
@@ -21,11 +21,11 @@ namespace CalamityMod.Projectiles.Summon
projectile.minionSlots = 0f;
projectile.ignoreWater = true;
projectile.tileCollide = false;
projectile.penetrate = -1;
projectile.penetrate = 2;
projectile.timeLeft = 180;
projectile.extraUpdates = 1;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 19;
projectile.localNPCHitCooldown = 90;
}
public override void AI()
@@ -37,15 +37,12 @@ namespace CalamityMod.Projectiles.Summon
}
public override void Kill(int timeLeft)
{
CalamityGlobalProjectile.ExpandHitboxBy(projectile, 60);
projectile.Damage();
if (!Main.dedServ)
for (int i = 0; i < 10; i++)
Dust.NewDustDirect(projectile.position, 36, 36, (int)CalamityDusts.SulfurousSeaAcid).noGravity = true;
}
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => projectile.ModifyHitNPCSticky(10, true);
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => projectile.ModifyHitNPCSticky(4, true);
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(BuffID.CursedInferno, 120);
+2
View File
@@ -133,5 +133,7 @@ namespace CalamityMod.Projectiles.Summon
projectile.velocity = (destination - projectile.Center).SafeNormalize(Vector2.Zero) * flySpeed;
}
public override bool CanDamage() => false;
}
}
+7 -9
View File
@@ -1,5 +1,4 @@
using CalamityMod.Buffs.Summon;
using CalamityMod.Projectiles.Melee;
using Microsoft.Xna.Framework;
using System;
using Terraria;
@@ -13,6 +12,7 @@ namespace CalamityMod.Projectiles.Summon
public Player Owner => Main.player[projectile.owner];
public bool SittingOnGround => Math.Abs(projectile.velocity.X) < 1.55f && projectile.velocity.Y == 0f;
public ref float HopTimer => ref projectile.ai[0];
public ref float HopAmount => ref projectile.ai[1];
public const float Gravity = 0.25f;
public const float MaxFallSpeed = 12f;
public override void SetStaticDefaults()
@@ -35,6 +35,8 @@ namespace CalamityMod.Projectiles.Summon
projectile.extraUpdates = 1;
projectile.tileCollide = false;
projectile.minion = true;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 60;
}
public override void AI()
@@ -127,19 +129,15 @@ namespace CalamityMod.Projectiles.Summon
if (SittingOnGround && HopTimer % 20f == 19f)
{
projectile.velocity = projectile.SafeDirectionTo(target.Center) * 6f + new Vector2(Math.Sign(projectile.velocity.X) * 2f, -7f);
HopAmount++;
// Release a bunch of blood.
if (Main.myPlayer == projectile.owner)
if (Main.myPlayer == projectile.owner && HopAmount % 3f == 2f)
{
for (int i = 0; i < Main.rand.Next(1, 4 + 1); i++)
for (int i = 0; i < 2; i++)
{
Vector2 shootVelocity = -Vector2.UnitY.RotatedByRandom(0.3f) * Main.rand.NextFloat(6f, 11f);
int blood = Projectile.NewProjectile(projectile.Top, shootVelocity, ModContent.ProjectileType<Blood2>(), projectile.damage, projectile.knockBack, projectile.owner);
if (Main.projectile.IndexInRange(blood))
{
Main.projectile[blood].Calamity().forceMinion = true;
Main.projectile[blood].penetrate = 1;
}
int blood = Projectile.NewProjectile(projectile.Top, shootVelocity, ModContent.ProjectileType<FleshBlood>(), projectile.damage, projectile.knockBack, projectile.owner);
}
}
+47
View File
@@ -0,0 +1,47 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Summon
{
public class FleshBlood : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public const int LifeTime = 300;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Blood");
ProjectileID.Sets.MinionShot[projectile.type] = true;
}
public override void SetDefaults()
{
projectile.width = 4;
projectile.height = 4;
projectile.friendly = true;
projectile.minion = true;
projectile.penetrate = 1;
projectile.LifeTime = 150;
}
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < LifeTime - 30 && target.CanBeChasedBy(projectile);
public override void AI()
{
projectile.localAI[0] += 1f;
if (projectile.localAI[0] > 4f)
{
for (int i = 0; i < 2; i++)
{
int d = Dust.NewDust(projectile.position, projectile.width, projectile.height, DustID.Blood, 0f, 0f, 100, default, 1f);
Main.dust[d].noGravity = true;
Main.dust[d].velocity *= 0f;
}
}
if (projectile.timeLeft < LifeTime - 30)
CalamityGlobalProjectile.HomeInOnNPC(projectile, !projectile.tileCollide, 450f, 6f, 20f);
}
}
}
+1 -1
View File
@@ -151,7 +151,7 @@ namespace CalamityMod.Projectiles.Summon
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
if (RemainingSlices > 0)
if (RemainingSlices > 0 && FiringTime <= 80f)
{
FiringTime = 10f;
RemainingSlices--;