|
@@ -257,14 +257,14 @@ namespace GFGGame
|
|
|
public static int GetCanFightTime(int levelCfgId)
|
|
|
{
|
|
|
var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
|
|
|
- int times = (int)Math.Floor((float)GameGlobal.myNumericComponent.GetAsInt(NumericType.Power) / levelCfg.power);
|
|
|
+ int times = (int)Math.Floor((float)RoleDataManager.power / levelCfg.power);
|
|
|
return times;
|
|
|
}
|
|
|
|
|
|
public static void GetCanFightTime(int type, int subType, int levelCfgId, out int times, out string title)
|
|
|
{
|
|
|
var levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelCfgId);
|
|
|
- times = (int)Math.Floor((float)GameGlobal.myNumericComponent.GetAsInt(NumericType.Power) / levelCfg.power);//体力次数
|
|
|
+ times = (int)Math.Floor((float)RoleDataManager.power / levelCfg.power);//体力次数
|
|
|
title = "";
|
|
|
if (type == ConstInstanceZonesType.Story && subType == ConstInstanceZonesSubType.Normal)
|
|
|
{
|