This commit is contained in:
2025-06-08 15:55:41 -05:00
parent 823aa454bd
commit 5cc38e14d6
8 changed files with 116 additions and 5 deletions

View File

@ -29,6 +29,7 @@ typedef enum {
typedef struct _entity_t {
entitytype_t type;
uint8_t x, y;
uint8_t subX, subY;
entitydir_t dir;
// Per type data

View File

@ -23,6 +23,6 @@ iteminfo_t ITEM_INFO[ITEM_TYPE_COUNT] = {
};
static inline bool_t itemTypeIsStackable(const itemtype_t type) {
assert(type < ITEM_TYPE_COUNT, "Invalid item type");
assertTrue(type < ITEM_TYPE_COUNT, "Invalid item type");
return ITEM_INFO[type].stackable;
}