
# drive player out of the nest if hungry
if (hunger <= 33) health = health -2 
else health = health + 3
endif

if (hunger <= 33) energy = energy -0.7 
else energy = energy + 2
endif

# bounds checking
if (health > 100) 
  health = 100
endif

if (energy > 100) 
  energy = 100
endif