@@ -37,7 +37,7 @@ defmodule BotManager.BotStateMachine do
37
37
38
38
case next_state do
39
39
:moving ->
40
- move ( bot_player , bot_state_machine , game_state . zone . radius )
40
+ move ( bot_state_machine , game_state . zone . radius )
41
41
42
42
:attacking ->
43
43
use_skill ( % {
@@ -84,7 +84,7 @@ defmodule BotManager.BotStateMachine do
84
84
)
85
85
86
86
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 )
88
88
else
89
89
bot_state_machine =
90
90
Map . put (
@@ -111,7 +111,7 @@ defmodule BotManager.BotStateMachine do
111
111
)
112
112
113
113
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 )
115
115
else
116
116
bot_state_machine =
117
117
Map . put (
@@ -127,7 +127,7 @@ defmodule BotManager.BotStateMachine do
127
127
end
128
128
129
129
true ->
130
- move ( bot_player , bot_state_machine , game_state . zone . radius )
130
+ move ( bot_state_machine , game_state . zone . radius )
131
131
end
132
132
end
133
133
@@ -160,7 +160,7 @@ defmodule BotManager.BotStateMachine do
160
160
161
161
defp track_player ( game_state , bot_player , bot_state_machine ) do
162
162
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 )
164
164
else
165
165
current_waypoint = hd ( bot_state_machine . path_towards_position )
166
166
@@ -221,7 +221,7 @@ defmodule BotManager.BotStateMachine do
221
221
end
222
222
end
223
223
224
- defp move ( bot_player , bot_state_machine , safe_zone_radius ) do
224
+ defp move ( bot_state_machine , safe_zone_radius ) do
225
225
bot_state_machine =
226
226
determine_position_to_move_to ( bot_state_machine , safe_zone_radius )
227
227
0 commit comments