Skip to content

Commit

Permalink
Merge pull request #1886 from GiganticMinecraft/improvement/issue1873
Browse files Browse the repository at this point in the history
連続判定を2日に戻す
  • Loading branch information
Lucky3028 authored Feb 9, 2023
2 parents 04a2c45 + c38cd57 commit 727a7cf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 727a7cf

Please sign in to comment.