Would love some help ...
Well where do i start, a couple of months ago i was making a little school project that i'd love to continue but i got a lilbit confused with my own code
this is supposed to be a leveling system that now im not being able to understand mainly cuz my variable names:
void Leveling(){
int PLvL;
int xpm;
int xp_mp;
double LvL_D;
xp_mp = P.xpmp;
PLvL = P.Level;
xpm = P.xp;
if(xp_mp == 0){
cout<<"FIRST TIME ADQUIRING XP!"<<endl;
xp_mp = PLvL * 1000;
getch();
}
LvL_D = xpm / xp_mp;
if(LvL_D >= 1){
PLvL++;
xpm = xpm - xp_mp;
P.Level = PLvL;
P.xp = xpm;
xp_mp += 1000;
P.xpmp = xp_mp;
P.health_max += 40;
cout<<"[|*|]>LEVEL UP!<[|*|]"<<endl;
cout<<"[|*|]>MAX HEALTH + 40P!<[|*|]"<<endl;
cout<<"[>>NEW LEVEL: "<<P.Level<<"<<]"<<endl;
save();
getch();
}
}
All i know is that PLvL stands for Player level, either xpm or xp_mp is XP multiplier and the other is the actual xp andi have no clue what LvL_D is.
There's also a class named player that contains the actual xp and level thats why there is P.Level p.xp and p.xpmp.
This is actually confusing, i should make it from scratch...
this is supposed to be a leveling system that now im not being able to understand mainly cuz my variable names:
void Leveling(){
int PLvL;
int xpm;
int xp_mp;
double LvL_D;
xp_mp = P.xpmp;
PLvL = P.Level;
xpm = P.xp;
if(xp_mp == 0){
cout<<"FIRST TIME ADQUIRING XP!"<<endl;
xp_mp = PLvL * 1000;
getch();
}
LvL_D = xpm / xp_mp;
if(LvL_D >= 1){
PLvL++;
xpm = xpm - xp_mp;
P.Level = PLvL;
P.xp = xpm;
xp_mp += 1000;
P.xpmp = xp_mp;
P.health_max += 40;
cout<<"[|*|]>LEVEL UP!<[|*|]"<<endl;
cout<<"[|*|]>MAX HEALTH + 40P!<[|*|]"<<endl;
cout<<"[>>NEW LEVEL: "<<P.Level<<"<<]"<<endl;
save();
getch();
}
}
All i know is that PLvL stands for Player level, either xpm or xp_mp is XP multiplier and the other is the actual xp andi have no clue what LvL_D is.
There's also a class named player that contains the actual xp and level thats why there is P.Level p.xp and p.xpmp.
This is actually confusing, i should make it from scratch...