到IronWall

This commit is contained in:
SoulliesOfficial
2025-10-30 23:31:29 -04:00
parent 8b72c75128
commit 5d09ef7b53
39 changed files with 688 additions and 41 deletions

View File

@@ -30,7 +30,7 @@ namespace Continentis.Mods.Basic.Cards
private void SelectEffect(CardInstance card)
{
user.deckSubmodule.DiscardCard(card);
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DiscardCard(card), new CommandContext());
}
}
}

View File

@@ -1,16 +1,25 @@
using System.Collections.Generic;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using Continentis.Mods.Basic.Buffs;
using SLSFramework.General;
using UnityEngine;
public class IronWall : MonoBehaviour
namespace Continentis.Mods.Basic.Cards
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
public class IronWall : CardLogicBase
{
}
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_Function(() =>
{
CreateCharacterBuff<Withstand>(GetAttribute("BuffCount_Withstand")).Apply(user, user, this);
}));
// Update is called once per frame
void Update()
{
return mainGroup;
}
}
}
}

View File

@@ -0,0 +1,16 @@
using UnityEngine;
public class UtmostStrike : MonoBehaviour
{
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9299438b564ba4a4aa59e98ea7d83c9d

View File

@@ -35,7 +35,7 @@ namespace Continentis.Mods.Basic.Cards
public void SelectEffect(CardInstance card)
{
card.deck.ExhaustCard(card);
CommandQueueManager.Instance.AddCommand(card.deck.ExhaustCard(card));
}
}
}

View File

@@ -20,7 +20,7 @@ namespace Continentis.Mods.Basic.Cards
{
if (handPile.Filtered(CardFilter).TryGetRandom(out CardInstance randomCard))
{
user.deckSubmodule.ExhaustCard(randomCard);
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.ExhaustCard(randomCard));
}
}
}));