Add mod documentation in seven languages
This commit is contained in:
1 parent
7d90e4ff1a
commit
f38a8c6824
34 files changed
+373
-21
No files matched your search
@@ -170,7 +170,7 @@ namespace Cthangover.CardBattle
|
||||
}
|
||||
|
||||
_screen.Hud.SetEnemiesAlive(CountAlive(_enemyPanel));
|
||||
BattleLogHub.Log(string.Format(Translate("battle/log_dead"), card.Card.Name), BattleLogKind.Dead);
|
||||
BattleLogHub.Log(string.Format(Translate("battle/log_dead"), Translate(card.Card.Name)), BattleLogKind.Dead);
|
||||
}
|
||||
|
||||
private void StartPlayerTurn()
|
||||
@@ -275,7 +275,7 @@ namespace Cthangover.CardBattle
|
||||
card.UpdateInfo();
|
||||
card.PlayZap();
|
||||
BattleLogHub.Log(
|
||||
string.Format(Translate("battle/log_stun_skip"), card.Card.Name),
|
||||
string.Format(Translate("battle/log_stun_skip"), Translate(card.Card.Name)),
|
||||
BattleLogKind.Status);
|
||||
continue;
|
||||
}
|
||||
@@ -296,9 +296,9 @@ namespace Cthangover.CardBattle
|
||||
{
|
||||
BattleLogHub.Log(
|
||||
string.Format(Translate("battle/log_enemy_action"),
|
||||
card.Card.Name,
|
||||
Translate(card.Card.Name),
|
||||
ActionCharacterUi.Translate(action.Name),
|
||||
target.Card.Name),
|
||||
Translate(target.Card.Name)),
|
||||
BattleLogKind.Info);
|
||||
}
|
||||
|
||||
|
||||
@@ -119,7 +119,8 @@ namespace Cthangover.CardBattle.UI
|
||||
/// <summary>
|
||||
/// Builds the hint printed in the actions panel when the card is
|
||||
/// hovered: the expected effect computed from the source character's
|
||||
/// stats ("Урон 5 (АТК 5 × 1.0) · расход 1 ОД").
|
||||
/// stats ("Урон 5 (АТК 5 × 1.0) · расход 1 ОД"); an enemy action without an
|
||||
/// <c>Attack</c> multiplier (a formula skill) shows its own description instead.
|
||||
/// </summary>
|
||||
public string DescribeFrom(Character source)
|
||||
{
|
||||
@@ -132,6 +133,12 @@ namespace Cthangover.CardBattle.UI
|
||||
|
||||
if (Card.Type == ActionCharacterType.ToEnemy)
|
||||
{
|
||||
if (Card.GetFloat("Attack", 0f) <= 0f)
|
||||
{
|
||||
var description = ActionCharacterUi.StripMarkup(ActionCharacterUi.Translate(Card.Description));
|
||||
if (!string.IsNullOrEmpty(description))
|
||||
return description;
|
||||
}
|
||||
var multiplier = Card.GetFloat("Attack", 1f);
|
||||
var damage = Mathf.RoundToInt(multiplier * source.Attributes.Attack.Value);
|
||||
return string.Format(
|
||||
|
||||
Reference in new issue
Block a user