File tree Expand file tree Collapse file tree 2 files changed +11
-14
lines changed
kotlin/cz/frantisekmasa/wfrp_master/common/core/domain/trappings Expand file tree Collapse file tree 2 files changed +11
-14
lines changed Original file line number Diff line number Diff line change @@ -5,22 +5,17 @@ import cz.frantisekmasa.wfrp_master.common.Str
55import cz.frantisekmasa.wfrp_master.common.core.domain.NamedEnum
66import dev.icerock.moko.parcelize.Parcelable
77import 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}
Original file line number Diff line number Diff line change 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 >
You can’t perform that action at this time.
0 commit comments