File tree Expand file tree Collapse file tree 4 files changed +13
-12
lines changed
src/main/java/com/helloyanis/rucoycalculator/ui/train Expand file tree Collapse file tree 4 files changed +13
-12
lines changed Original file line number Diff line number Diff line change @@ -12,8 +12,8 @@ android {
12
12
applicationId = " com.helloyanis.rucoycalculator"
13
13
minSdk = 24
14
14
targetSdk = 34
15
- versionCode = 80
16
- versionName = " 8.0 "
15
+ versionCode = 81
16
+ versionName = " 8.1 "
17
17
18
18
testInstrumentationRunner = " androidx.test.runner.AndroidJUnitRunner"
19
19
}
@@ -66,7 +66,7 @@ dependencies {
66
66
implementation(" androidx.datastore:datastore-preferences-rxjava2:1.0.0" )
67
67
implementation(" androidx.datastore:datastore-preferences-rxjava3:1.0.0" )
68
68
implementation(" com.google.android.play:core-ktx:1.8.1" )
69
- implementation(" androidx.compose.material3:material3:1.1.2 " )
70
- implementation(" androidx.compose.material3:material3-window-size-class:1.1.2 " )
69
+ implementation(" androidx.compose.material3:material3:1.2.0 " )
70
+ implementation(" androidx.compose.material3:material3-window-size-class:1.2.0 " )
71
71
72
72
}
Original file line number Diff line number Diff line change @@ -52,6 +52,7 @@ import com.helloyanis.rucoycalculator.formulas.Formulas.stat55to99_Calc
52
52
import com.helloyanis.rucoycalculator.formulas.Formulas.threshold_Calc
53
53
import com.helloyanis.rucoycalculator.formulas.Formulas.time_to_kill_Calc
54
54
import com.helloyanis.rucoycalculator.formulas.Formulas.total_accuracy_Calc
55
+ import com.helloyanis.rucoycalculator.formulas.Mob
55
56
import com.helloyanis.rucoycalculator.formulas.mobs
56
57
import kotlinx.coroutines.launch
57
58
@@ -982,14 +983,14 @@ class TrainFragment : Fragment() {
982
983
} else {
983
984
binding.root.findViewById<TextView >(R .id.str0).text= getString(R .string.offlineinvalidinput)
984
985
}
985
-
986
986
}
987
987
private fun dmg () {
988
988
val base = binding.root.findViewById<EditText >(R .id.baselevel).text.toString().toDouble()
989
989
val stat1 = binding.root.findViewById<EditText >(R .id.stat).text.toString().toDouble()
990
990
val weaponatk = binding.root.findViewById<EditText >(R .id.weaponatk).text.toString().toDouble()
991
991
val attacktype = binding.root.findViewById<Spinner >(R .id.atkstylespinner).selectedItemPosition
992
- val mob = binding.root.findViewById<Spinner >(R .id.mobspinner).selectedItemPosition
992
+ val sortedMobs = mobs.sortedBy { it.mob_level }
993
+ val mob = mobs.indexOf(sortedMobs[binding.root.findViewById<Spinner >(R .id.mobspinner).selectedItemPosition])
993
994
val str0: String
994
995
val str1: String
995
996
val str2: String
Original file line number Diff line number Diff line change 1
1
[versions ]
2
- agp = " 8.2.1 "
2
+ agp = " 8.3.0-rc02 "
3
3
org-jetbrains-kotlin-android = " 1.9.0"
4
4
core-ktx = " 1.12.0"
5
5
junit = " 4.13.2"
@@ -8,10 +8,10 @@ espresso-core = "3.5.1"
8
8
appcompat = " 1.6.1"
9
9
material = " 1.11.0"
10
10
constraintlayout = " 2.1.4"
11
- lifecycle-livedata-ktx = " 2.6.2 "
12
- lifecycle-viewmodel-ktx = " 2.6.2 "
13
- navigation-fragment-ktx = " 2.7.6 "
14
- navigation-ui-ktx = " 2.7.6 "
11
+ lifecycle-livedata-ktx = " 2.7.0 "
12
+ lifecycle-viewmodel-ktx = " 2.7.0 "
13
+ navigation-fragment-ktx = " 2.7.7 "
14
+ navigation-ui-ktx = " 2.7.7 "
15
15
16
16
[libraries ]
17
17
core-ktx = { group = " androidx.core" , name = " core-ktx" , version.ref = " core-ktx" }
Original file line number Diff line number Diff line change 1
1
# Thu Sep 21 19:45:34 CEST 2023
2
2
distributionBase =GRADLE_USER_HOME
3
3
distributionPath =wrapper/dists
4
- distributionUrl =https\://services.gradle.org/distributions/gradle-8.4-rc-1- bin.zip
4
+ distributionUrl =https\://services.gradle.org/distributions/gradle-8.4-bin.zip
5
5
zipStoreBase =GRADLE_USER_HOME
6
6
zipStorePath =wrapper/dists
You can’t perform that action at this time.
0 commit comments