Example #1
0
 private void SuzuBmake()
 {
     if (this.suzu[1] == null)
     {
         this.MoveRandom(false, false);
         Point positionre = this.positionre;
         this.positionre = this.position;
         this.parent.panel[positionre.X, positionre.Y].State = Panel.PANEL._grass;
         this.sound.PlaySE(SoundEffect.enterenemy);
         this.parent.effects.Add(new MoveEnemy(this.sound, this.parent, positionre.X, positionre.Y));
         ObjectBase objectBase = new SuzuranBlue(this.sound, this.parent, positionre.X, positionre.Y, this.union, 10 * version, 180);
         objectBase.Hp = 10 * version;
         this.suzu[1]  = objectBase;
         this.parent.objects.Add(this.suzu[1]);
     }
     else
     {
         if (this.suzu[1].flag)
         {
             return;
         }
         this.MoveRandom(false, false);
         Point positionre = this.positionre;
         this.positionre = this.position;
         this.parent.panel[positionre.X, positionre.Y].State = Panel.PANEL._grass;
         this.sound.PlaySE(SoundEffect.enterenemy);
         this.parent.effects.Add(new MoveEnemy(this.sound, this.parent, positionre.X, positionre.Y));
         ObjectBase objectBase = new SuzuranBlue(this.sound, this.parent, positionre.X, positionre.Y, this.union, 10 * version, 180);
         objectBase.Hp = 10 * version;
         this.suzu[1]  = objectBase;
         this.parent.objects.Add(this.suzu[1]);
     }
 }
Example #2
0
        public override void Action(CharacterBase character, SceneBattle battle)
        {
            Point point = new Point(character.position.X + this.UnionRebirth(character.union), character.position.Y);

            this.sound.PlaySE(SoundEffect.enterenemy);
            battle.effects.Add(new MoveEnemy(this.sound, battle, point.X, point.Y));
            if (character.InAreaCheck(point) && character.NoObject(point) && !battle.panel[point.X, point.Y].Hole)
            {
                ObjectBase objectBase = new SuzuranBlue(this.sound, battle, character.position.X + this.UnionRebirth(character.union), character.position.Y, character.union, 100, 0);
                if (character is Player && ((Player)character).addonSkill[67])
                {
                    objectBase.HPset(objectBase.Hp * 2);
                }
                battle.objects.Add(objectBase);
            }
            base.Action(character, battle);
        }