Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AoE3] Archives of the Empire - Vol III #370

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ import dev.icerock.moko.parcelize.Parcelize
@Immutable
enum class ArmourFlaw() : Flaw {
PARTIAL,
REQUIRES_KIT,
WEAKPOINTS,
;

override val translatableName get() =
when (this) {
PARTIAL -> Str.armour_flaws_partial
REQUIRES_KIT -> Str.armour_flaws_requires_kit
WEAKPOINTS -> Str.armour_flaws_weakpoints
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,18 @@ import dev.icerock.moko.parcelize.Parcelize
enum class ArmourQuality : Quality {
FLEXIBLE,
IMPENETRABLE,
OVERCOAT,
REINFORCED,
VISOR,
;

override val translatableName get() =
when (this) {
FLEXIBLE -> Str.armour_qualities_flexible
IMPENETRABLE -> Str.armour_qualities_impenetrable
OVERCOAT -> Str.armour_qualities_overcoat
REINFORCED -> Str.armour_qualities_reinforced
VISOR -> Str.armour_qualities_visor
}
override val hasRating: Boolean get() = false
}
4 changes: 4 additions & 0 deletions common/src/commonMain/moko-resources/base/strings.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
<string name="ambition_title_character_ambitions">Character ambitions</string>
<string name="ambition_title_party_ambitions">Party ambitions</string>
<string name="armour_flaws_partial">Partial</string>
<string name="armour_flaws_requires_kit">Requires Kit</string>
<string name="armour_flaws_weakpoints">Weakpoints</string>
<string name="armour_label_armour_points">Armour Points (AP)</string>
<string name="armour_label_flaws">Armour Flaws</string>
Expand All @@ -20,6 +21,9 @@
<string name="armour_messages_at_least_one_location_required">At least one location is required</string>
<string name="armour_qualities_flexible">Flexible</string>
<string name="armour_qualities_impenetrable">Impenetrable</string>
<string name="armour_qualities_overcoat">Overcoat</string>
<string name="armour_qualities_reinforced">Reinforced</string>
<string name="armour_qualities_visor">Visor</string>
<string name="armour_shield">Shield</string>
<string name="armour_tip_trappings">Armour is auto-calculated from worn armour trappings.</string>
<string name="armour_title">Armour</string>
Expand Down
Loading