Exemplo n.º 1
0
    void AplicaNivelInicial()
    {
        for (int i = 1; i < NivelInicial; i++)
        {
            MaisNivel();
        }

        if (dobreVida)
        {
            VidaMax      *= 2;
            VidaCorrente *= 2;
        }

        if (dobreForca)
        {
            forca *= 2;
        }

        mNivel.ParaProxNivel = mNivel.CalculaPassaNivelInicial(NivelInicial);
        mNivel.Nivel         = NivelInicial;

        if (umPontoDeVida)
        {
            VidaCorrente = 1;
        }
    }
Exemplo n.º 2
0
    public void IncrementaNivel(int nivel)
    {
        UpDeNivel.calculaUpDeNivel(nivel, meusAtributos, true);

        mNivel.Nivel         = nivel;
        mNivel.ParaProxNivel = mNivel.CalculaPassaNivelInicial(nivel);
    }
Exemplo n.º 3
0
        public void SimulaPassaNivel(GerenciadorDeExperiencia gXP, Atributos A, int ateONivel = -1)
        {
            if (ateONivel < 0)
            {
                ateONivel = 99;
            }

            for (int i = 0; i < ateONivel; i++)
            {
                if (gXP.VerificaPassaNivel())
                {
                    gXP.AplicaPassaNivel();
                    UpDeNivel.calculaUpDeNivel(gXP.Nivel, A);
                }
                gXP.XP = gXP.ParaProxNivel + 1;
                Debug.Log(gXP.Nivel + " : " + gXP.XP + "/" + gXP.ParaProxNivel + " : " + gXP.UltimoPassaNivel
                          + " : " + gXP.CalculaPassaNivelInicial(gXP.Nivel, true));
            }
        }