Note: This function is to isolate all the checks to see if an item is valid (often just checking the quantity). It shouldn't be used a a substitute for those cases which actually want to check the quantity (as the rules for unused objects might change).
| 3730 | // which actually want to check the quantity (as the |
| 3731 | // rules for unused objects might change). |
| 3732 | bool item_def::defined() const |
| 3733 | { |
| 3734 | return base_type != OBJ_UNASSIGNED && quantity > 0; |
| 3735 | } |
| 3736 | /** |
| 3737 | * Has this item's appearance been initialized? |
| 3738 | */ |
no outgoing calls
no test coverage detected