Просмотр исходного кода

Include dual card option information in base name and with text

hooperk 4 месяцев назад
Родитель
Сommit
99bd2f63cb
1 измененных файлов с 9 добавлено и 0 удалено
  1. 9 0
      Assets/Scripts/Script/CardSource.cs

+ 9 - 0
Assets/Scripts/Script/CardSource.cs

@@ -1345,6 +1345,13 @@ public class CardSource : MonoBehaviour
             bool isPermanent = PermanentOfThisCard() != null;
             bool isDigivolutionCard = isPermanent && thisPermanent.DigivolutionCards.Contains(this);
 
+            #region if dual card and not in play
+            if (!isPermanent && _cEntity_Base.IsDualCard)
+            {
+                baseCardNames.Add(_cEntity_Base.dualEffect);
+            }
+            #endregion
+
             #region card effects that change base card names
 
             if (isDigivolutionCard)
@@ -2088,9 +2095,11 @@ public class CardSource : MonoBehaviour
         List<string> checkStrings = new List<string>()
         {
             DataBase.ReplaceToASCII(_cEntity_Base.CardName_ENG),
+            DataBase.ReplaceToASCII(_cEntity_Base.dualEffect),
             DataBase.ReplaceToASCII(_cEntity_Base.EffectDiscription_ENG),
             DataBase.ReplaceToASCII(_cEntity_Base.InheritedEffectDiscription_ENG),
             DataBase.ReplaceToASCII(_cEntity_Base.SecurityEffectDiscription_ENG),
+            DataBase.ReplaceToASCII(_cEntity_Base.OptionEffect),
         };
 
         foreach (string attribute in _cEntity_Base.Attribute_ENG)