mirror of
https://github.com/zoriya/ForecastingVillage.git
synced 2026-06-05 19:34:28 +00:00
adding bools into player components to enable items in inventory
This commit is contained in:
@@ -15,6 +15,7 @@ struct player_component
|
||||
{
|
||||
gc_component base;
|
||||
int fight_rate;
|
||||
bool inventory_upgrades[4];
|
||||
};
|
||||
|
||||
extern const struct player_component player_component;
|
||||
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "engine.h"
|
||||
#include <stdbool.h>
|
||||
|
||||
void display_inventory_object(gc_scene *scene, struct renderer *rend, int nb);
|
||||
void display_inv_slot(gc_scene *scene, struct renderer *rend, int nb);
|
||||
bool toggle_inventory(gc_engine *engine);
|
||||
|
||||
#endif //MY_RPG_INVENTORY_H
|
||||
|
||||
Reference in New Issue
Block a user