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; } }
public void IncrementaNivel(int nivel) { UpDeNivel.calculaUpDeNivel(nivel, meusAtributos, true); mNivel.Nivel = nivel; mNivel.ParaProxNivel = mNivel.CalculaPassaNivelInicial(nivel); }
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)); } }