rat_brain
{
    setTargetWhenAttacked
    setTargetWhenFriendIsAttacked: rat_friend_list
    setTarget: rat_enemy_list, 1
    moveOnTarget: 300
    followTarget
    fleeWhenAttacked

    subBrain: conditionPropertyRatioRange(CURRENT_NUTRITION, 0, 0.8), rat_eat
    subBrain: conditionPropertyRatioRange(CURRENT_NUTRITION, 0, 0.2), rat_desperate_hunt
    #subBrain: conditionPropertyRatioRange(CURRENT_NUTRITION, 0.8, 1.0), rat_reproduce

    idle: 300
}

rat_eat
{
    setItemGrabTarget: FOOD_TARGET, omnivore_diet
    useItemTarget: FOOD_TARGET
    goToItemTarget: FOOD_TARGET

    setTarget: rat_feed_targets_list

    useAbility: dig_worm
}

rat_desperate_hunt
{
    setTarget: rat_desperate_targets_list
}

rat_reproduce
{
    useAbility: reproduce_rat
}