Condition_IsLeftoverFood
Description
Checks whether the target food is a partially-eaten ServedFood (leftover). Unlike HasBeenEatenFood (which is true for ANY food whose remaining quantity dropped below its total, including a multi-serving dish that just lost a whole serving), this is true ONLY for ServedFood - the single-serving food Joi actually eats. PreparedFood (a multi-serving dish) only ever loses whole servings via TakeServedFood, so it is always false regardless of how many servings remain, and a fully emptied food (either type) is also false since there is nothing left to be "leftover".
Parameters
| Parameter | Description |
|---|---|
| BaseObject | The food object entity to check |
| CompareType | Equal: target is a partially-eaten ServedFood. NotEqual: it is not. |
Examples
| Description | BaseObject | Command | CompareType |
|---|---|---|---|
| Checks whether target food is leftover. | Target | IsLeftoverFood | Equal |
| Checks whether target food is not leftover. | Target | IsLeftoverFood | NotEqual |