예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
        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;
        }
예제 #4
0
        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;
        }
예제 #5
0
        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;
        }
예제 #6
0
        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;
        }
예제 #7
0
        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;
        }
예제 #8
0
 public override void reloadSprite()
 {
     this.Sprite = new AnimatedSprite("Characters\\Monsters\\Ghost");
     this.Sprite.LoadTexture(ModEntry.GetBossTexture(GetType()));
 }