Przeglądaj źródła

Update CardSource.cs

Lewisaaronwelch 1 rok temu
rodzic
commit
005a8b3116
1 zmienionych plików z 17 dodań i 0 usunięć
  1. 17 0
      Assets/Scripts/CardSource.cs

+ 17 - 0
Assets/Scripts/CardSource.cs

@@ -2608,6 +2608,23 @@ public class CardSource : MonoBehaviour
     }
     }
 
 
     #endregion
     #endregion
+
+    #region whether this card has "Hero" trait
+
+    public bool HasHeroTraits
+    {
+        get
+        {
+            if (CardTraits.Contains("Hero"))
+            {
+                return true;
+            }
+
+            return false;
+        }
+    }
+
+    #endregion
 }
 }
 
 
 public class JogressCondition
 public class JogressCondition