33 lines
1.2 KiB
C#
33 lines
1.2 KiB
C#
using System.Collections.Generic;
|
|
using Continentis.MainGame;
|
|
using Continentis.MainGame.Card;
|
|
using Continentis.MainGame.Character;
|
|
using Continentis.MainGame.Commands;
|
|
using SLSFramework.General;
|
|
|
|
namespace Continentis.Mods.Basic.Cards
|
|
{
|
|
public class FarSighted : CardLogicBase
|
|
{
|
|
public override void SetUpLogicComponents()
|
|
{
|
|
AddLogicComponent<CardLogicComponent_SelectHandCards>().SetEffect(SelectEffect);
|
|
}
|
|
|
|
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
|
|
{
|
|
base.PlayEffect(targetList);
|
|
CommandGroup mainGroup = Cmd.Sequential(new Cmd_PlayAnimation(user.characterView, "Skill"));
|
|
LogicComponent<CardLogicComponent_SelectHandCards>()
|
|
.AddSelectionCommands(ref mainGroup, "Card_Basic_FarSighted_SelectionCommandTitle".Localize(), 1);
|
|
return mainGroup;
|
|
}
|
|
|
|
private void SelectEffect(CardInstance card)
|
|
{
|
|
card.contentSubmodule.keywords.Add("Retain");
|
|
card.contentSubmodule.originalFunctionText += " + $Keyword(\"Retain\")";
|
|
card.contentSubmodule.dirtyMark = true;
|
|
}
|
|
}
|
|
} |