Exemplo n.º 1
0
    public static void SetLevel(PlayerCharacter player, int level)
    {
        TablePlayerLebelData next = table[level - 1];

        player.CurrentExperience -= player.NextLevelExperience;

        SetLevelInitialize(player, level);
    }
Exemplo n.º 2
0
    public static void SetLevelInitialize(PlayerCharacter player, int level)
    {
        ScoreInformation.Info.iLevel = level;

        TablePlayerLebelData next = table[level - 1];

        player.Level               = level;
        player.MaxHpDefault        = next.MaxHp;
        player.CurrentHp           = player.MaxHp;
        player.NextLevelExperience = next.NextLevelExperience;
        player.BaseAttack          = next.BaseAttack;
        player.BaseDefense         = next.BaseDefense;
        player.TrunRecoverHp       = next.TrunRecoverHp;
    }