| 1 | /** Out-of-combat passive HP regen after this quiet period (ms). */ |
| 2 | export const PASSIVE_HP_REGEN_DELAY_MS = 60_000; |
| 3 | /** 1 HP per 10 seconds. */ |
| 4 | export const PASSIVE_HP_REGEN_PER_SECOND = 0.1; |
| 5 | |
| 6 | export function markHealthDamaged (health, now = Date.now()) |
| 7 | { |
| 8 | if (!health) |
| 9 | { return; } |
| 10 | health.lastDamageAt = now; |
| 11 | } |