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
@@ -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