AmbushStance

This commit is contained in:
FrazeRIP
2025-11-10 23:56:25 -06:00
parent b8f3e47edf
commit 01f4f3c76d
12 changed files with 181 additions and 35 deletions

View File

@@ -43,7 +43,7 @@ MonoBehaviour:
Value: 5
index: 3
isKeyDuplicated: 0
- Key: BuffStack_Sharpness
- Key: BuffStack
Value: 5
index: 4
isKeyDuplicated: 0

View File

@@ -39,7 +39,7 @@ MonoBehaviour:
Value: 0
index: 2
isKeyDuplicated: 0
- Key: BuffStack_KnifeTrick
- Key: BuffStack
Value: 4
index: 3
isKeyDuplicated: 0

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,12 @@ namespace Continentis.Mods.Basic.Cards
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
return base.PlayEffect(targetList);
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>
{
CreateCharacterBuff<Buffs.AmbushStance>(GetAttribute("BuffStack")).Apply(target, user, this);
}));
return new List<CommandBase> { mainGroup };
}
}
}

View File

@@ -26,7 +26,7 @@ namespace Continentis.Mods.Basic.Cards
}));
mainGroup.AddCommand(new Cmd_Function(() =>
{
CreateCharacterBuff<Sharpness>(GetAttribute("BuffStack_Sharpness")).Apply(user, user, this);
CreateCharacterBuff<Sharpness>(GetAttribute("BuffStack")).Apply(user, user, this);
}));
return new List<CommandBase> { mainGroup };
}

View File

@@ -14,7 +14,7 @@ namespace Continentis.Mods.Basic.Cards
new Cmd_PlayAnimation(user.characterView, "Skill"),
new Cmd_Function(() =>
{
CreateCharacterBuff<Buffs.KnifeTrick>(GetAttribute("BuffStack_KnifeTrick")).Apply(user, user, this);
CreateCharacterBuff<Buffs.KnifeTrick>(GetAttribute("BuffStack")).Apply(user, user, this);
}));
return new List<CommandBase> { mainGroup };