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.
20 lines
396 B
C#
20 lines
396 B
C#
using System;
|
|
|
|
public class CostHalfRoundDownModifier : CostHalfModifier
|
|
{
|
|
public CostHalfRoundDownModifier(bool isResidentModifier)
|
|
: base(isResidentModifier)
|
|
{
|
|
}
|
|
|
|
public override int CalcCost(int cost)
|
|
{
|
|
return (int)Math.Floor((float)cost / 2f);
|
|
}
|
|
|
|
public override ICardCostModifier Clone()
|
|
{
|
|
return new CostHalfRoundDownModifier(base.IsResidentModifier);
|
|
}
|
|
}
|