
vampire_brain
{
    subBrain: conditionAlways(), vampire_combat

    subBrain: conditionPropertyRatioRange(CURRENT_NUTRITION, 0.0, 0.5), vampire_eat, unset_creature_target

    executeSelfTasks
    executeCityTasks

    goToRoom
    idle: 500

    # self task creators
    manageLoadout
}

vampire_combat
{
    setTargetWhenAttackedNTimesWithException: 1, vampire_friend_list
    setTargetWhenFriendIsAttacked: vampire_friend_list
    setTarget: undead_human_target_list
    subBrain: conditionHasPathToTarget(), vampire_combat_abilities
    fleeOnLowHealth: 10
    faceTarget: 300
    moveOnTarget: 300
    followTarget
    fleeWhenAttacked
}

vampire_combat_abilities
{
    useRandomAbilities: 300
}

vampire_eat
{
    setCreatureTarget: FEED_TARGET, vampire_allowed_feed_list
    useAbilityOnCreature: vampire_feed, FEED_TARGET
    goToCreatureTarget: FEED_TARGET    
}

unset_creature_target
{
    setCreatureTarget: FEED_TARGET, INVALID
}
