Card爆改!
This commit is contained in:
@@ -32,11 +32,11 @@ namespace Continentis.MainGame.Character
|
||||
{
|
||||
public void SetUpHandCardViews()
|
||||
{
|
||||
DrawPile.ForEach(c=> c.GenerateHandCardView(CombatUIManager.Instance.combatMainPage.drawPile));
|
||||
HandPile.ForEach(c=>
|
||||
DrawPile.ForEach(card=> card.GenerateHandCardView(CombatUIManager.Instance.combatMainPage.drawPile));
|
||||
HandPile.ForEach(card =>
|
||||
{
|
||||
if(!c.cardLogic.playSubmodule.isDuringPlayEffect)
|
||||
c.GenerateHandCardView(CombatUIManager.Instance.combatMainPage.handPile);
|
||||
if(!card.playSubmodule.isDuringPlayEffect)
|
||||
card.GenerateHandCardView(CombatUIManager.Instance.combatMainPage.handPile);
|
||||
});
|
||||
DiscardPile.ForEach(c=>c.GenerateHandCardView(CombatUIManager.Instance.combatMainPage.discardPile));
|
||||
ExhaustPile.ForEach(c=>c.GenerateHandCardView(CombatUIManager.Instance.combatMainPage.exhaustPile));
|
||||
@@ -83,7 +83,7 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
public void PlayCard(CardInstance card, List<CharacterBase> targetList)
|
||||
{
|
||||
card.cardLogic.Play(targetList, owner);
|
||||
card.Play(targetList, owner);
|
||||
}
|
||||
|
||||
public CommandGroup DiscardCard(CardInstance card, bool initiative, float interval = 0.1f)
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace Continentis.MainGame.Character
|
||||
}
|
||||
ActionRecord currentRecord = actionRecords[actionRecords.Count - 1];
|
||||
currentRecord.cardsPlayed.Add(card);
|
||||
Debug.Log($"在回合 {currentRecord.round} 行动 {currentRecord.actionIndex} 中记录了卡牌 {card.cardLogic.contentSubmodule.cardName} 的使用。");
|
||||
Debug.Log($"在回合 {currentRecord.round} 行动 {currentRecord.actionIndex} 中记录了卡牌 {card.contentSubmodule.cardName} 的使用。");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user