1
0
Fork 0
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:
A.M. Rowsell 2026-03-20 11:59:59 -04:00
commit 5e3ba209e0
Signed by: amr
GPG key ID: E0879EDBDB0CA7B1
2 changed files with 126 additions and 113 deletions

View file

@ -44,6 +44,7 @@ typedef struct {
int attack;
int defense;
int floor;
int step_count;
Item inventory[MAX_INVENTORY];
int inventory_count;
} Player;