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:
27
SVSim.BattleEngine/Engine/SetHealModifierInfo.cs
Normal file
27
SVSim.BattleEngine/Engine/SetHealModifierInfo.cs
Normal file
@@ -0,0 +1,27 @@
|
||||
public class SetHealModifierInfo : HealModifier
|
||||
{
|
||||
private bool _isTargetSelfClass;
|
||||
|
||||
public int SetHealAmount { get; private set; }
|
||||
|
||||
public SetHealModifierInfo(int setHealAmount, int order, BattleCardBase owner, bool isTargetSelfClass)
|
||||
{
|
||||
SetHealAmount = setHealAmount;
|
||||
base.OrderCount = order;
|
||||
_owner = owner;
|
||||
_isTargetSelfClass = isTargetSelfClass;
|
||||
}
|
||||
|
||||
public override int Calc(int healAmount, BattleCardBase healOwner, BattleCardBase target)
|
||||
{
|
||||
if (_isTargetSelfClass)
|
||||
{
|
||||
if (target.IsClass && _owner == target)
|
||||
{
|
||||
return SetHealAmount;
|
||||
}
|
||||
return healAmount;
|
||||
}
|
||||
return SetHealAmount;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user