Log.DebugFormat("[DominusFight] Now resetting task state.");
Log.DebugFormat("[DominusFight] Now resetting task state.");
_skip = false;
_skip = false;
}
}
/// <summary>
/// <summary>
/// This task helps BasicGrindBot stay in the Dominus boss fight area, resetting exploration to
/// This task helps BasicGrindBot stay in the Dominus boss fight area, resetting exploration to
/// keep the bot moving around to trigger different phases.
/// keep the bot moving around to trigger different phases.
/// </summary>
/// </summary>
public class HandleDominusArea : ITask
public class HandleDominusArea : ITask
{
{
private bool _enabled = true;
private bool _enabled = true;
private bool _skip;
/// <summary>The name of this task.</summary>
/// <summary>The name of this task.</summary>
public string Name
public string Name
{
{
get { return "HandleDominusArea"; }
get { return "HandleDominusArea"; }
}
}
/// <summary>A description of what this task does.</summary>
/// <summary>A description of what this task does.</summary>
public string Description
public string Description
{
{
get { return "This task helps BasicGrindBot stay in the Dominus boss fight area, resetting exploration to keep the bot moving around to trigger different phases."; }
get { return "This task helps BasicGrindBot stay in the Dominus boss fight area, resetting exploration to keep the bot moving around to trigger different phases."; }
}
}
/// <summary>The author of this task.</summary>
/// <summary>The author of this task.</summary>
public string Author
public string Author
{
{
get { return "Bossland GmbH"; }
get { return "Bossland GmbH"; }
}
}
/// <summary>The version of this task.</summary>
/// <summary>The version of this task.</summary>
public Version Version
public Version Version
{
{
get { return new Version(0, 0, 1, 1); }
get { return new Version(0, 0, 1, 1); }
}
}
private Vector2i _towerFightStarterPos;
private Vector2i _towerFightStarterPos;
/// <summary>
/// <summary>
/// The tasks's execution logic.
/// The tasks's execution logic.
/// </summary>
/// </summary>
/// <returns>true if the TaskManager should not execute any other tasks, and false if it should.</returns>
/// <returns>true if the TaskManager should not execute any other tasks, and false if it should.</returns>
public async Task<bool> Execute()
public async Task<bool> Execute()
{
{
if (!LokiPoe.CurrentWorldArea.IsOverworldArea)
if (!LokiPoe.CurrentWorldArea.IsOverworldArea)
return false;
return false;
if (_skip)
return false;
// When we first spawn into the area, exploration should take us within range of everything.
// When we first spawn into the area, exploration should take us within range of everything.