Skip to main content

apply_consume_effect

Function apply_consume_effect 

Source
pub(crate) fn apply_consume_effect(
    effect: &ConsumeEffectData,
    world: &Arc<World>,
    user: &dyn LivingEntity,
)
Expand description

Applies one ConsumeEffectData entry from a Consumable.on_consume_effects list, by looking up its registered behavior.