狗屎Minimax坏我代码

This commit is contained in:
SoulliesOfficial
2026-04-18 13:57:19 -04:00
parent 41140a2017
commit 7379583165
473 changed files with 34480 additions and 8069 deletions

View File

@@ -16,8 +16,8 @@ namespace Cielonos.MainGame
Kinetics = 2,
Explosion = 3,
Magic = 4,
Elemental = 5,
Pure = 6
Pure = 5,
Blank = 6, // 代表不具有特定攻击类型的伤害,例如持续伤害、反伤等
}
public static string AttackTypeToString(this AttackType attackType)
@@ -28,8 +28,8 @@ namespace Cielonos.MainGame
AttackType.Kinetics => "Kinetics",
AttackType.Explosion => "Explosion",
AttackType.Magic => "Magic",
AttackType.Elemental => "Elemental",
AttackType.Pure => "Pure",
AttackType.Blank => "Blank",
_ => throw new ArgumentOutOfRangeException(nameof(attackType), attackType, null)
};
}
@@ -88,12 +88,14 @@ namespace Cielonos.MainGame
public Attack.AttackType attackType;
public BreakthroughType breakthroughType;
public DisruptionType disruptionType;
public List<string> tags;
public float damageMultiplier = 1f;
public float additionalFlatDamage = 0f;
public AttackValue(CharacterBase attacker, bool isCritical, float damage, Attack.AttackType attackType,
DisruptionType disruptionType = DisruptionType.None, BreakthroughType breakthroughType = BreakthroughType.None)
DisruptionType disruptionType = DisruptionType.None, BreakthroughType breakthroughType = BreakthroughType.None,
List<string> tags = null)
{
this.attacker = attacker;
this.isCritical = isCritical;
@@ -101,11 +103,12 @@ namespace Cielonos.MainGame
this.attackType = attackType;
this.disruptionType = disruptionType;
this.breakthroughType = breakthroughType;
this.tags = tags != null ? new List<string>(tags) : new List<string>();
}
public AttackValue Clone()
{
AttackValue cloned = new AttackValue(attacker, isCritical, damage, attackType, disruptionType, breakthroughType);
AttackValue cloned = new AttackValue(attacker, isCritical, damage, attackType, disruptionType, breakthroughType, tags);
cloned.damageMultiplier = this.damageMultiplier;
cloned.additionalFlatDamage = this.additionalFlatDamage;
return cloned;