forked from NotAShelf/rogged
dev: added step_count and health recovery
Every 15 steps the player will regain 1 HP, unless they are at max HP. Also added commented code for later hunger if this is to be implemented. Played around with step # and 15 seems okay until hunger is implemented
This commit is contained in:
parent
cf41ea8dcf
commit
5e3ba209e0
2 changed files with 126 additions and 113 deletions
|
|
@ -44,6 +44,7 @@ typedef struct {
|
|||
int attack;
|
||||
int defense;
|
||||
int floor;
|
||||
int step_count;
|
||||
Item inventory[MAX_INVENTORY];
|
||||
int inventory_count;
|
||||
} Player;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue