From f1a10b93dfe6963a34fc834751da9154dead9878 Mon Sep 17 00:00:00 2001 From: Shibari <ShibariTOME@Gmail.com> Date: Mon, 22 Jan 2018 19:19:54 -0500 Subject: [PATCH] Increase resting rate dramatically When people complain about lag its often in the context of resting before autoexplore. Normally this is pretty fast, but sometimes an edge case where you have barely any regen of one form or another can make it take hundreds of turns. This has no real gameplay consequence but does exacerbate lag issues from unrelated problems. This changes the resting bonus to not kick in at all for 15 turns (avoiding interactions with life regen buffs and such) but scale much faster and higher after that. --- game/modules/tome/class/Player.lua | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/game/modules/tome/class/Player.lua b/game/modules/tome/class/Player.lua index 7dfebe0bee..68ef2e3f35 100644 --- a/game/modules/tome/class/Player.lua +++ b/game/modules/tome/class/Player.lua @@ -982,7 +982,12 @@ function _M:restCheck() -- Resting improves regen for act, def in pairs(game.party.members) do if game.level:hasEntity(act) and not act.dead then - local perc = math.min(self.resting.cnt / 10, 8) + -- Drastically improve regen while resting as this is one of the most common areas lag causes frustration + -- To avoid interactions with life regen buffs and minimize any other non-QOL impacts we wait 15 turns before doing any enhancement + local perc = 0 + if self.resting.cnt >= 15 then + perc = math.min(self.resting.cnt, 16) + end local old_shield = act.arcane_shield act.arcane_shield = nil act:heal(act.life_regen * perc) -- GitLab