mirror of
https://github.com/sudoxnym/habitica-android.git
synced 2026-07-13 17:51:57 +00:00
Fix buffs in Stats view
This commit is contained in:
parent
2c050fbbce
commit
a5e386cd58
1 changed files with 8 additions and 8 deletions
|
|
@ -220,14 +220,14 @@ class StatsFragment: BaseMainFragment() {
|
||||||
constitutionStatsView.levelValue = levelStat
|
constitutionStatsView.levelValue = levelStat
|
||||||
perceptionStatsView.levelValue = levelStat
|
perceptionStatsView.levelValue = levelStat
|
||||||
|
|
||||||
totalStrength += currentUser.stats?.buffs?.str?.toInt() ?: 0
|
totalStrength += currentUser.stats?.buffs?.getStr()?.toInt() ?: 0
|
||||||
totalIntelligence += currentUser.stats?.buffs?._int?.toInt() ?: 0
|
totalIntelligence += currentUser.stats?.buffs?.get_int()?.toInt() ?: 0
|
||||||
totalConstitution += currentUser.stats?.buffs?.con?.toInt() ?: 0
|
totalConstitution += currentUser.stats?.buffs?.getCon()?.toInt() ?: 0
|
||||||
totalPerception += currentUser.stats?.buffs?.per?.toInt() ?: 0
|
totalPerception += currentUser.stats?.buffs?.getPer()?.toInt() ?: 0
|
||||||
strengthStatsView.buffValue = currentUser.stats?.buffs?.str?.toInt() ?: 0
|
strengthStatsView.buffValue = currentUser.stats?.buffs?.getStr()?.toInt() ?: 0
|
||||||
intelligenceStatsView.buffValue = currentUser.stats?.buffs?._int?.toInt() ?: 0
|
intelligenceStatsView.buffValue = currentUser.stats?.buffs?.get_int()?.toInt() ?: 0
|
||||||
constitutionStatsView.buffValue = currentUser.stats?.buffs?.con?.toInt() ?: 0
|
constitutionStatsView.buffValue = currentUser.stats?.buffs?.getCon()?.toInt() ?: 0
|
||||||
perceptionStatsView.buffValue = currentUser.stats?.buffs?.per?.toInt() ?: 0
|
perceptionStatsView.buffValue = currentUser.stats?.buffs?.getPer()?.toInt() ?: 0
|
||||||
|
|
||||||
totalStrength += currentUser.stats?.str ?: 0
|
totalStrength += currentUser.stats?.str ?: 0
|
||||||
totalIntelligence += currentUser.stats?._int ?: 0
|
totalIntelligence += currentUser.stats?._int ?: 0
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue