ifdef::env-github[]
:tip-caption: :bulb:
:note-caption: :information_source:
:important-caption: :heavy_exclamation_mark:
:caution-caption: :fire:
:warning-caption: :warning:
endif::[]
:toc: left
:toclevels: 5

= Edible

This module defines a generic edible item.

== Extension

=== Server

[source,lua]
----
self.cfg
self.types 
self.effects 
self.edibles 

-- id: identifier (string)
-- action_name: (string)
-- on_consume(user, edible)
Edible:defineType(id, action_name, on_consume)

-- id: identifier (string)
-- on_effect(user, value)
Edible:defineEffect(id, on_effect)

-- id: identifier (string)
-- type: edible type
-- effects: map of effect => value
-- name: (string)
-- description: (html)
-- weight
Edible:defineEdible(id, type, effects, name, description, weight)
----

== Item

=== edible

`edible|<id>`

[horizontal]
id:: edible id

.Example
[horizontal]
`edible|tacos`:: a tacos
