public override void SetDefaults() { base.SetDefaults(); attackThroughWalls = true; framesInAir = 0; framesInGround = 0; gHelper = new GroundAwarenessHelper(this); }
public override void SetDefaults() { base.SetDefaults(); projectile.width = 16; projectile.height = 16; projectile.penetrate = -1; attackThroughWalls = false; projectile.tileCollide = true; minFrame = 2 * Main.rand.Next(3); gHelper = new GroundAwarenessHelper(this); }
public override void SetDefaults() { base.SetDefaults(); attackFrames = 60; noLOSPursuitTime = 300; lastHitFrame = -1; gHelper = new GroundAwarenessHelper(this) { ScaleLedge = ScaleLedge, CrossCliff = CrossCliff, IdleFlyingMovement = IdleFlyingMovement, IdleGroundedMovement = IdleGroundedMovement, GetUnstuck = GetUnstuck, transformRateLimit = 60 }; }
public override void SetDefaults() { base.SetDefaults(); projectile.width = 24; projectile.height = 32; drawOffsetX = (projectile.width - 40) / 2; circleHelper.idleBumbleFrames = 90; circleHelper.idleBumbleRadius = 96; bumbleSpriteDirection = -1; attackFrames = 45; animationFrame = 0; idleInertia = 8; frameSpeed = 5; projectile.localNPCHitCooldown = 10; gHelper = new GroundAwarenessHelper(this); pathfinder.modifyPath = gHelper.ModifyPathfinding; }
public sealed override void SetDefaults() { base.SetDefaults(); projectile.width = 24; projectile.height = 24; projectile.tileCollide = false; projectile.friendly = true; projectile.localNPCHitCooldown = 30; attackThroughWalls = false; frameSpeed = 5; animationFrame = 0; projectile.hide = true; projectileIndex = 0; gHelper = new GroundAwarenessHelper(this) { ScaleLedge = ScaleLedge, GetUnstuck = DoTeleport, IdleFlyingMovement = IdleFlyingMovement, IdleGroundedMovement = IdleGroundedMovement }; pathfinder.modifyPath = gHelper.ModifyPathfinding; }