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:
22
SVSim.BattleEngine/Engine/Wizard/BattlePassUtility.cs
Normal file
22
SVSim.BattleEngine/Engine/Wizard/BattlePassUtility.cs
Normal file
@@ -0,0 +1,22 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Wizard;
|
||||
|
||||
public class BattlePassUtility
|
||||
{
|
||||
public static int BattlePassMaxLevel = BattlePassLevelInfoList.Keys.Max();
|
||||
|
||||
private static Dictionary<int, BattlePassLevelInfo> BattlePassLevelInfoList => Data.Load.data.BattlePassLevelInfoList;
|
||||
|
||||
public static int BattlePassMaxPoint => BattlePassLevelInfoList[BattlePassMaxLevel].RequiredPoint;
|
||||
|
||||
public static int NextLevelRequiredPoint(int level)
|
||||
{
|
||||
if (level != BattlePassMaxLevel)
|
||||
{
|
||||
return BattlePassLevelInfoList[level + 1].RequiredPoint - BattlePassLevelInfoList[level].RequiredPoint;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user