Skip to main content

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

ParameterDescription
BaseObjectThe food object entity to check
CompareTypeEqual: target is a partially-eaten ServedFood. NotEqual: it is not.

Examples

DescriptionBaseObjectCommandCompareType
Checks whether target food is leftover.TargetIsLeftoverFoodEqual
Checks whether target food is not leftover.TargetIsLeftoverFoodNotEqual