MOD!
This commit is contained in:
@@ -1,10 +1,14 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using Continentis.MainGame.Card;
|
||||
using SLSFramework.General;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Continentis.MainGame.Character
|
||||
{
|
||||
public partial class PlayerHero : CharacterBase
|
||||
{
|
||||
public CombatTeam team => MainGameManager.Instance.playerTeam;
|
||||
|
||||
}
|
||||
|
||||
public partial class PlayerHero
|
||||
@@ -17,5 +21,26 @@ namespace Continentis.MainGame.Character
|
||||
|
||||
return playerHero;
|
||||
}
|
||||
|
||||
public override void InitializeCards()
|
||||
{
|
||||
base.InitializeCards();
|
||||
|
||||
List<CardInstance> drawPile = deckSubmodule.DrawPile;
|
||||
|
||||
drawPile.Shuffle();
|
||||
|
||||
// 处理“固有”卡牌
|
||||
foreach (CardInstance card in drawPile.Where(card => card.cardLogic.HasKeyword("Innate")).ToList())
|
||||
{
|
||||
deckSubmodule.TransferCard("Draw", 0, card);
|
||||
}
|
||||
|
||||
// 处理“迟钝”卡牌
|
||||
foreach (CardInstance card in drawPile.Where(card => card.cardLogic.HasKeyword("Tardy")).ToList())
|
||||
{
|
||||
deckSubmodule.TransferCard("Draw", "Discard", card);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user