mirror of
https://gitee.com/sui-feng-cb/AzurLaneAutoScript1
synced 2026-03-15 14:37:20 +08:00
Revamped exercise to use date, configurations, and opponent_change_count. Added several helper methods to save data as needed and allow re-runs of exercise if needed. Added new mode 'easiest_else_exp' and exclusive method for mode as this performs exactly two rounds of pvp then moves onto to the next change in 4 opponents. Just as it describes, if unable to beat easiest opponent then switch to max exp opponent and accept the loss. Both _exercise_once and _excercise_easiest_else_exp have been tested and seem to be behaving correctly under the revamped exercise implementation.
This commit is contained in:
@@ -65,7 +65,7 @@ class Opponent:
|
||||
# power = np.sum(self.power) / 6
|
||||
# return level - (power - 1000) / 30
|
||||
|
||||
if method == "easiest":
|
||||
if "easiest" in method:
|
||||
level = (1 - (np.sum(self.level) / MAX_LVL_SUM)) * 100
|
||||
team_pwr_div = np.count_nonzero(self.level) * PWR_FACTOR
|
||||
avg_team_pwr = np.sum(self.power) / team_pwr_div
|
||||
|
||||
Reference in New Issue
Block a user