更新
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
using System.Collections.Generic;
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using Continentis.Mods.Basic.Buffs;
|
||||
using SLSUtilities.General;
|
||||
|
||||
namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
/// <summary>
|
||||
/// 添砖加瓦(Bricks And Tiles):
|
||||
/// 获得一定数量的格挡,并且给自身施加一层稳固(Consolidate)Buff。
|
||||
/// </summary>
|
||||
public class BricksAndTiles : CardLogicBase
|
||||
{
|
||||
private const string BUFF_CONSOLIDATE_COUNT = "Buff_Consolidate_Count";
|
||||
|
||||
public override void SetUpLogicComponents()
|
||||
{
|
||||
AddLogicComponent<CardLogicComponent_Defense>();
|
||||
}
|
||||
|
||||
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
return SingleCommandGroup(
|
||||
new Cmd_PlayAnimation(user.characterView, "Skill"),
|
||||
Cmd.Do(() =>
|
||||
{
|
||||
user.AddBlock(GetAttribute("Block"));
|
||||
int consolidateStacks = GetAttribute(BUFF_CONSOLIDATE_COUNT);
|
||||
CreateCharacterBuff<Consolidate>(consolidateStacks).Apply(user, user, this);
|
||||
})
|
||||
);
|
||||
}
|
||||
|
||||
public override void ApplyAttributeChangesByCard()
|
||||
{
|
||||
LogicComponent<CardLogicComponent_Defense>().SetBlock();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user