feat(battle-engine): close the AI-simulation subsystem (verbatim)
Copied the 89 uncopied AI*SimulationUtility/extension files defining the AIVirtualCard/AIVirtualField extension methods; the compile loop then auto-closed the revealed type deps (~3049 files total, drift-clean). 10.0k -> 62 errors.
This commit is contained in:
37
SVSim.BattleEngine/Engine/Wizard/AILifeLowerLimitInfo.cs
Normal file
37
SVSim.BattleEngine/Engine/Wizard/AILifeLowerLimitInfo.cs
Normal file
@@ -0,0 +1,37 @@
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class AILifeLowerLimitInfo : AIBarrierInfoBase
|
||||
{
|
||||
public override AIBarrierType BarrierType => AIBarrierType.DamageClippingLifeLowerLimit;
|
||||
|
||||
public AILifeLowerLimitInfo(AIDamageType damageType, AIBarrierStopTiming stopTiming)
|
||||
: base(0, damageType, stopTiming)
|
||||
{
|
||||
UpdateHash();
|
||||
}
|
||||
|
||||
public AILifeLowerLimitInfo(AIDamageType damageType, List<AIBarrierStopTiming> stopTimingList)
|
||||
: base(0, damageType, stopTimingList)
|
||||
{
|
||||
UpdateHash();
|
||||
}
|
||||
|
||||
public override AIBarrierInfoBase Clone()
|
||||
{
|
||||
return new AILifeLowerLimitInfo(base.DamageType, base.StopTimingList);
|
||||
}
|
||||
|
||||
public override bool IsShield()
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
protected override int CalcDamage(AIVirtualCard owner, int damage)
|
||||
{
|
||||
int b = owner.Life - 1;
|
||||
return Mathf.Min(damage, b);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user