Sharkoon touch-ups.

This commit is contained in:
Mr-Memes authored and Cameron Ewell committed 2024-07-30 18:27:16 -04:00
1 parent 658404e81e
commit cd0dd39a1d
4 files changed
+10 -5

No files matched your search

@@ -38,3 +38,4 @@ TornadoHostile.DisplayName: Tornado
ToxicMinnowCloud.DisplayName: Toxic Cloud
TrilobiteSpike.DisplayName: Spike
IceClasperEnemyProjectile.DisplayName: Ice Shard
SharkoonExplosion.DisplayName: Sharkoon Explosion
+5 -2
View File
@@ -18,9 +18,10 @@ namespace CalamityMod.NPCs.SunkenSea
public class Sharkoon : ModNPC
{
public static float TargetDistanceDetection = 160f;
public static int IdleMovementUnlikeliness = 150;
public static int IdleMovementUnlikeliness = 250;
public static float MaxIdleSpeed = 3f;
public static float IdleMovementMaxRange = 1600f;
public static float IdleMovementMaxRange = 800f;
public static int ExplosionRadius = 80;
#region Fields & Properties
@@ -209,6 +210,8 @@ namespace CalamityMod.NPCs.SunkenSea
}
}
public override bool CanHitPlayer(Player target, ref int cooldownSlot) => false;
#endregion
#region AI
+3 -2
View File
@@ -1,4 +1,5 @@
using Terraria.ModLoader;
using CalamityMod.NPCs.SunkenSea;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Enemy
{
@@ -11,7 +12,7 @@ namespace CalamityMod.Projectiles.Enemy
public override void SetDefaults()
{
Projectile.hostile = true;
Projectile.width = Projectile.height = 160;
Projectile.width = Projectile.height = Sharkoon.ExplosionRadius * 2;
Projectile.timeLeft = 2;
}
}
+1 -1
View File
@@ -444,7 +444,7 @@ namespace CalamityMod
return path;
}
private IEnumerable<Node> GetNeighbors(Node node)
private List<Node> GetNeighbors(Node node)
{
var neighbors = new List<Node>();