Module food

Interact with food and eating.

Functions

bottleable (body) Can we bottle blood from this?
can_eat (morsel[, hungercheck=true]) Can we eat this (in our current hunger state)?
do_eat () Eat food.
eat (morsel) Eat this item.
edible (morsel) Is this edible?
ischunk (morsel) Is this food a chunk?
ismeaty (morsel) Is this food meaty?
prompt_eat_chunks () Prompt the player to eat chunks.
prompt_inventory_menu () Prompt the player to eat directly from the inventory menu.


Functions

bottleable (body)
Can we bottle blood from this?

Parameters:

Returns:

    boolean if we succeed
can_eat (morsel[, hungercheck=true])
Can we eat this (in our current hunger state)?

Parameters:

  • morsel items.Item
  • hungercheck boolean (default true)

Returns:

    boolean
do_eat ()
Eat food. Tries to eat.

Returns:

    boolean returns true if we did
eat (morsel)
Eat this item.

Parameters:

Returns:

    boolean If we succeeded
edible (morsel)
Is this edible? Differs from can_eat in that it checks temporary forms?

Parameters:

Returns:

    boolean
ischunk (morsel)
Is this food a chunk?

Parameters:

Returns:

    boolean
ismeaty (morsel)
Is this food meaty?

Parameters:

Returns:

    boolean
prompt_eat_chunks ()
Prompt the player to eat chunks.

Returns:

    boolean true if the player ate chunks or if they cancel
prompt_inventory_menu ()
Prompt the player to eat directly from the inventory menu.

Returns:

    boolean true if we ate
generated by LDoc 1.4.6 Last updated 2018-08-21 11:24:55