mirror of
https://github.com/prosolis/gogobee.git
synced 2026-07-16 00:52:40 +00:00
Phase-H review fixes: camp, fork streak, pet proc, BG transit, legacy streak
- Camp: campLocationCheck rejects only on live combat; no-encounter and post-kill rooms are campable (kills the misleading "clear it first"). - Fork: markActedToday moved after the pending-fork early-return so spamming !zone advance at a fork no longer keeps the daily streak alive. - Pet whiff/deflect: single proc spent on the first multiattack swing only (was applied to every swing); also dedups the per-swing event spam. - Autopilot: background region crossing now runs an HP/SU preflight and pauses if low, instead of burning a transit day while the player is idle. - Legacy streak: acted-branch restamps LastActionDate=today so a purely-legacy actor's streak no longer resets to 1 every night.
This commit is contained in:
@@ -486,6 +486,11 @@ func (p *AdventurePlugin) midnightReset() error {
|
||||
if char.CurrentStreak > char.BestStreak {
|
||||
char.BestStreak = char.CurrentStreak
|
||||
}
|
||||
// Restamp to today (mirrors the busy branch above). A purely-legacy
|
||||
// actor whose action path bumps CombatActionsUsed/HarvestActionsUsed
|
||||
// but never stamps LastActionDate lands here with a stale date; without
|
||||
// this its streak would reset to 1 every night even with continuous play.
|
||||
char.LastActionDate = today
|
||||
_ = saveAdvCharacter(&char)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user