#Raiding behavior

#Input variables
#my_party_size (number of raiders in this raiding group)
#my_attack_level  (aka hunt tool level)
#my_defense_level
#my_recruit_level
#other_size (number of creatures in the other tribe)
#other_attack_level 
#other_defense_level

#Output variables
#raid_time - seconds to spend at the enemy hut
#food_stolen
#targets_killed - number of enemies killed (rounds down)
#targets_recruited - number of enemies recruited (rounds down)
#my_damage - Health loss for each recruiter
#my_total_damage - Health loss to be shared among all recruiters
#my_energy_cost - Energy loss to each recruiter

raid_time = 5
food_stolen = (3 + 7 * RAND) * (my_party_size - other_size)
targets_killed = (my_party_size + my_attack_level - other_size - other_defense_level) * RAND

my_damage = 75 + RAND * 50
my_total_damage = 100 + 75 * other_size * RAND - 50 * my_defense_level
my_energy_cost = 35 + RAND * 25

targets_recruited = 0
#if (RAND < (0.1 * party_size + 0.1 * recruit_tool_level))
#   targets_recruited = 1
#else
#   targets_recruited = 0
#endif