Skip to content
Snippets Groups Projects
Commit 90021de6 authored by Isse's avatar Isse
Browse files

Merge branch 'isse/fix-directions-all-towns' into 'master'

Use plot kind meta instead of just plotkind to find plots for npcs

See merge request !4848
parents 768bc2e8 600e7990
No related branches found
No related tags found
Loading
Pipeline #1743540552 passed
......@@ -244,14 +244,14 @@ fn directions<S: State>(session: DialogueSession) -> impl Action<S> {
responses.push((
Content::localized("dialogue-direction-workshop"),
direction_to_nearest(
|p| matches!(p.kind(), PlotKind::Workshop(_)),
|p| matches!(p.kind().meta(), Some(PlotKindMeta::Workshop { .. })),
|_| Content::localized("hud-map-workshop"),
),
));
responses.push((
Content::localized("dialogue-direction-airship_dock"),
direction_to_nearest(
|p| matches!(p.kind(), PlotKind::AirshipDock(_)),
|p| matches!(p.kind().meta(), Some(PlotKindMeta::AirshipDock { .. })),
|_| Content::localized("hud-map-airship_dock"),
),
));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment