Skip to content

Commit

Permalink
Don't check for vista completion message to save a bit of processing …
Browse files Browse the repository at this point in the history
…time.
  • Loading branch information
Limiana committed Mar 31, 2021
1 parent bcc27fe commit bda16e4
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions Weatherman/Weatherman.cs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,7 @@ public void Initialize(DalamudPluginInterface pluginInterface)
};
HashSet<string> AwayFromVistaMesssages = new HashSet<string>
{
"You have strayed too far from the vista.",
"Sightseeing log entry"
"You have strayed too far from the vista."
};
void HandleChatMessage(XivChatType type, uint senderId, ref SeString sender, ref SeString message, ref bool isHandled)
{
Expand All @@ -127,13 +126,10 @@ void HandleChatMessage(XivChatType type, uint senderId, ref SeString sender, ref
AtVista = true;
WriteLog("Arrived at vista: " + m);
}
foreach (var s in AwayFromVistaMesssages)
else if (AwayFromVistaMesssages.Contains(m))
{
if (m.StartsWith(s))
{
AtVista = false;
WriteLog("Away from vista: " + m);
}
AtVista = false;
WriteLog("Away from vista: " + m);
}
}

Expand Down

0 comments on commit bda16e4

Please sign in to comment.