Skip to content

Resting

Carmina16 edited this page Mar 24, 2018 · 1 revision

While resting, the game continuously advances the game time by 20 minutes when in the wilderness, or 1 hour when in tavern, and runs corresponding events.

The healing effects occur every hour.

  • The damaged attributes recover by END/10
  • Health, mana, and stamina recover by the formulas below

After having rest, PC is moved to a random tavern target location, and the main quest vision is shown, if applicable.

Restoration

hpMult <- pc.bonusHeal*5 + 60
if pc.class == HEALER then hpMult <- hpMult + 20
hpRest <- (pc.maxHP * hpMult) / 1000 + tavernBonus
if pc.class == BARBARIAN then hpRest <- hpRest + max(0, pc.bonusHeal)
hpRest <- max(1, hpRest)
pc.curHP <- min(pc.maxHP, pc.curHP + hpRest)
stamRest <- (pc.maxStam * (pc.bonusHeal*5 + 70)) / 1000
pc.curStam <- min(pc.maxStam, pc.curStam + stamRest)
if pc.isSpellcaster() and pc.class != SORCERER then
   pc.curMana <- min(pc.maxMana, pc.curMana + pc.maxMana/8)
endif
Clone this wiki locally