mirror of
https://github.com/prosolis/gogobee.git
synced 2026-09-14 10:51:09 +00:00
adventure: give the web the three doors it kept pointing at
The web's own refusals named commands it had no button for: "!expedition abandon first", "!expedition leave to walk out alone", "no refund if you cancel early". Three verbs, no arguments, no money. Each Matrix handler becomes framing over a headless twin the order path shares, so the web runs the game's real path: an abandon still disbands the roster, still retires the region runs, still DMs the party, still rolls the emergence pet. The lock asymmetry is per verb and is the thing to be careful about. performExpeditionAbandon and performExpeditionLeave cannot take advUserLock — their Matrix caller holds it across the whole !expedition switch — so their web wrappers do. performBabysitCancel takes it itself, because its caller does not, so its wrapper must not. Both directions are pinned by tests that hang rather than fail on regression. Also flips the two W5a extract tests off setupZoneRunTestDB: it copies data/gogobee.db and skips when it is missing, so they have been green-by-skipping since they were written.
This commit is contained in:
@@ -1123,6 +1123,12 @@ const (
|
||||
AdvOrderExpedition = "expedition_start"
|
||||
AdvOrderResume = "expedition_resume"
|
||||
AdvOrderBabysit = "babysit"
|
||||
// The three doors the web verbs' own refusal text used to name without
|
||||
// offering: `!expedition abandon`, `!expedition leave`, `!adventure babysit
|
||||
// cancel`. None of them takes an argument and none of them spends money.
|
||||
AdvOrderAbandon = "expedition_abandon"
|
||||
AdvOrderLeave = "expedition_leave"
|
||||
AdvOrderBabysitCancel = "babysit_cancel"
|
||||
)
|
||||
|
||||
// PendingOrders asks Pete for web actions waiting on us. A Pete predating the
|
||||
|
||||
Reference in New Issue
Block a user