// priority: 8
ItemEvents.foodEaten(event => {
    let player = event.player;
    if (!player) return;

    // 使用工具函数获取饰品效果数据
    let curiosEffects = get_all_curios_effects(player);
    if (!curiosEffects || curiosEffects.length === 0) return;

    // 遍历所有饰品效果，执行对应策略
    curiosEffects.forEach(effect => {
        let strategy = curios_tetra_food_eat_Strategies[effect.name] || curios_tetra_food_eat_Strategies.default;
        strategy(event, player, effect.level, effect.name,effect.efficiency);
    });
});

const  curios_tetra_food_eat_Strategies = {
//消化器
    'digester': function (event, player, effectLevel, effectname, efficiency){
    let count = player.persistentData.getInt(YingYangCount)
    let nutrition = event.item.item.foodProperties.nutrition * 10
    let staturation =event.item.item.foodProperties.saturationModifier / 10
    updateYingYangCount(player, count + (nutrition + staturation) / 3)
},
    'default': function (event, player, effectLevel, effectname, efficiency) {
    return
} 
}