Skip to content

Navigator.go vs revertToLastRoom in context of no link and a "bloker" trigger #48

@lamvak

Description

@lamvak

I added a "bloker" trigger for "Nie widzisz zadnego wyjscia prowadzacego na (.)." for Arkadia ("You see no exit leading (.).")
This leads to a curious problem.
Navigator.go will simply and silently ignore command when there is no link from the current location in the requested direction. That's fine, unless we add said blocker, which (with standard tf bindings) calls for revert, that'll take us one step back. No step was taken, though, so no step should be recalled. That moves the dot actually back one step too far. A solution for this problem might simply be - not to use such a blocker.
On the other hand, that blocker would do great in places where there would normally be links on the map, but those links wouldn't always work. And with Arkadia we have a good example of usefulness of such a blocker: the meadows in Bretonnia, where links are removed at random at each boot. If the blocker would work well, the dot wouldn't get lost there.
Only for proper functioning of this kind of a blocker - such that can be triggered both on an actuall link and when there's no link for requested direction - there must be a distinction between ignored and executed steps.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions