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.
28 lines
650 B
C#
28 lines
650 B
C#
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;
|
|
}
|
|
}
|