卡牌更新

This commit is contained in:
SoulliesOfficial
2026-04-08 04:48:35 -04:00
parent c3b1561375
commit dd2657573a
242 changed files with 1950 additions and 926 deletions

View File

@@ -1,57 +0,0 @@
using System.Collections.Generic;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using SLSFramework.General;
using UnityEngine;
namespace Continentis.Mods.Basic.Cards
{
public class ArcaneMissiles : CardLogicBase
{
public override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_Attack>();
}
public override CommandGroup PlayEffect(List<CharacterBase> targetList)
{
// 多段攻击先等1秒占位再对每个目标依次连续打多段
CommandGroup occupiedGroup = Cmd.Sequential(
Cmd.After(1f, () =>
CommandQueueManager.Instance.AddCommand(Cmd.Do(() =>
Debug.Log("插队指令,等待动画播放完毕")))
)
);
CommandGroup mainGroup = ForEachTarget(targetList, target =>
{
CommandGroup perTargetGroup = Cmd.Sequential(new Cmd_PlayAnimation(user.characterView, "Attack"));
int attackCount = GetAttribute("AttackCount");
for (int i = 0; i < attackCount; i++)
{
perTargetGroup.AddCommand(Cmd.After(0.4f, () =>
{
AttackTarget(target, GetTargetedFinalDamage(target));
Debug.Log("攻击命令触发");
}));
}
return perTargetGroup;
});
CommandGroup finalGroup = Cmd.Sequential(Cmd.Do(() => Debug.Log("不插队指令")));
CommandGroup firstGroup = Cmd.Sequential(
Cmd.Do(() => Debug.Log("插队指令,抽牌")),
new Cmd_DrawCards(user.deckSubmodule, 1)
);
return Cmd.Sequential(occupiedGroup, mainGroup, finalGroup, firstGroup);
}
public override void ApplyAttributeChangesByCard()
{
LogicComponent<CardLogicComponent_Attack>().SetDamage_Arcane();
}
}
}

View File

@@ -1,2 +0,0 @@
fileFormatVersion: 2
guid: e2678a4ab435adf448a3c80f56c83f69

View File

@@ -30,7 +30,7 @@ namespace Continentis.Mods.Basic.Cards
public override void ApplyAttributeChangesByCard()
{
LogicComponent<CardLogicComponent_Attack>().SetDamage_Arcane();
LogicComponent<CardLogicComponent_Attack>().SetDamage_Magic();
}
}
}

View File

@@ -23,7 +23,7 @@ namespace Continentis.Mods.Basic.Cards
public override void ApplyAttributeChangesByCard()
{
LogicComponent<CardLogicComponent_Attack>().SetDamage_Arcane();
LogicComponent<CardLogicComponent_Attack>().SetDamage_Magic();
}
}
}