Skip to content

Commit

Permalink
hocho bounties
Browse files Browse the repository at this point in the history
  • Loading branch information
agustinesco committed Aug 26, 2024
1 parent 2ed543f commit 40eaa79
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions apps/arena/lib/arena/game_updater.ex
Original file line number Diff line number Diff line change
Expand Up @@ -251,18 +251,13 @@ defmodule Arena.GameUpdater do
|> Map.put(:delta_time, delta_time / 1)

# Effects
start_effects =
DateTime.utc_now()
|> DateTime.to_unix(:millisecond)

game_state =
game_state
|> remove_expired_effects()
|> remove_effects_on_action()
|> reset_players_effects()
|> Effect.apply_effect_mechanic_to_entities()

end_effects = DateTime.utc_now() |> DateTime.to_unix(:millisecond)
# Players
start_players =
DateTime.utc_now()
Expand Down Expand Up @@ -364,18 +359,6 @@ defmodule Arena.GameUpdater do
DateTime.utc_now()
|> DateTime.to_unix(:millisecond)

start_bounties =
DateTime.utc_now()
|> DateTime.to_unix(:millisecond)

game_state =
game_state
|> update_bounties_states(state)

end_bounties =
DateTime.utc_now()
|> DateTime.to_unix(:millisecond)

end_players = DateTime.utc_now() |> DateTime.to_unix(:millisecond)
# Projectiles

Expand Down Expand Up @@ -418,7 +401,6 @@ defmodule Arena.GameUpdater do
Logger.info("Players effects con collisions duration: #{end_effects_on_collisions - start_effects_on_collisions}")
Logger.info("Players zone damage duration: #{end_zone_damage - start_zone_damage}")
Logger.info("Players visible players duration: #{end_visible_players - start_visible_players}")
Logger.info("Players bounties duration: #{end_bounties - start_bounties}")
end

tick_duration = System.monotonic_time() - tick_duration_start_at
Expand Down

0 comments on commit 40eaa79

Please sign in to comment.