forked from liza/Questionable
Always hide 'Cannot execute at this time' while moving, not only during diving
This commit is contained in:
parent
47d9f090a2
commit
ded6f6bbb2
@ -68,7 +68,7 @@ internal static class MoveTo
|
|||||||
public ITask Move(MoveParams moveParams)
|
public ITask Move(MoveParams moveParams)
|
||||||
{
|
{
|
||||||
return new MoveInternal(moveParams, movementController, gameFunctions,
|
return new MoveInternal(moveParams, movementController, gameFunctions,
|
||||||
loggerFactory.CreateLogger<MoveInternal>(), condition, clientState, dataManager);
|
loggerFactory.CreateLogger<MoveInternal>(), clientState, dataManager);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ITask Land()
|
public ITask Land()
|
||||||
@ -163,26 +163,22 @@ internal static class MoveTo
|
|||||||
private readonly string _cannotExecuteAtThisTime;
|
private readonly string _cannotExecuteAtThisTime;
|
||||||
private readonly MovementController _movementController;
|
private readonly MovementController _movementController;
|
||||||
private readonly ILogger<MoveInternal> _logger;
|
private readonly ILogger<MoveInternal> _logger;
|
||||||
private readonly ICondition _condition;
|
|
||||||
private readonly IClientState _clientState;
|
private readonly IClientState _clientState;
|
||||||
|
|
||||||
private readonly Action _startAction;
|
private readonly Action _startAction;
|
||||||
private readonly Vector3 _destination;
|
private readonly Vector3 _destination;
|
||||||
private readonly MoveParams _moveParams;
|
private readonly MoveParams _moveParams;
|
||||||
private readonly bool _isUnderwaterInitially;
|
|
||||||
private bool _canRestart;
|
private bool _canRestart;
|
||||||
|
|
||||||
public MoveInternal(MoveParams moveParams,
|
public MoveInternal(MoveParams moveParams,
|
||||||
MovementController movementController,
|
MovementController movementController,
|
||||||
GameFunctions gameFunctions,
|
GameFunctions gameFunctions,
|
||||||
ILogger<MoveInternal> logger,
|
ILogger<MoveInternal> logger,
|
||||||
ICondition condition,
|
|
||||||
IClientState clientState,
|
IClientState clientState,
|
||||||
IDataManager dataManager)
|
IDataManager dataManager)
|
||||||
{
|
{
|
||||||
_movementController = movementController;
|
_movementController = movementController;
|
||||||
_logger = logger;
|
_logger = logger;
|
||||||
_condition = condition;
|
|
||||||
_clientState = clientState;
|
_clientState = clientState;
|
||||||
_cannotExecuteAtThisTime = dataManager.GetString<LogMessage>(579, x => x.Text)!;
|
_cannotExecuteAtThisTime = dataManager.GetString<LogMessage>(579, x => x.Text)!;
|
||||||
|
|
||||||
@ -257,8 +253,7 @@ internal static class MoveTo
|
|||||||
|
|
||||||
public bool OnErrorToast(SeString message)
|
public bool OnErrorToast(SeString message)
|
||||||
{
|
{
|
||||||
if (GameFunctions.GameStringEquals(_cannotExecuteAtThisTime, message.TextValue) &&
|
if (GameFunctions.GameStringEquals(_cannotExecuteAtThisTime, message.TextValue))
|
||||||
_condition[ConditionFlag.Diving])
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
Loading…
Reference in New Issue
Block a user