Skip to content

Commit

Permalink
Change tips number
Browse files Browse the repository at this point in the history
  • Loading branch information
Lucas Lima committed Dec 8, 2021
1 parent 541a0f0 commit 2daeb53
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 14 deletions.
13 changes: 2 additions & 11 deletions app/src/main/java/dev/lucasnlm/antimine/GameActivity.kt
Original file line number Diff line number Diff line change
Expand Up @@ -456,11 +456,7 @@ class GameActivity :
tipsCounter.apply {
visibility = if (canUseHelpNow) View.VISIBLE else View.GONE
text = if (canRequestHelpWithAds) {
if (instantAppManager.isEnabled(applicationContext)) {
"+" + 10.toL10nString()
} else {
"+" + 25.toL10nString()
}
"+5"
} else {
gameViewModel.getTips().toL10nString()
}
Expand Down Expand Up @@ -489,12 +485,7 @@ class GameActivity :
activity = this@GameActivity,
skipIfFrequent = false,
onRewarded = {
val value = if (instantAppManager.isEnabled(applicationContext)) {
10
} else {
25
}

val value = 5
gameViewModel.revealRandomMine(false)
gameViewModel.sendEvent(GameEvent.GiveMoreTip(value))
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ class ThemeActivity : ThematicActivity(R.layout.activity_theme), Slider.OnChange
cloudSaveManager.uploadSave()
}

squareSize.value = it.squareSize.toFloat()
squareDivider.value = it.squareDivider.toFloat()
squareRadius.value = it.squareRadius.toFloat()
squareSize.value = (it.squareSize / squareSize.stepSize).toInt() * squareSize.stepSize
squareDivider.value = (it.squareDivider / squareSize.stepSize).toInt() * squareSize.stepSize
squareRadius.value = (it.squareRadius / squareSize.stepSize).toInt() * squareSize.stepSize
}
}
}
Expand Down

0 comments on commit 2daeb53

Please sign in to comment.