Go to the source code of this file.
Functions | |
s32 | add_item (s32 itemID) |
Add itemID to player inventory and return inventory slot in which it was placed. | |
s32 | remove_item (s32 itemID) |
Remove first instance of itemID found in player inventory. | |
b32 | has_item (s32 itemID) |
Check whether player has itemID in their inventory. | |
s32 | find_item (s32 itemID) |
Search player inventory for itemID and return first matching array index. | |
s32 | count_item (s32 itemID) |
Search player inventory for itemID and count the number matches. | |
b32 | is_badge_equipped (s32 itemID) |
s32 | get_consumables_count (void) |
s32 | get_consumables_empty (void) |
s32 | store_item (s32 itemID) |
Add itemID to player storage and return slot in which it was placed. | |
s32 | get_stored_count (void) |
s32 | get_stored_empty (void) |
s32 | recover_hp (s32 amt) |
Recover player HP. | |
s32 | recover_fp (s32 amt) |
Recover player FP. | |
s32 add_item | ( | s32 | itemID | ) |
Add itemID
to player inventory and return inventory slot in which it was placed.
Definition at line 146 of file inventory.c.
Referenced by update_item_entity_pickup().
s32 remove_item | ( | s32 | itemID | ) |
Remove first instance of itemID
found in player inventory.
Definition at line 198 of file inventory.c.
b32 has_item | ( | s32 | itemID | ) |
Check whether player has itemID
in their inventory.
Definition at line 337 of file inventory.c.
s32 find_item | ( | s32 | itemID | ) |
Search player inventory for itemID
and return first matching array index.
Definition at line 258 of file inventory.c.
s32 count_item | ( | s32 | itemID | ) |
Search player inventory for itemID
and count the number matches.
itemID
Definition at line 304 of file inventory.c.
b32 is_badge_equipped | ( | s32 | itemID | ) |
itemID
as an equipped badge Definition at line 387 of file inventory.c.
s32 get_consumables_count | ( | void | ) |
Definition at line 423 of file inventory.c.
Referenced by get_consumables_empty().
s32 get_consumables_empty | ( | void | ) |
Definition at line 436 of file inventory.c.
s32 store_item | ( | s32 | itemID | ) |
Add itemID
to player storage and return slot in which it was placed.
Definition at line 369 of file inventory.c.
s32 get_stored_count | ( | void | ) |
Definition at line 440 of file inventory.c.
Referenced by get_stored_empty().
s32 get_stored_empty | ( | void | ) |
s32 recover_hp | ( | s32 | amt | ) |
Recover player HP.
amt | the amount to recover, -1 for full, -2 for full and increase max by 1 (unused) |
Definition at line 2175 of file inventory.c.
Referenced by entity_HeartBlockContent__anim_heal().
s32 recover_fp | ( | s32 | amt | ) |
Recover player FP.
amt | the amount to recover, -1 for full, -2 for full and increase max by 1 (unused) |
Definition at line 2158 of file inventory.c.
Referenced by entity_HeartBlockContent__anim_heal().