コード例 #1
0
ファイル: Ape.cs プロジェクト: yadiate/MoonLightCraft
        public Ape(Data data, UnitInputBase input, MovementBase Movement) : base(data, input, Movement)
        {
            Stat.SetHp(150, 1.2f);
            Stat.SetMental(75, 1.1f);
            Stat.SetAttack(10.5f, 1.1f);

            Skin.AddAnimation("Base", @"Unit\base2", 2, 2, 4, 12, 0, 0, 16, 26);
            Skin.SkinChanger(new SideWalkChange());

            Status.AddDeathAction((UnitBase units) => {
                Data.Screen.Unit.Player.Stat.Exp.Amount(1);
                data.Screen.Items.DropItem.AddItem(units, 1, MathExt.Random(1, 4));
                data.Screen.Items.DropItem.AddItem(units, 0, MathExt.Random(1, 4));
            });

            SetUnitType(UnitType.Enemy);
            AddCollision(data.Screen.World, 0.6f, 4);
        }