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:
@@ -655,6 +655,18 @@ func (p *AdventurePlugin) runAutopilotWalk(ctx MessageContext, maxRooms int, com
|
||||
IsMultiRegionZone(fresh.ZoneID) {
|
||||
if cur, ok := CurrentRegion(fresh); ok {
|
||||
if next, ok := nextRegion(fresh.ZoneID, cur.ID); ok {
|
||||
// A region crossing burns a transit day + supplies and
|
||||
// draws unprotected wandering damage. On the background
|
||||
// walk, don't cross while the player is weak — preflight
|
||||
// HP/SU and hand the crossing back to a foreground
|
||||
// `!region travel` / `!expedition run` if either is low.
|
||||
if compact {
|
||||
if msg, stop := autopilotPreflight(ctx.Sender, fresh); stop {
|
||||
finalMsg = res.final + "\n\n" + msg
|
||||
reason = stopPreflight
|
||||
break
|
||||
}
|
||||
}
|
||||
stream = append(stream, res.final)
|
||||
transit, terr := p.advanceToNextRegion(ctx.Sender, fresh, cur, next)
|
||||
if terr != nil {
|
||||
|
||||
Reference in New Issue
Block a user