
# -> Reset adv trigger
advancement revoke @s only overly_realistic:items/consumption/consume_foods

# -> Sanity RNG
execute if predicate overly_realistic:items/foods/general_food_consume_sanity_rng run \
    function overly_realistic:players/mental_health/add_to_mental_health_by_1

# -> If player is ill, on RNG, vomit if possible
execute if entity @s\
    [\
        tag=OverlyRealistic.Player.IsSick,\
        scores={OverlyRealistic.Player.Status_IllnessType_1=1..,OverlyRealistic.Player.Status_IllnessType_2=1..,OverlyRealistic.Player.Status_IllnessType_3=1..}\
    ] \
    if score #or.setting.vomiting OverlyRealistic.Settings.ArbitrarySetting matches 1 \
    if predicate overly_realistic:player/illness/vomit_rng run \
        function overly_realistic:players/illness/events/vomit/player_vomit
