Skip to content
Snippets Groups Projects
Commit d9d51f9a authored by Ian Prins's avatar Ian Prins
Browse files

add maxStrenght attribute (strength can be sapped)

parent c0b43fa2
No related branches found
No related tags found
No related merge requests found
......@@ -10,6 +10,7 @@ class PlayerChar : public Mob {
public:
PlayerChar(Coord);
int getStrength();
int getMaxStrength();
int getArmor();
int getGold();
int getHP();
......@@ -19,7 +20,7 @@ class PlayerChar : public Mob {
int maxDelved();
private:
const int START_HP=10, START_ARMOR=0, START_STR=1, START_GOLD=0, START_LEVEL=1;
int HP, maxHP, armor, strength, gold, level;
int HP, maxHP, armor, strength, maxStrength, gold, level;
ItemZone backpack;
bool hasFoundAmulet;
int maxDepth;
......
......@@ -9,6 +9,7 @@ PlayerChar::PlayerChar(Coord pos)
, maxHP(START_HP)
, armor(START_ARMOR)
, strength(START_STR)
, maxStrength(START_STR)
, gold(START_GOLD)
, level(START_LEVEL)
, backpack(ItemZone())
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment