Commit aceab57e authored by 赤子奈落's avatar 赤子奈落

add alias name in card description

parent b991f2f8
......@@ -230,15 +230,21 @@ public class CardDescription : Servant
description.Clear();
if (GameStringHelper.attribute(card.Attribute).Length > 1)
tail = GameStringHelper.attribute(card.Attribute) + "\n" + tail;
if(GameStringHelper.getSetName(card.Setcode) != "")
if (card.Alias > 0)
if (card.Alias != card.Id)
{
var name = CardsManager.Get(card.Alias).Name;
if (name != card.Name) tail += "[" + CardsManager.Get(card.Alias).Name + "]\n";
}
if (GameStringHelper.getSetName(card.Setcode) != "")
{
tail += GameStringHelper.xilie;
tail += GameStringHelper.getSetName(card.Setcode);
tail += "\n";
}
if (tail == "")
description.Add(card.Desc);
else
description.Add("[FFD700]" + tail + "[-]" + card.Desc);
card_name.text = card.Name;
type_name.text = GameStringHelper.GetType(card);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment