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:
20
SVSim.BattleEngine/Engine/AddHealModifierInfo.cs
Normal file
20
SVSim.BattleEngine/Engine/AddHealModifierInfo.cs
Normal file
@@ -0,0 +1,20 @@
|
||||
public class AddHealModifierInfo : HealModifier
|
||||
{
|
||||
public int AddHealAmount { get; private set; }
|
||||
|
||||
public AddHealModifierInfo(int addHealAmount, int order, BattleCardBase owner)
|
||||
{
|
||||
AddHealAmount = addHealAmount;
|
||||
base.OrderCount = order;
|
||||
_owner = owner;
|
||||
}
|
||||
|
||||
public override int Calc(int healAmount, BattleCardBase healOwner, BattleCardBase target)
|
||||
{
|
||||
if (healOwner.IsPlayer != _owner.IsPlayer)
|
||||
{
|
||||
return healAmount;
|
||||
}
|
||||
return healAmount + AddHealAmount;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user