More cards

This commit is contained in:
FrazeRIP
2025-11-10 01:06:46 -06:00
parent 40d79761b6
commit 64768d9032
19 changed files with 284 additions and 23 deletions

View File

@@ -1,6 +1,7 @@
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using NUnit.Framework.Internal.Filters;
using SLSFramework.General;
using System.Collections.Generic;
using UnityEngine;
@@ -20,8 +21,9 @@ namespace Continentis.Mods.Basic.Cards
mainGroup.AddCommand(new Cmd_PlayAnimation(user.characterView, "Skill"));
mainGroup.AddCommand(new Cmd_Function(() =>
{
CardData tacticData = GetDerivativeCardData(0);
CardInstance.GenerateCardInstance(tacticData, user.team, "Hand");
CardData cardData = GetDerivativeCardData(0);
Debug.LogError(cardData.displayName);
CardInstance.GenerateCardInstance(cardData, user.team, "Hand");
}));
return new List<CommandBase> { mainGroup };

View File

@@ -2,7 +2,6 @@ using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using SLSFramework.General;
using System.Collections.Generic;
using UnityEngine;
namespace Continentis.Mods.Basic.Cards
{

View File

@@ -1,5 +1,6 @@
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using SLSFramework.General;
using System.Collections.Generic;
@@ -9,7 +10,13 @@ namespace Continentis.Mods.Basic.Cards
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
return base.PlayEffect(targetList);
var mainGroup = new CommandGroup(ExecutionMode.Sequential);
mainGroup.AddCommand(new Cmd_Function(() =>
{
user.deckSubmodule.ReshuffleDeck();
}));
mainGroup.AddCommand(user.deckSubmodule.DrawCards(GetAttribute("DrawCount")));
return new List<CommandBase> { mainGroup };
}
}
}

View File

@@ -11,13 +11,13 @@ namespace Continentis.Mods.Basic.Cards
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DrawCards(GetAttribute("DrawCardAmount")));
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DrawCards(GetAttribute("DrawCount")));
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>
{
if (target != user)
{
CreateCharacterBuff<Corrosion>(GetAttribute("BuffStack_Corrosion")).Apply(target, user, this);
CreateCharacterBuff<Corrosion>(GetAttribute("BuffStack")).Apply(target, user, this);
}
}));
return new List<CommandBase> { mainGroup };

View File

@@ -13,7 +13,7 @@ namespace Continentis.Mods.Basic.Cards
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>
{
CreateCharacterBuff<Buffs.WoundDeterioration>(GetAttribute("BuffStack_WD"), GetAttribute("DamageCount")).Apply(target, user, this);
CreateCharacterBuff<Buffs.WoundDeterioration>(GetAttribute("BuffStack"), GetAttribute("DamageCount")).Apply(target, user, this);
}));
return new List<CommandBase> { mainGroup };
}