Skip to content

Commit cc0a7a6

Browse files
committed
Add Archives of The Empire 3 Armour qualities
1 parent a685e39 commit cc0a7a6

File tree

2 files changed

+11
-14
lines changed
  • common/src/commonMain

2 files changed

+11
-14
lines changed

common/src/commonMain/kotlin/cz/frantisekmasa/wfrp_master/common/core/domain/trappings/ArmourType.kt

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,17 @@ import cz.frantisekmasa.wfrp_master.common.Str
55
import cz.frantisekmasa.wfrp_master.common.core.domain.NamedEnum
66
import dev.icerock.moko.parcelize.Parcelable
77
import dev.icerock.moko.parcelize.Parcelize
8+
import dev.icerock.moko.resources.StringResource
89

910
@Parcelize
1011
@Immutable
11-
enum class ArmourType : NamedEnum, Parcelable {
12-
SOFT_LEATHER,
13-
BOILED_LEATHER,
14-
MAIL,
15-
PLATE,
16-
OTHER, ;
12+
enum class ArmourType(override val translatableName: StringResource) : NamedEnum, Parcelable {
13+
BOILED_LEATHER(Str.armour_types_boiled_leather),
14+
BRIGANDINE(Str.armour_types_brigandine),
15+
SOFT_KIT(Str.armour_types_soft_kit),
16+
SOFT_LEATHER(Str.armour_types_soft_leather),
17+
MAIL(Str.armour_types_mail),
18+
PLATE(Str.armour_types_plate),
19+
OTHER(Str.armour_types_other);
1720

18-
override val translatableName get() =
19-
when (this) {
20-
SOFT_LEATHER -> Str.armour_types_soft_leather
21-
BOILED_LEATHER -> Str.armour_types_boiled_leather
22-
MAIL -> Str.armour_types_mail
23-
PLATE -> Str.armour_types_plate
24-
OTHER -> Str.armour_types_other
25-
}
2621
}

common/src/commonMain/moko-resources/base/strings.xml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,11 @@
2828
<string name="armour_tip_trappings">Armour is auto-calculated from worn armour trappings.</string>
2929
<string name="armour_title">Armour</string>
3030
<string name="armour_types_boiled_leather">Boiled Leather</string>
31+
<string name="armour_types_brigandine">Brigandine</string>
3132
<string name="armour_types_mail">Mail</string>
3233
<string name="armour_types_other">Other</string>
3334
<string name="armour_types_plate">Plate</string>
35+
<string name="armour_types_soft_kit">Soft Kit</string>
3436
<string name="armour_types_soft_leather">Soft Leather</string>
3537
<string name="authentication_button_sign_in">Sign in</string>
3638
<string name="authentication_button_log_out">Log out</string>

0 commit comments

Comments
 (0)