Skip to content

Commit

Permalink
Make ghosted default to false
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokya committed Jun 15, 2024
1 parent c15e5bd commit 9d31c01
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion EndlessClient/Controllers/ArrowKeyController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ private void AttemptToStartWalking()
_characterAnimationActions.StartWalking(Option.None<MapCoordinate>(), true);
break;
case WalkValidationResult.Walkable:
_characterAnimationActions.StartWalking(Option.None<MapCoordinate>(), false);
_characterAnimationActions.StartWalking(Option.None<MapCoordinate>());
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion EndlessClient/Controllers/MapInteractionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ public void LeftClick(IMapCellState cellState)
&& !_characterProvider.MainCharacter.RenderProperties.IsActing(CharacterActionState.Attacking)
&& !_spellSlotDataRepository.SelectedSpellSlot.HasValue)
{
_characterAnimationActions.StartWalking(Option.Some(cellState.Coordinate), false);
_characterAnimationActions.StartWalking(Option.Some(cellState.Coordinate));
_hudControlProvider.GetComponent<IMapRenderer>(HudControlIdentifier.MapRenderer)
.AnimateMouseClick();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void Face(EODirection direction)
Animator.MainCharacterFace(direction);
}

public void StartWalking(Option<MapCoordinate> targetCoordinate, bool ghosted)
public void StartWalking(Option<MapCoordinate> targetCoordinate, bool ghosted = false)
{
if (!_hudControlProvider.IsInGame)
return;
Expand Down Expand Up @@ -422,7 +422,7 @@ public interface ICharacterAnimationActions
{
void Face(EODirection direction);

void StartWalking(Option<MapCoordinate> targetCoordinate, bool ghosted);
void StartWalking(Option<MapCoordinate> targetCoordinate, bool ghosted = false);

void CancelClickToWalk();

Expand Down

0 comments on commit 9d31c01

Please sign in to comment.