Abandoned Slime Staff buff (!)

nerfed the other guys a bit too
This commit is contained in:
Altixal committed 2026-07-29 19:45:45 +07:00
1 parent ba7e47803c
commit e29b36eb44
5 files changed
+25 -13

No files matched your search

+1 -1
View File
@@ -55,7 +55,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
player.AddBuff(Item.buffType, 2);
CalamityUtils.KillShootProjectiles(true, type, player);
float damageMult = ((float)Math.Log(slimeSlots, 8f)) + 1f;
float damageMult = 0.8f + slimeSlots * 0.2f;
var minion = Projectile.NewProjectileDirect(source, player.ClampedMouseWorld(), Vector2.Zero, type, (int)(damage * damageMult), knockback, player.whoAmI);
minion.originalDamage = (int)(Item.damage * damageMult);
minion.minionSlots = slimeSlots;
+1 -1
View File
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = 52;
Item.height = 52;
Item.damage = 42;
Item.damage = 38;
Item.DamageType = DamageClass.Summon;
Item.buffType = ModContent.BuffType<EntropysVigilBuff>();
Item.shoot = ModContent.ProjectileType<Calamitamini>();
+1 -1
View File
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
Item.width = 48;
Item.height = 56;
Item.damage = 71;
Item.damage = 60;
Item.knockBack = 2f;
Item.mana = 10;
+2 -5
View File
@@ -23,11 +23,8 @@ namespace CalamityMod.Projectiles.Summon
Projectile.friendly = true;
Projectile.ignoreWater = true;
Projectile.alpha = 255;
Projectile.penetrate = -1;
Projectile.timeLeft = 600;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = -2;
Projectile.extraUpdates = 1;
Projectile.MaxUpdates = 4;
Projectile.timeLeft = 180 * Projectile.MaxUpdates;
Projectile.DamageType = DamageClass.Summon;
}
+20 -5
View File
@@ -60,7 +60,7 @@ namespace CalamityMod.Projectiles.Summon
CalamityGlobalProjectile modProj = Projectile.Calamity();
//hitbox size scaling
float scale = (float)Math.Log(Projectile.minionSlots, 10f) + 1f;
float scale = 0.8f + Projectile.minionSlots * 0.2f;
if (Projectile.scale != scale)
Projectile.scale = scale;
Projectile.width = (int)(64f * Projectile.scale);
@@ -190,7 +190,7 @@ namespace CalamityMod.Projectiles.Summon
{
attackCounter += Main.rand.Next(1, 4);
}
if (attackCounter > 300)
if (attackCounter > 240)
{
attackCounter = 0;
Projectile.netUpdate = true;
@@ -202,9 +202,24 @@ namespace CalamityMod.Projectiles.Summon
attackCounter += 2;
if (Main.myPlayer == Projectile.owner)
{
Vector2 laserVel = Projectile.SafeDirectionTo(objectivepos) * laserSpeed;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, laserVel, projType, Projectile.damage, 0f, Projectile.owner);
Projectile.netUpdate = true;
if (Main.rand.NextBool())
{
for (int i = 0; i < 8; i++)
{
Vector2 circleVel = ((MathHelper.TwoPi * i / 8f) - MathHelper.ToRadians(67.5f)).ToRotationVector2() * laserSpeed;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, circleVel, projType, Projectile.damage, 0f, Projectile.owner);
}
}
else
{
for (int i = 0; i < 5; i++)
{
Vector2 direction = Projectile.SafeDirectionTo(objectivepos);
Vector2 spreadPos = Projectile.Center + direction * Main.rand.NextFloat(1f, 4f) + direction.RotatedBy(MathHelper.PiOver2) * Main.rand.NextFloat(-16f, 16f);
Vector2 laserVel = direction * laserSpeed;
Projectile.NewProjectile(Projectile.GetSource_FromThis(), spreadPos, laserVel, projType, Projectile.damage, 0f, Projectile.owner);
}
}
}
}
}