diff --git a/src/main/scala/com/github/unchama/seichiassist/database/manipulators/PlayerDataManipulator.scala b/src/main/scala/com/github/unchama/seichiassist/database/manipulators/PlayerDataManipulator.scala index 3593dec0ed..bce4e4a1cd 100644 --- a/src/main/scala/com/github/unchama/seichiassist/database/manipulators/PlayerDataManipulator.scala +++ b/src/main/scala/com/github/unchama/seichiassist/database/manipulators/PlayerDataManipulator.scala @@ -111,7 +111,7 @@ class PlayerDataManipulator(private val gateway: DatabaseGateway) { val LastLong = LastDate.getTime val dateDiff = (TodayLong - LastLong) / (1000 * 60 * 60 * 24) - val shouldIncrementChainVote = dateDiff <= 4L + val shouldIncrementChainVote = dateDiff <= 2L val newCount = if (shouldIncrementChainVote) { sql"""select chainvote from playerdata where name = $name""" diff --git a/src/main/scala/com/github/unchama/seichiassist/task/PlayerDataLoading.scala b/src/main/scala/com/github/unchama/seichiassist/task/PlayerDataLoading.scala index 80d9ed009a..e2bf95fa3d 100644 --- a/src/main/scala/com/github/unchama/seichiassist/task/PlayerDataLoading.scala +++ b/src/main/scala/com/github/unchama/seichiassist/task/PlayerDataLoading.scala @@ -236,7 +236,7 @@ object PlayerDataLoading { if (dateDiff >= 1L) { val newTotalLoginDay = playerData.loginStatus.totalLoginDay + 1 val newConsecutiveLoginDays = - if (dateDiff <= 4L) + if (dateDiff <= 2L) playerData.loginStatus.consecutiveLoginDays + 1 else 1