More pre-Hardmode

This commit is contained in:
CongratsIsTrash committed 2023-12-28 00:33:48 -05:00
1 parent 1576f6e588
commit 91fe6ff8bd
9 files changed
+29 -24

No files matched your search

+2 -2
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
{
Item.width = 46;
Item.height = 44;
Item.damage = 26;
Item.damage = 22;
Item.DamageType = DamageClass.Magic;
Item.mana = 5;
Item.useTime = 23;
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Weapons.Magic
Item.UseSound = SoundID.Item20;
Item.autoReuse = true;
Item.shoot = ModContent.ProjectileType<FlamingPumpkin>();
Item.shootSpeed = 10f;
Item.shootSpeed = 13f;
Item.scale = 0.9f;
}
+1 -1
View File
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
Item.width = 40;
Item.height = 40;
Item.useTime = 30;
Item.damage = 26;
Item.damage = 25;
Item.DamageType = DamageClass.Melee;
Item.value = CalamityGlobalItem.Rarity2BuyPrice;
Item.knockBack = 2;
+3 -3
View File
@@ -14,10 +14,10 @@ namespace CalamityMod.Items.Weapons.Ranged
{
Item.width = 30;
Item.height = 44;
Item.damage = 4;
Item.damage = 5;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 22;
Item.useAnimation = 22;
Item.useTime = 24;
Item.useAnimation = 24;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 2.2f;
+2 -2
View File
@@ -16,8 +16,8 @@ namespace CalamityMod.Items.Weapons.Ranged
Item.height = 26;
Item.damage = 20;
Item.DamageType = DamageClass.Ranged;
Item.useTime = 20;
Item.useAnimation = 20;
Item.useTime = 22;
Item.useAnimation = 22;
Item.useStyle = ItemUseStyleID.Shoot;
Item.noMelee = true;
Item.knockBack = 2.5f;
+5 -1
View File
@@ -1,4 +1,4 @@
using Terraria;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Magic
@@ -15,6 +15,8 @@ namespace CalamityMod.Projectiles.Magic
Projectile.timeLeft = 200;
Projectile.DamageType = DamageClass.Magic;
Projectile.friendly = true;
Projectile.usesLocalNPCImmunity = true;
Projectile.localNPCHitCooldown = -1;
}
public override void AI()
@@ -24,5 +26,7 @@ namespace CalamityMod.Projectiles.Magic
Dust.NewDust(Projectile.position + Projectile.velocity, Projectile.width, Projectile.height, 64, Projectile.velocity.X * 0.5f, Projectile.velocity.Y * 0.5f);
}
}
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int DamageDone) => target.AddBuff(BuffID.OnFire, 60);
}
}
+1 -1
View File
@@ -46,7 +46,7 @@ namespace CalamityMod.Projectiles.Ranged
{
for (int f = 0; f < 3; f++)
{
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 60f, 85f);
Projectile.NewProjectile(Projectile.GetSource_FromThis(), Projectile.Center, velocity, ModContent.ProjectileType<FungiOrb2>(), (int)(Projectile.damage * 0.4), 0f, Projectile.owner);
}
}
+8 -7
View File
@@ -1,4 +1,4 @@
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -17,7 +17,6 @@ namespace CalamityMod.Projectiles.Ranged
Projectile.friendly = true;
Projectile.DamageType = DamageClass.Ranged;
Projectile.penetrate = 1;
Projectile.aiStyle = ProjAIStyleID.Arrow;
Projectile.timeLeft = 180;
}
@@ -31,9 +30,6 @@ namespace CalamityMod.Projectiles.Ranged
Lighting.AddLight(Projectile.Center, new Vector3(0, 244, 252) * (1.2f / 255));
Projectile.velocity.Y += 0.1f;
Projectile.velocity.X *= 0.95f;
Projectile.localAI[0] += 1f;
if (Projectile.localAI[0] > 4f)
{
@@ -42,9 +38,14 @@ namespace CalamityMod.Projectiles.Ranged
Main.dust[dust].noGravity = true;
Main.dust[dust].velocity = dspeed;
}
bool isHoming = false;
if (Projectile.timeLeft < 150)
CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 450f, 6f, 20f);
{
isHoming = true;
CalamityUtils.HomeInOnNPC(Projectile, !Projectile.tileCollide, 450f, 6.5f, 20f);
}
if (!isHoming)
Projectile.velocity.Y += 0.14f;
}
public override void OnKill(int timeLeft)
@@ -14,7 +14,7 @@ namespace CalamityMod.Projectiles.Rogue
internal PrimitiveTrail TrailRenderer;
public override string Texture => "CalamityMod/Items/Weapons/Rogue/FishboneBoomerang";
public static int ChargeupTime = 20;
public static int ChargeupTime = 10;
public static int Lifetime = 240;
public float OverallProgress => 1 - Projectile.timeLeft / (float)Lifetime;
public float ThrowProgress => 1 - Projectile.timeLeft / (float)(Lifetime);
@@ -103,12 +103,12 @@ namespace CalamityMod.Projectiles.Rogue
Projectile.numHits = 0;
}
if (Returning == 0f && Bouncing == 0f && Projectile.velocity.Length() > 2f)
if (Returning == 0f && Bouncing == 0f && Projectile.velocity.Length() > 2f && Projectile.timeLeft < (205 + ChargeupTime))
{
Projectile.velocity *= 0.97f;
Projectile.velocity *= 0.88f;
}
if (Returning == 1f && Projectile.velocity.Length() < 17f)
if (Returning == 1f && Projectile.velocity.Length() < 20f)
{
Projectile.velocity *= 1.1f;
}
+3 -3
View File
@@ -45,7 +45,7 @@ namespace CalamityMod.Projectiles.Summon
if (starCount <= 1f)
starCount = 1f;
return MathHelper.TwoPi * StarIndex / starCount + AITimer * 0.018f;
return MathHelper.TwoPi * StarIndex / starCount + AITimer * 0.025f;
// "MathHelper.TwoPi / ProbeIndex * probeCount"s the position itself.
// "AITimer * [Modifier]"s how fast it spins.
}
@@ -120,11 +120,11 @@ namespace CalamityMod.Projectiles.Summon
Projectile.alpha = 0;
HitCounter = 0;
Projectile.velocity = Vector2.Zero;
Vector2 idleDestination = Owner.Center + StarPositionAngle.ToRotationVector2() * (75f * MoveWidth);
Vector2 idleDestination = Owner.Center + StarPositionAngle.ToRotationVector2() * (90f * MoveWidth);
Projectile.Center = Vector2.Lerp(Projectile.Center, idleDestination, 0.15f);
AITimer++;
Owner.statDefense += 3;
Owner.statDefense += 5;
Projectile.rotation += MoveWidth * 0.2f;
}
if (!MinionBuffMode && !Reforming) // Minion when ramming