Class ITEM.base_food
Food Item Base
This class is based on the ITEM class, but with extra functions for handling food specific needs.
Class Overview
Class ITEM
| ITEM:Incrementors([food[, alcohol[, superfood]]]) | Set the food and alcohol value of an item. |
| ITEM:SetBottle(data) | Set if the food returns an empty bottle after using. |
| ITEM:SetSobering(data) | Set if the food resets alcohol state. |
| ITEM:SetHidden(data) | Set if the food values are hidden for this item. |
| ITEM:SetFood([food[, alcohol]]) | Set the food / alcohol values for this item, along with the category. |
- ITEM:Incrementors([food[, alcohol[, superfood]]])
-
Set the food and alcohol value of an item.
Parameters:
- food int Food value. (optional)
- alcohol int Alcohol value. (optional)
- superfood int Superfood value. (optional)
Returns:
- ITEM:SetBottle(data)
-
Set if the food returns an empty bottle after using.
Parameters:
- data bool New bottle value.
Returns:
- ITEM:SetSobering(data)
-
Set if the food resets alcohol state.
Parameters:
- data bool New sobering value.
Returns:
- ITEM:SetHidden(data)
-
Set if the food values are hidden for this item.
Parameters:
- data bool New hidden value.
Returns:
- ITEM:SetFood([food[, alcohol]])
-
Set the food / alcohol values for this item, along with the category.
Parameters:
- food int Food value. (optional)
- alcohol int Alcohol value. (optional)
Returns: