Eating and auto eat

Eating and auto eat

Demo 0.11.2

How it works

Eating

  1. Eating by hand heals Healing and uses one food unless Food preservation chance keeps it. It does nothing at full hitpoints, and in combat it restarts your attack turn.
  2. Auto eat checks after each loss of hitpoints that leaves you alive, and eats when hitpoints are at or below round(Auto eat threshold × max hitpoints).
  3. It eats max(1, floor((Auto eat limit × max hitpoints − hitpoints) ÷ Auto eat healing)) food at once, at most what you hold, and heals that many × Auto eat healing. One Food preservation chance roll keeps or spends the whole batch.
  4. A food's own bonuses apply while it is selected and you hold at least one.

Game messages

Automatically consumes food when your Health falls to threshold (hitpoints HP) or lower.

The tooltip of the auto eat mark on your health bar, with your current threshold.

Formulas

Healing
max(trunc(Food food base healing × (1 + Percent healing) + Flat healing), 1)
Auto eat healing
max(trunc(Healing × Auto eat efficiency), 1)
Auto eat threshold
Auto eat limit
Auto eat efficiency

Base values

Base auto eat efficiency
1
Base auto eat limit
1
Base auto eat threshold
0.25

Modifiers

ModifierGranted by
Percent healing
Flat healingNone in the demo
Flat auto eat thresholdGlobal flat auto eat thresholdNone in the demo
Flat auto eat limitGlobal flat auto eat limitNone in the demo
Flat auto eat efficiencyGlobal flat auto eat efficiencyNone in the demo
Food preservation chance