Translate Spielo kit UI/messages to English
Replace German UI strings in SpieloKit with English equivalents (inventory title, button labels, and click lore) and add full English localization for the Spielo kit in en_US.yml. Adds spielo kit entries including name, lore, item names/descriptions, and gamble result messages (instant_death, gamble_event, gamble_bad, gamble_neutral, gamble_good).
This commit is contained in:
@@ -141,7 +141,7 @@ class SpieloKit : Kit() {
|
||||
|
||||
override fun execute(player: Player): AbilityResult {
|
||||
if (gamblingPlayers.contains(player.uniqueId))
|
||||
return AbilityResult.ConditionNotMet("Automat läuft bereits!")
|
||||
return AbilityResult.ConditionNotMet("Slotmachine is already running!")
|
||||
|
||||
val now = System.currentTimeMillis()
|
||||
val lastUse = activeCooldowns[player.uniqueId] ?: 0L
|
||||
@@ -189,7 +189,7 @@ class SpieloKit : Kit() {
|
||||
.any { it.location.distanceSquared(player.location) <= SAFE_RADIUS * SAFE_RADIUS }
|
||||
|
||||
if (gamblingPlayers.contains(player.uniqueId))
|
||||
return AbilityResult.ConditionNotMet("Automat läuft bereits!")
|
||||
return AbilityResult.ConditionNotMet("Slotmachine is already running!")
|
||||
|
||||
if (enemyNearby)
|
||||
{
|
||||
@@ -235,7 +235,7 @@ class SpieloKit : Kit() {
|
||||
|
||||
private val inv: Inventory = Bukkit.createInventory(
|
||||
this, 27,
|
||||
mm.deserialize("<gold><bold>🎰 Slot-Automat</bold></gold>")
|
||||
mm.deserialize("<gold><bold>🎰 Slot-Machine</bold></gold>")
|
||||
)
|
||||
|
||||
private val reelSlots = intArrayOf(11, 13, 15)
|
||||
@@ -361,9 +361,9 @@ class SpieloKit : Kit() {
|
||||
private fun buildSpinButton(spinning: Boolean): ItemStack {
|
||||
val mat = if (spinning) Material.YELLOW_CONCRETE else Material.LIME_CONCRETE
|
||||
val name = if (spinning)
|
||||
mm.deserialize("<yellow><bold>⟳ Dreht...</bold></yellow>")
|
||||
mm.deserialize("<yellow><bold>⟳ Spins...</bold></yellow>")
|
||||
else
|
||||
mm.deserialize("<green><bold>▶ Drehen!</bold></green>")
|
||||
mm.deserialize("<green><bold>▶ Spin!</bold></green>")
|
||||
|
||||
return ItemStack(mat).also { item ->
|
||||
item.editMeta { meta ->
|
||||
@@ -371,7 +371,7 @@ class SpieloKit : Kit() {
|
||||
if (!spinning) {
|
||||
meta.lore(listOf(
|
||||
Component.empty(),
|
||||
mm.deserialize("<gray>Klicken um die Walzen zu drehen.")
|
||||
mm.deserialize("<gray>Click to spin the reels.")
|
||||
.decoration(TextDecoration.ITALIC, false),
|
||||
Component.empty()
|
||||
))
|
||||
|
||||
@@ -606,3 +606,23 @@ kits:
|
||||
ult_fired: '<gold>⚡ Static Field hit <count> enemy(s)!'
|
||||
ult_cooldown: '<red>Ult on cooldown – <time>s'
|
||||
ult_no_targets: '<red>No enemies in range!'
|
||||
|
||||
spielo:
|
||||
name: '<gradient:gold:yellow><bold>Spielo</bold></gradient>'
|
||||
lore:
|
||||
- ' '
|
||||
- '<gray>AGGRESSIVE: Gambling at the push of a button</gray>'
|
||||
- '<gray>DEFENSIVE: Slot machine - no instant death</gray>'
|
||||
items:
|
||||
automat:
|
||||
name: '<gold><bold>Slot Machine</bold></gold>'
|
||||
description: '<gray>Gamble at the push of a button</gray>'
|
||||
slotautomat:
|
||||
name: '<gold><bold>Safe Slot Machine</bold></gold>'
|
||||
description: '<gray>Slot machine - no instant death & diamond armor</gray>'
|
||||
messages:
|
||||
instant_death: '<dark_red><bold>BANKRUPT!</bold></dark_red> <red>You gambled your life away. The house always wins.</red>'
|
||||
gamble_event: '<red><bold>UNLUCKY!</bold></red> <gray>The slot machine triggered a disaster!</gray>'
|
||||
gamble_bad: '<red>Bad spin...</red> <gray>You feel a sudden negative effect.</gray>'
|
||||
gamble_neutral: '<yellow>Meh.</yellow> <gray>Just some useless junk. Spin again!</gray>'
|
||||
gamble_good: '<gold><bold>JACKPOT!</bold></gold> <green>Lady Luck is smiling at you. Enjoy your reward!</green>'
|
||||
Reference in New Issue
Block a user