Skip to content
Permalink
Browse files
Added bit i forgot
  • Loading branch information
mannj15 committed Mar 2, 2020
1 parent 19b49a8 commit ea3f739a8a16e90e29229fa2bcefd52e7eb6fcaa
Showing 1 changed file with 2 additions and 1 deletion.
@@ -7,12 +7,13 @@ class Character
{
public:

int health=10,xp=0,attack=4,x=1,y=1,inventory[8],maxhp=10,level=1;
int health=10,xp=0,attack=4,x=1,y=1,inventory[8],maxhp=10,level=1,oldxp=xp;

void Movement(int Vertical, int Horizontal);

void LevelUp()
{
oldxp=xp;
level+=1;
maxhp+=2;
health=maxhp;

0 comments on commit ea3f739

Please sign in to comment.