#Healing behavior

#Input variables
#heal_tool_level (level of the heal tool)
#current_activity 0 = moving home, 1 = resting at home

#Output variables
#healing_interval (number of seconds to heal a health point)

#health_drain - Health lost per second (for consistency with other interactions, leave 0)
#energy_drain - Energy lost per second
#food_drain - Food lost per second

heal_interval = 2.5 - 0.8 * heal_tool_level

health_drain = 0
if( current_activity == 0 )
   energy_drain = 1
   food_drain = 0.7
else
   energy_drain = 0
   food_drain = 0.7
endif