Files
Continentis/Assets/Mods/Basic/Cards/Scripts/ObsoleteGeneral/Bludgeon.cs

38 lines
1.2 KiB
C#
Raw Normal View History

2025-10-03 00:02:43 -04:00
using System.Collections.Generic;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using Continentis.Mods.Basic.Buffs;
2025-10-23 00:49:44 -04:00
using SLSFramework.General;
2025-10-03 00:02:43 -04:00
using UnityEngine;
namespace Continentis.Mods.Basic.Cards
{
2025-10-24 09:11:22 -04:00
public class Bludgeon : CardLogicBase
2025-10-03 00:02:43 -04:00
{
2025-10-23 00:49:44 -04:00
protected override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_Attack>();
}
2025-10-03 00:02:43 -04:00
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
2025-10-26 00:23:50 -04:00
CommandGroup mainGroup = TargetListCommandGroup(targetList,
ExecutionMode.Sequential,
ExecutionMode.Sequential,
2025-10-23 00:49:44 -04:00
new Cmd_PlayAnimation(user.characterView, "Attack"),
new Cmd_ParamFunction<CharacterBase>(0.1f, target =>
2025-10-03 00:02:43 -04:00
{
user.Attack(target, GetFinalDamage(target));
2025-10-26 00:23:50 -04:00
CreateCharacterBuff<Weak>().Apply(target, user, this);
2025-10-03 00:02:43 -04:00
}));
2025-10-23 00:49:44 -04:00
2025-10-03 00:02:43 -04:00
return mainGroup;
}
public override void ApplyAttributeChangesByCard()
{
2025-10-23 00:49:44 -04:00
LogicComponent<CardLogicComponent_Attack>().SetDamage_Strike();
2025-10-03 00:02:43 -04:00
}
}
}