public override void reloadSprite() { this.Sprite = new AnimatedSprite("Characters\\Monsters\\Serpent"); this.Sprite.SpriteWidth = width; this.Sprite.SpriteHeight = height; this.Sprite.LoadTexture(ModEntry.GetBossTexture(GetType())); base.HideShadow = true; }
public override void reloadSprite() { if (this.Sprite == null) { this.Sprite = new AnimatedSprite("Characters\\Monsters\\Haunted Skull"); } else { this.Sprite.LoadTexture(ModEntry.GetBossTexture(GetType())); } base.HideShadow = true; }
public SquidKidBoss(Vector2 spawnPos, float _difficulty) : base(spawnPos) { width = ModEntry.Config.SquidKidBossWidth; height = ModEntry.Config.SquidKidBossHeight; Sprite.SpriteWidth = width; Sprite.SpriteHeight = height; Sprite.LoadTexture(ModEntry.GetBossTexture(GetType())); this.difficulty = _difficulty; Health = (int)Math.Round(base.Health * 1500 * difficulty); MaxHealth = Health; DamageToFarmer = (int)Math.Round(damageToFarmer * 2 * difficulty); Scale = ModEntry.Config.SquidKidBossScale; this.moveTowardPlayerThreshold.Value = 20; }
public SerpentBoss(Vector2 position, float difficulty) : base(position) { width = ModEntry.Config.SerpentBossWidth; height = ModEntry.Config.SerpentBossHeight; Sprite.SpriteWidth = width; Sprite.SpriteHeight = height; Sprite.LoadTexture(ModEntry.GetBossTexture(GetType())); Scale = ModEntry.Config.SerpentBossScale; this.difficulty = difficulty; Health = (int)Math.Round(base.Health * 15 * difficulty); MaxHealth = Health; DamageToFarmer = (int)Math.Round(base.damageToFarmer * difficulty); timeUntilNextAttack = 100; this.moveTowardPlayerThreshold.Value = 20; }
public SkullBoss(Vector2 position, float difficulty) : base(position, 77377) { width = ModEntry.Config.SkullBossWidth; height = ModEntry.Config.SkullBossHeight; Sprite.SpriteWidth = width; Sprite.SpriteHeight = height; Sprite.LoadTexture(ModEntry.GetBossTexture(GetType())); this.difficulty = difficulty; Health = (int)Math.Round(Health * 10 * difficulty); MaxHealth = Health; DamageToFarmer = (int)Math.Round(damageToFarmer * difficulty); Scale = ModEntry.Config.SkullBossScale; moveTowardPlayerThreshold.Value = 20; }
public GhostBoss(Vector2 spawnPos, float difficulty) : base(spawnPos) { width = ModEntry.Config.GhostBossWidth; height = ModEntry.Config.GhostBossHeight; Sprite.SpriteWidth = width; Sprite.SpriteHeight = height; Sprite.LoadTexture(ModEntry.GetBossTexture(GetType())); Scale = ModEntry.Config.GhostBossScale; this.difficulty = difficulty; Health = (int)Math.Round(Health * 20 * difficulty); MaxHealth = Health; DamageToFarmer = (int)Math.Round(DamageToFarmer * difficulty); MaxGhosts = 4; moveTowardPlayerThreshold.Value = 20; }
public SlimeBoss(Vector2 position, float difficulty) : base(position, 121) { width = ModEntry.Config.SlimeBossWidth; height = ModEntry.Config.SlimeBossHeight; Sprite.SpriteWidth = width; Sprite.SpriteHeight = height; Sprite.LoadTexture(ModEntry.GetBossTexture(GetType())); Sprite.UpdateSourceRect(); Scale = ModEntry.Config.SlimeBossScale; this.difficulty = difficulty; Health = (int)Math.Round(Health * 10 * difficulty); MaxHealth = Health; DamageToFarmer = (int)Math.Round(damageToFarmer * 2 * difficulty); timeUntilNextAttack = 100; moveTowardPlayerThreshold.Value = 20; //this.willDestroyObjectsUnderfoot = true; }
public override void reloadSprite() { this.Sprite = new AnimatedSprite("Characters\\Monsters\\Ghost"); this.Sprite.LoadTexture(ModEntry.GetBossTexture(GetType())); }