Files
SVSimServer/SVSim.BattleEngine/Engine/Wizard/AIBuffExecutingInfo_old.cs
gamer147 0d9d8acae0 feat(battle-engine): M1 auto-copy closure (782 battle-logic files)
Compile-driven bulk-copy loop (tools/engine-port/m1_copy_loop.py) pulled the precise reference closure of the battle-core roots, stopping at the classify god-object/View-VFX-UI boundary. 782 files; no re-explosion (M0 had estimated ~order 1000). Residual frontier = 52 shim-classified + 80 external (Unity/BCL) types to author next.
2026-06-05 16:57:20 -04:00

57 lines
1.1 KiB
C#

namespace Wizard;
public class AIBuffExecutingInfo_old
{
public int AttackValue;
public int LifeValue;
public bool IsMultiplyAttack;
public bool IsMultiplyLife;
public bool IsEmpty()
{
if (AttackValue == 0 && LifeValue == 0 && !IsMultiplyAttack)
{
return !IsMultiplyLife;
}
return false;
}
public bool IsBuff()
{
bool flag = ((!IsMultiplyAttack) ? (AttackValue >= 0) : (AttackValue >= 1));
bool flag2 = ((!IsMultiplyLife) ? (LifeValue >= 0) : (LifeValue >= 1));
return flag && flag2;
}
public int GetExpectedAttackBuffValue(AIVirtualCard target)
{
return GetExpectedAttackBuffValue(target.Attack);
}
public int GetExpectedAttackBuffValue(int attack)
{
if (IsMultiplyAttack)
{
return attack * AttackValue - attack;
}
return AttackValue;
}
public int GetExpectedLifeBuffValue(AIVirtualCard target)
{
return GetExpectedLifeBuffValue(target.Life);
}
public int GetExpectedLifeBuffValue(int life)
{
if (IsMultiplyLife)
{
return life * LifeValue - life;
}
return LifeValue;
}
}