Card爆改!
This commit is contained in:
@@ -21,7 +21,7 @@ namespace Continentis.MainGame
|
||||
}
|
||||
}
|
||||
|
||||
public static void InterpretText(CardLogicBase card, bool overrideDescription = false)
|
||||
public static void InterpretText(CardInstance card, bool overrideDescription = false)
|
||||
{
|
||||
//card.contentSubmodule.keywords.Clear();
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace Continentis.MainGame
|
||||
|
||||
public static partial class CardTextInterpreter
|
||||
{
|
||||
private static string GetAttribute(CardLogicBase card, string attributeName, bool higherIsBetter, bool inPercent)
|
||||
private static string GetAttribute(CardInstance card, string attributeName, bool higherIsBetter, bool inPercent)
|
||||
{
|
||||
string displayName = "Display" + attributeName;
|
||||
string baseName = "Base" + attributeName;
|
||||
@@ -66,14 +66,14 @@ namespace Continentis.MainGame
|
||||
}
|
||||
}
|
||||
|
||||
private static string GetAttribute(CardLogicBase card, string attributeName, bool inPercent)
|
||||
private static string GetAttribute(CardInstance card, string attributeName, bool inPercent)
|
||||
{
|
||||
string displayName = "Display" + attributeName;
|
||||
int displayValue = card.GetAttribute(displayName);
|
||||
return DynamicTextInterpreter.GetValue(displayValue, inPercent);
|
||||
}
|
||||
|
||||
private static string RemoveWhenSelecting(CardLogicBase card, string toRemove)
|
||||
private static string RemoveWhenSelecting(CardInstance card, string toRemove)
|
||||
{
|
||||
return card.handCardView != null && card.handCardView.isSelecting ? "" : toRemove;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user