Skip to content

Commit

Permalink
Move a static duration instead
Browse files Browse the repository at this point in the history
  • Loading branch information
ToxicKevinFerm committed May 12, 2024
1 parent 72edef4 commit 12c22d5
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions sim/encounters/light_movement.go
Original file line number Diff line number Diff line change
Expand Up @@ -69,14 +69,8 @@ func (ai *LightMovementAI) ExecuteCustomRotation(sim *core.Simulation) {

for i := 0; i < len(players); i++ {
player := players[i]
moveOut := player.DistanceFromTarget + 10
moveIn := player.DistanceFromTarget - 10

if moveOut <= 40 && moveIn >= 5 {
player.MoveTo(moveOut, sim)
} else if moveIn >= 5 {
player.MoveTo(moveIn, sim)
}
player.MoveDuration(time.Second*2, sim)
}
}

Expand Down

0 comments on commit 12c22d5

Please sign in to comment.