Backstab
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
using Continentis.MainGame.Card;
|
||||
using Continentis.MainGame.Character;
|
||||
using Continentis.MainGame.Commands;
|
||||
using SLSFramework.General;
|
||||
using System.Collections.Generic;
|
||||
|
||||
@@ -7,9 +8,28 @@ namespace Continentis.Mods.Basic.Cards
|
||||
{
|
||||
public class Backstab : CardLogicBase
|
||||
{
|
||||
private int _sharpnessCount = 0;
|
||||
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
|
||||
{
|
||||
return base.PlayEffect(targetList);
|
||||
CommandGroup mainGroup = TargetListCommandGroup( targetList,
|
||||
new Cmd_PlayAnimation(user.characterView, "Attack"),
|
||||
new Cmd_PlaySFX("SFX_Basic_SwordStrike"),
|
||||
new Cmd_SpawnVFX("VFX_Basic_RedImpact"),
|
||||
new Cmd_ParamFunction<CharacterBase>(target =>
|
||||
{
|
||||
_sharpnessCount = 0;
|
||||
if (user.combatBuffSubmodule.HasBuff<Buffs.Sharpness>())
|
||||
{
|
||||
_sharpnessCount = user.combatBuffSubmodule.GetBuff<Buffs.Sharpness>().unitedStackSubmodule.stackAmount;
|
||||
}
|
||||
user.Attack(target, GetFinalDamage(target));
|
||||
}),
|
||||
new Cmd_ParamFunction<CharacterBase>(target =>
|
||||
{
|
||||
CreateCharacterBuff<Buffs.Sharpness>(_sharpnessCount).Apply(user, user, this);
|
||||
}));
|
||||
|
||||
return new List<CommandBase> { mainGroup };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,11 +16,6 @@ namespace Continentis.Mods.Basic.Cards
|
||||
new Cmd_SpawnVFX("VFX_Basic_RedImpact"),
|
||||
new Cmd_ParamFunction<CharacterBase>(target =>
|
||||
{
|
||||
var extraDamage = 0;
|
||||
if (target.combatBuffSubmodule.HasBuff<Buffs.Corrosion>())
|
||||
{
|
||||
extraDamage = target.combatBuffSubmodule.GetBuff<Buffs.Corrosion>().unitedStackSubmodule.stackAmount;
|
||||
}
|
||||
user.Attack(target, GetFinalDamage(target));
|
||||
}));
|
||||
|
||||
|
||||
@@ -17,7 +17,7 @@ Card_Basic_BladeOfFear_DisplayName,Blade of Fear,怖刃,,,,,
|
||||
Card_Basic_BladeOfFear_FunctionText,Test Description,造成$Attribute("Damage")点伤害。\n获得$Attribute("BuffStack")层$Keyword("Basic_Sharpness")。,,,,,
|
||||
Card_Basic_AmbushStance_DisplayName,Ambush Stance,伺机待发,,,,,
|
||||
Card_Basic_AmbushStance_FunctionText,Test Description,每当你打出一张牌,获得$Attribute("BuffStack")层$Keyword("Basic_Sharpness")。,,,,,
|
||||
Card_Basic_Backstab_DisplayName,Backstab,背刺(TODO),,,,,
|
||||
Card_Basic_Backstab_FunctionText,Test Description,TODO,,,,,
|
||||
Card_Basic_Backstab_DisplayName,Backstab,背刺,,,,,
|
||||
Card_Basic_Backstab_FunctionText,Test Description,造成$Attribute("Damage")点伤害。\n返还这张牌使用的$Keyword("Basic_Sharpness")层数。,,,,,
|
||||
Card_Basic_FlashTerror_DisplayName,FlashTerror,快速威吓(TODO),,,,,
|
||||
Card_Basic_FlashTerror_FunctionText,Test Description,TODO,,,,,
|
||||
|
||||
|
Can't render this file because it contains an unexpected character in line 3 and column 64.
|
Binary file not shown.
|
Before Width: | Height: | Size: 520 KiB After Width: | Height: | Size: 334 KiB |
@@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3c126886acf6535418c51c5e2c67347a
|
||||
guid: 7e7ad12f4b02f7e419cff05235ea8fe6
|
||||
labels:
|
||||
- UnityAI
|
||||
TextureImporter:
|
||||
|
||||
Reference in New Issue
Block a user