Skip to content

Commit 412a89c

Browse files
committed
refactor: remove unused param
1 parent 19c9cfd commit 412a89c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

apps/bot_manager/lib/bot_state_machine.ex

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ defmodule BotManager.BotStateMachine do
3737

3838
case next_state do
3939
:moving ->
40-
move(bot_player, bot_state_machine, game_state.zone.radius)
40+
move(bot_state_machine, game_state.zone.radius)
4141

4242
:attacking ->
4343
use_skill(%{
@@ -84,7 +84,7 @@ defmodule BotManager.BotStateMachine do
8484
)
8585

8686
if Enum.empty?(players_with_distances) do
87-
move(bot_player, bot_state_machine, game_state.zone.radius)
87+
move(bot_state_machine, game_state.zone.radius)
8888
else
8989
bot_state_machine =
9090
Map.put(
@@ -111,7 +111,7 @@ defmodule BotManager.BotStateMachine do
111111
)
112112

113113
if Enum.empty?(players_with_distances) do
114-
move(bot_player, bot_state_machine, game_state.zone.radius)
114+
move(bot_state_machine, game_state.zone.radius)
115115
else
116116
bot_state_machine =
117117
Map.put(
@@ -127,7 +127,7 @@ defmodule BotManager.BotStateMachine do
127127
end
128128

129129
true ->
130-
move(bot_player, bot_state_machine, game_state.zone.radius)
130+
move(bot_state_machine, game_state.zone.radius)
131131
end
132132
end
133133

@@ -160,7 +160,7 @@ defmodule BotManager.BotStateMachine do
160160

161161
defp track_player(game_state, bot_player, bot_state_machine) do
162162
if is_nil(bot_state_machine.path_towards_position) || Enum.empty?(bot_state_machine.path_towards_position) do
163-
move(bot_player, bot_state_machine, game_state.zone.radius)
163+
move(bot_state_machine, game_state.zone.radius)
164164
else
165165
current_waypoint = hd(bot_state_machine.path_towards_position)
166166

@@ -221,7 +221,7 @@ defmodule BotManager.BotStateMachine do
221221
end
222222
end
223223

224-
defp move(bot_player, bot_state_machine, safe_zone_radius) do
224+
defp move(bot_state_machine, safe_zone_radius) do
225225
bot_state_machine =
226226
determine_position_to_move_to(bot_state_machine, safe_zone_radius)
227227

0 commit comments

Comments
 (0)