Skip to content
This repository has been archived by the owner on Sep 15, 2024. It is now read-only.

Commit

Permalink
fix: ensure every promotion level owns 6 equipments
Browse files Browse the repository at this point in the history
  • Loading branch information
MalitsPlus committed Feb 26, 2024
1 parent 5d6d7cb commit 2a28827
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,9 @@ class SharedViewModelChara : ViewModel() {
val rankEquipments = mutableMapOf<Int, List<Equipment>>()
get().getCharaPromotion(chara.unitId)?.forEach { slots ->
val equipmentList = mutableListOf<Equipment>()
slots.charaSlots.forEach { id ->
equipmentMap[id]?.let {
for (i in 0..5) {
val id = slots.charaSlots.getOrElse(i, fun(_: Int): Int {return 999999})
equipmentMap.getOrElse(id, fun(): Equipment {return Equipment.getNull}).let {
equipmentList.add(it)
}
}
Expand Down
2 changes: 1 addition & 1 deletion app/src/main/res/values/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
<string name="about_version" translatable="false">Version: %s</string>
<string name="about_disclaimer" translatable="false">This is an unofficial fan-made application, copyright of all resources associate with the game \"Princess Connect Re:Dive\" are belong to Cygames, Inc. </string>
<string name="about_hp" translatable="false">Open source homepage \nhttps://github.com/MalitsPlus/ShizuruNotes</string>
<string name="about_developer" translatable="false">Development &lt;br/>Vibbit&lt;a href=\"https://twitter.com/L8102259\">@L8102259&lt;/a></string>
<string name="about_developer" translatable="false">Development Vibbit</string>
<string name="about_translator" translatable="false">Localization &lt;br/>(Korean)applemintia&lt;a href=\"https://twitter.com/_applemintia\">@_applemintia&lt;/a>&lt;br/>(English)&lt;a href=\"https://twitter.com/southro_p\">southrop&lt;/a>&lt;br/>(English)&lt;a href=\"https://github.com/MightyZanark\">MightyZanark&lt;/a></string>
<string name="about_api" translatable="false">API by https://redive.estertion.win</string>
<string name="about_license" translatable="false">This application is licensed under the &lt;a href=\"http://www.apache.org/licenses/LICENSE-2.0.txt\">Apache License 2.0&lt;/a></string>
Expand Down

0 comments on commit 2a28827

Please sign in to comment.