returns true if there is an item in the inventory with the given type/id
| 978 | |
| 979 | // returns true if there is an item in the inventory with the given type/id |
| 980 | bool Inventory::CheckItem(int type, int id) { |
| 981 | // mprintf(0,"Inventory System: CheckItem\n"); |
| 982 | if (FindItem(type, id)) |
| 983 | return true; |
| 984 | else |
| 985 | return false; |
| 986 | } |
| 987 | |
| 988 | // saves the inventory to the file (returns number of bytes written) |
| 989 | int Inventory::SaveInventory(CFILE *file) { |
no outgoing calls
no test coverage detected