forked from liza/Questionable
Don't tp in same zone
This commit is contained in:
parent
a2a36c5156
commit
b6ee34d338
@ -53,6 +53,8 @@ internal sealed class Configuration : IPluginConfiguration
|
|||||||
{
|
{
|
||||||
public bool DebugOverlay { get; set; }
|
public bool DebugOverlay { get; set; }
|
||||||
public bool NeverFly { get; set; }
|
public bool NeverFly { get; set; }
|
||||||
|
|
||||||
|
public bool NeverPortInSameZone { get; set; }
|
||||||
public bool AdditionalStatusInformation { get; set; }
|
public bool AdditionalStatusInformation { get; set; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -58,6 +58,7 @@ internal static class AetheryteShortcut
|
|||||||
IClientState clientState,
|
IClientState clientState,
|
||||||
IChatGui chatGui,
|
IChatGui chatGui,
|
||||||
ICondition condition,
|
ICondition condition,
|
||||||
|
Configuration configuration,
|
||||||
AetheryteData aetheryteData) : TaskExecutor<Task>
|
AetheryteData aetheryteData) : TaskExecutor<Task>
|
||||||
{
|
{
|
||||||
private bool _teleported;
|
private bool _teleported;
|
||||||
@ -154,7 +155,7 @@ internal static class AetheryteShortcut
|
|||||||
{
|
{
|
||||||
if (!skipConditions.Never)
|
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)");
|
logger.LogInformation("Skipping aetheryte teleport due to SkipCondition (InSameTerritory)");
|
||||||
return true;
|
return true;
|
||||||
|
@ -452,6 +452,13 @@ internal sealed class ConfigWindow : LWindow, IPersistableWindowConfig
|
|||||||
Save();
|
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;
|
bool additionalStatusInformation = _configuration.Advanced.AdditionalStatusInformation;
|
||||||
if (ImGui.Checkbox("Draw additional status information", ref additionalStatusInformation))
|
if (ImGui.Checkbox("Draw additional status information", ref additionalStatusInformation))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user