Combat frontend rewrite: Clean architecture with structured messages, animations, and i18n

This commit is contained in:
Joan
2026-01-09 11:14:40 +01:00
parent 2875e72b20
commit f986fa18a0
8 changed files with 381 additions and 200 deletions

View File

@@ -155,6 +155,10 @@
"combatLog": "Combat Log",
"attacking": "Attacking",
"defending": "Defending",
"thinking": "Enemy is thinking...",
"yourTurnTimer": "Your Turn ({{time}})",
"enemyTurnTimer": "Enemy Turn",
"waiting": "Waiting for opponent...",
"messages": {
"combat_start": "Combat started with {{enemy}}!",
"player_attack": "You attack for {{damage}} damage!",
@@ -162,7 +166,25 @@
"victory": "Victory! Defeated {{enemy}}",
"flee_fail": "Failed to flee! {{enemy}} attacks for {{damage}} damage!"
},
"turnTimer": "Turn Timer"
"turnTimer": "Turn Timer",
"actions": {
"attack": "Attack",
"flee": "Flee",
"useItem": "Use Item"
},
"status": {
"attacking": "Attacking...",
"fleeing": "Fleeing...",
"waiting": "Waiting for opponent..."
},
"events": {
"playerDamage": "You dealt {{damage}} damage!",
"enemyDamage": "Enemy dealt {{damage}} damage!",
"playerMiss": "You missed!",
"enemyMiss": "Enemy missed!",
"armorAbsorbed": "Armor absorbed {{armor}} damage",
"itemBroke": "{{item}} broke!"
}
},
"equipment": {
"head": "Head",