keyword + animation

This commit is contained in:
SoulliesOfficial
2025-10-27 07:04:34 -04:00
parent c3c4a17440
commit 2906206f0c
40 changed files with 512 additions and 384 deletions

View File

@@ -59,7 +59,6 @@ namespace Continentis.MainGame.Card
List<string> allKeywords = new List<string>();
allKeywords.AddRange(cardLogic.contentSubmodule.keywords);
allKeywords.AddRange(cardLogic.contentSubmodule.hintKeywords);
keywordList.Enable(allKeywords);
}
@@ -99,10 +98,11 @@ namespace Continentis.MainGame.Card
if (string.IsNullOrEmpty(collectionName)) collectionName = "Basic";
CardViewCollection collection = MainGameManager.Instance.basePrefabs.cardViewCollections[collectionName];
List<string> elementTags = cardLogic.GetElementTags();
string firstElementTag = elementTags.Count > 0 ? elementTags[0] : "Default";
if (!collection.cardViews.ContainsKey(firstElementTag)) firstElementTag = "Default";
cardBackground.sprite = collection.cardViews[firstElementTag].background;
List<string> layoutTags = cardLogic.cardData.cardLayoutTags; //TODO后续可扩展为动态布局标签
string firstLayoutTag = layoutTags.Count > 0 ? layoutTags[0] : "Default";
if (!collection.cardViews.ContainsKey(firstLayoutTag)) firstLayoutTag = "Default";
cardBackground.sprite = collection.cardViews[firstLayoutTag].background;
cardTypeText.text = cardLogic.contentSubmodule.cardType.ToString();

View File

@@ -248,7 +248,7 @@ namespace Continentis.MainGame.Card
return;
}
if (!cardLogic.HasTag("TargetSelf"))
if (!cardLogic.HasKeyword("TargetSelf"))
{
if (!validTargets.Contains(hoveringCharacter))
{