Exemplo n.º 1
0
    public static CharacterStat GetCharacterData(eEntityType type, int subType)
    {
        if (type == eEntityType.InGameCharacter)
        {
            CharacterStat _stat = new CharacterStat("power", subType);
            switch (subType)
            {
            case 1:
                _stat.SetBattleData(40, 11);
                _stat.SetMaxHpMpData(400, 111);
                _stat.SetMoveData(11, 5);
                return(_stat);

            case 2:
                _stat.SetBattleData(20, 11);
                _stat.SetMaxHpMpData(50, 111);
                _stat.SetMoveData(0.4f, 1);
                _stat.SetAttackData(15, 2, eAttackType.Melee);
                return(_stat);

            case 3:
                _stat.SetBattleData(30, 30);
                _stat.SetMaxHpMpData(50, 111);
                _stat.SetMoveData(1f, 1);
                _stat.SetAttackData(45, 2, eAttackType.Melee);
                return(_stat);

            case 4:
                _stat.SetBattleData(40, 11);
                _stat.SetMaxHpMpData(30, 111);
                _stat.SetMoveData(1f, 1);
                _stat.SetAttackData(40, 40, eAttackType.Range);
                return(_stat);
            }
        }
        return(null);
    }