// priority: 8
LootJS.modifiers(event => {
    event.addLootTypeModifier(LootType.ENTITY)
        .apply(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_entity_loot_Strategies[effect.name] || curios_entity_loot_Strategies.default;
                strategy(event, player, effect.level, effect.name,effect.efficiency);
            });
        })
})
const  curios_entity_loot_Strategies = {
//抢夺加成
    'qiang_duo': function (event, player, effectLevel, effectname, efficiency){
    let random = Math.random()
    if (random < effectLevel){
        event.loot.forEach(loot => {
            loot.setCount(loot.getCount() + 1)
        })
    }
},
    'default': function (event, player, effectLevel, effectname, efficiency) {
    return
} 
}