Compare commits

...

1 Commits

Author SHA1 Message Date
Simon Latusek
b6ee34d338 Don't tp in same zone 2025-01-13 10:27:56 +01:00
3 changed files with 11 additions and 1 deletions

View File

@ -53,6 +53,8 @@ internal sealed class Configuration : IPluginConfiguration
{
public bool DebugOverlay { get; set; }
public bool NeverFly { get; set; }
public bool NeverPortInSameZone { get; set; }
public bool AdditionalStatusInformation { get; set; }
}

View File

@ -58,6 +58,7 @@ internal static class AetheryteShortcut
IClientState clientState,
IChatGui chatGui,
ICondition condition,
Configuration configuration,
AetheryteData aetheryteData) : TaskExecutor<Task>
{
private bool _teleported;
@ -154,7 +155,7 @@ internal static class AetheryteShortcut
{
if (!skipConditions.Never)
{
if (skipConditions is { InSameTerritory: true })
if (skipConditions is { InSameTerritory: true } || configuration.Advanced.NeverPortInSameZone)
{
logger.LogInformation("Skipping aetheryte teleport due to SkipCondition (InSameTerritory)");
return true;

View File

@ -452,6 +452,13 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
Save();
}
bool neverPortInSameZone = this._configuration.Advanced.NeverPortInSameZone;
if (ImGui.Checkbox("Disable Aetheryte teleport in same zone", ref neverPortInSameZone))
{
_configuration.Advanced.NeverPortInSameZone = neverPortInSameZone;
Save();
}
bool additionalStatusInformation = _configuration.Advanced.AdditionalStatusInformation;
if (ImGui.Checkbox("Draw additional status information", ref additionalStatusInformation))
{