# species sliders for carnivores
#
# === input variables ===
# speed_points
# attack_points
# defend_points
# stealth_points
# climb_points
# swim_points
# tribe_points
# turn_rate
# combat_turn_speed
# combat_move_speed
# combat_attack_chance
# combat_dodge_chance
# combat_dodge_speed
# combat_attack_time
# combat_attack_length
# combat_max_angle
# food_points_needed_to_mate
# npc_evolution_points
# run_speed
# walk_speed
# time_to_reach_max_speed
# attack
# defend
# climb
# swim
# stealth
# avatar_is_carnivore: 0 = no, 1 = yes
#
# === output variable ===
# food_points_needed_to_mate
# should_evolve_npcs
# run_speed
# walk_speed
# time_to_reach_max_speed
# attack
# defend
# climb
# swim
# stealth
# turn_rate
# combat_turn_speed
# combat_move_speed
# combat_attack_chance
# combat_dodge_chance
# combat_dodge_speed
# combat_attack_time
# combat_attack_length
# combat_max_angle

if (avatar_is_carnivore==1)

walk_speed = 2.3 + 0*speed_points # 0.1
run_speed = 7 + 0*speed_points #1
turn_rate = 2.0

attack = 10 + 0*attack_points #2
stealth = stealth_points

climb = 0*climb_points #0.25
swim = 0*swim_points #0.25

combat_turn_speed = 2.0 + (0 * speed_points) #0.2
combat_move_speed = 3.3 + (0 * speed_points) #0.2
combat_attack_time = 500 
combat_attack_length = 0.5 + (0 * attack_points) #0.1
combat_max_angle = 15

endif


#species sliders for herbivores

if (avatar_is_carnivore==0)

walk_speed = 2.3 + 0*speed_points # 0.1
run_speed = 7 + 0*speed_points #1
turn_rate = 2.0

attack = 5 + 0*attack_points #2
stealth = stealth_points

climb = 0*climb_points #0.25
swim = 0*swim_points #0.25

combat_turn_speed = 2.0 + (0 * speed_points) #0.2
combat_move_speed = 3.3 + (0 * speed_points) #0.2
combat_attack_time = 500 
combat_attack_length = 0.5 + (0 * attack_points) #0.1
combat_max_angle = 15

endif

#food points to mate
total_points = stealth_points + speed_points + attack_points + defend_points + climb_points + swim_points
food_points_needed_to_mate = 50 + 10*total_points


## Bounds checking
if (stealth_points > 5) stealth_points = 5 endif
if (climb > 1) climb = 1 endif
if (swim > 1) swim = 1 endif




should_evolve_npcs = 0

if (total_points/npc_evolution_points >= 2.0)
 should_evolve_npcs = 0
endif


#species data not relevant to avatar (since choice made by player)
# combat_attack_chance = combat_attack_chance
# combat_dodge_chance = combat_dodge_chance
# combat_dodge_speed = combat_dodge_speed