五张牌!

This commit is contained in:
SoulliesOfficial
2025-10-30 04:21:28 -04:00
parent 2906206f0c
commit 4c7e5c397b
171 changed files with 2168 additions and 41 deletions

View File

@@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 065c6cea14992804cbdf1fde765bcbd7
guid: edcb38fe315f1f645bf4bf7728c150eb
folderAsset: yes
DefaultImporter:
externalObjects: {}

View File

@@ -0,0 +1,21 @@
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 Rouse : CardLogicBase
{
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_Function(() => user.ModifyStamina(1)));
return mainGroup;
}
}
}

View File

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

View File

@@ -0,0 +1,36 @@
using System.Collections.Generic;
using Continentis.MainGame;
using Continentis.MainGame.Card;
using Continentis.MainGame.Character;
using Continentis.MainGame.Commands;
using SLSFramework.General;
using UnityEngine;
namespace Continentis.Mods.Basic.Cards
{
public class Tactic : CardLogicBase
{
protected override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_SelectHandCards>().SetEffect(SelectEffect);
}
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential,
new Cmd_PlayAnimation(user.characterView, "Skill"));
LogicComponent<CardLogicComponent_SelectHandCards>()
.AddSelectionCommands(ref mainGroup, "Card_Basic_Tactic_SelectionCommandTitle".Localize(), 1, true);
mainGroup.AddCommand(new Cmd_DrawCards(user.deckSubmodule, 1));
return mainGroup;
}
private void SelectEffect(CardInstance card)
{
user.deckSubmodule.DiscardCard(card);
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 71a0c211d23ded94886525ca81a42f85

View File

@@ -0,0 +1,21 @@
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 Whimsy : CardLogicBase
{
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_Function(() => user.ModifyMana(1)));
return mainGroup;
}
}
}

View File

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

View File

@@ -0,0 +1,35 @@
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;
namespace Continentis.Mods.Basic.Cards
{
public class Cover : CardLogicBase
{
protected override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_Defense>();
AddLogicComponent<CardLogicComponent_Protect>();
}
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_Function(() => user.AddBlock(GetAttribute("Block"))),
new Cmd_ParamFunction<CharacterBase>((target) =>
LogicComponent<CardLogicComponent_Protect>().GenerateProtection(user, target, GetAttribute("BuffCount_Protecting"))));
return mainGroup;
}
public override void ApplyAttributeChangesByCard()
{
LogicComponent<CardLogicComponent_Defense>().SetBlock_Fortitude();
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 0293bb4ed1447d14eb3c8c8d247af139

View File

@@ -0,0 +1,36 @@
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;
namespace Continentis.Mods.Basic.Cards
{
public class OathOfCourage : CardLogicBase
{
protected override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_Defense>();
}
protected override CommandBase PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_Function(() =>
{
user.AddBlock(GetAttribute("Block"));
CreateCharacterBuff<Consolidate>(GetAttribute("BuffCount_Consolidate")).Apply(user, user, this);
}));
return mainGroup;
}
public override void ApplyAttributeChangesByCard()
{
LogicComponent<CardLogicComponent_Defense>().SetBlock_Sorcery();
}
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 4b4fa3f1ad4c3ef4a97a643f206291cd

View File

@@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 065c6cea14992804cbdf1fde765bcbd7
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@@ -16,13 +16,11 @@ namespace Continentis.Mods.Basic.Cards
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_ParamFunction<CharacterBase>((target) =>
{
Debug.Log(user.GetType().FullName);
Debug.Log(typeof(CharacterBase).FullName);
Protected protectedBuff = CreateCharacterBuff<Protected>(user);
protectedBuff.Apply(target, user, this);
Protecting protectingBuff = CreateCharacterBuff<Protecting>(target, GetAttribute("BuffCount_Protecting"), protectedBuff);
protectingBuff.Apply(user, user, this);
})); //对使用者施加沉重状态
}));
return mainGroup;
}