Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: beyond-all-reason/teiserver
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 47e9fc55ca883e917dccb385201c7320651010ac
Choose a base ref
..
head repository: beyond-all-reason/teiserver
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 1960a99aacfa6d3e5ac38919a08da77f1cb20a79
Choose a head ref
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/teiserver/battle/tasks/seasonal_uncertainty_reset_task.ex
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ defmodule Teiserver.Battle.SeasonalUncertaintyResetTask do

def calculate_new_uncertainty(current_uncertainty, last_update_datetime) do
days_not_played = abs(DateTime.diff(last_update_datetime, Timex.now(), :day))
target_uncertainty = abs(calculate_target_uncertainty(days_not_played))
target_uncertainty = calculate_target_uncertainty(days_not_played)
# The new uncertainty can increase but never decrease
max(target_uncertainty, current_uncertainty)
end
Expand Down