Card爆改!

This commit is contained in:
SoulliesOfficial
2025-11-15 12:17:34 -05:00
parent 85bbe2431c
commit 5fe665d0ce
121 changed files with 838 additions and 783 deletions

View File

@@ -9,12 +9,12 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class Ambush : CardLogicBase
{
protected override void SetUpLogicComponents()
public override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_GenerateCards>();
}
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential);
mainGroup.AddCommand(new Cmd_PlayAnimation(user.characterView, "Skill"));

View File

@@ -8,7 +8,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class AmbushStance : CardLogicBase
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>

View File

@@ -9,7 +9,8 @@ namespace Continentis.Mods.Basic.Cards.Assassin
public class Backstab : CardLogicBase
{
private int _sharpnessCount = 0;
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup( targetList,
new Cmd_PlayAnimation(user.characterView, "Attack"),
@@ -22,7 +23,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
_sharpnessCount = user.combatBuffSubmodule.GetBuff<Buffs.Sharpness>().unitedStackSubmodule.stackAmount;
}
user.Attack(target, GetFinalDamage(target));
user.Attack(target, GetTargetedFinalDamage(target));
}),
new Cmd_ParamFunction<CharacterBase>(target =>
{

View File

@@ -9,12 +9,12 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class BladeOfFear : CardLogicBase
{
protected override void SetUpLogicComponents()
public override void SetUpLogicComponents()
{
AddLogicComponent<CardLogicComponent_Attack>();
}
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
base.PlayEffect(targetList);
@@ -22,7 +22,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
new Cmd_PlayAnimation(user.characterView, "Attack"),
new Cmd_ParamFunction<CharacterBase>(0.2f, target =>
{
user.Attack(target, GetFinalDamage(target));
user.Attack(target, GetTargetedFinalDamage(target));
}));
mainGroup.AddCommand(new Cmd_Function(() =>
{

View File

@@ -10,7 +10,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class CompoundPoison : CardLogicBase
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>

View File

@@ -8,7 +8,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class ExtremePain : CardLogicBase
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_PlayAnimation(user.characterView, "Attack"),
@@ -16,15 +16,15 @@ namespace Continentis.Mods.Basic.Cards.Assassin
new Cmd_SpawnVFX("VFX_Basic_RedImpact"),
new Cmd_ParamFunction<CharacterBase>(target =>
{
user.Attack(target, GetFinalDamage(target));
user.Attack(target, GetTargetedFinalDamage(target));
}));
return new List<CommandBase> { mainGroup };
}
public override int GetFinalDamage(CharacterBase target, List<string> elementalTags = null)
public override int GetTargetedFinalDamage(CharacterBase target, List<string> elementalTags = null)
{
var baseDamage = base.GetFinalDamage(target, elementalTags);
var baseDamage = base.GetTargetedFinalDamage(target, elementalTags);
var extraDamage = 0;
if (target.combatBuffSubmodule.HasBuff<Buffs.Corrosion>())
{

View File

@@ -8,7 +8,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class FlashTerror : CardLogicBase
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_ParamFunction<CharacterBase>(0.01f, target =>

View File

@@ -8,7 +8,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class KnifeTrick : CardLogicBase
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = new CommandGroup(ExecutionMode.Sequential,
new Cmd_PlayAnimation(user.characterView, "Skill"),

View File

@@ -8,7 +8,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class Stealth : CardLogicBase
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
var mainGroup = new CommandGroup(ExecutionMode.Sequential);
mainGroup.AddCommand(new Cmd_Function(() =>

View File

@@ -9,7 +9,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class Torture : CardLogicBase
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandQueueManager.Instance.AddCommand(user.deckSubmodule.DrawCards(GetAttribute("DrawCount")));
CommandGroup mainGroup = TargetListCommandGroup(targetList,

View File

@@ -8,7 +8,7 @@ namespace Continentis.Mods.Basic.Cards.Assassin
{
public class WoundDeterioration : CardLogicBase
{
protected override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
public override List<CommandBase> PlayEffect(List<CharacterBase> targetList)
{
CommandGroup mainGroup = TargetListCommandGroup(targetList,
new Cmd_ParamFunction<CharacterBase>(0.05f, target =>