Skip to content

Commit

Permalink
feat: 전투력 계산을 최근 31일 동안의 최대값으로 변경
Browse files Browse the repository at this point in the history
  • Loading branch information
yechan-kim committed Sep 16, 2024
1 parent 6d5e675 commit a04ffbc
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ private String minusDate(String dateStr, int days) {
private long calculateMaxCombatPower(String ocid, String date) throws IOException {
long maxCombatPower = -1L;

for (int i = 0; i < 7; i++) {
for (int i = 0; i < 31; i++) {
maxCombatPower = Math.max(maxCombatPower,
fetchCharacterData("/character/stat?ocid=" + ocid + "&date=" + minusDate(date, i), CharacterStatInfoResponse.class).finalStats().stream()
.filter(stat -> stat.statName().equals("전투력"))
Expand Down

0 comments on commit a04ffbc

Please sign in to comment.