|
@@ -233,11 +233,7 @@ namespace GFGGame
|
|
return false;//没穿必需品
|
|
return false;//没穿必需品
|
|
}
|
|
}
|
|
|
|
|
|
- int starCount = GetResultStarCount(score);
|
|
|
|
- if (starCount <= 0)
|
|
|
|
- {
|
|
|
|
- return false;//低于一星
|
|
|
|
- }
|
|
|
|
|
|
+
|
|
|
|
|
|
StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(currentLevelCfgId);
|
|
StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(currentLevelCfgId);
|
|
StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
|
|
StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
|
|
@@ -245,13 +241,21 @@ namespace GFGGame
|
|
if (hasFightTarget)
|
|
if (hasFightTarget)
|
|
{
|
|
{
|
|
npcScore = EquipDataCache.cacher.npcTotalScore;
|
|
npcScore = EquipDataCache.cacher.npcTotalScore;
|
|
- if (score < npcScore)
|
|
|
|
|
|
+ if (score > npcScore)
|
|
|
|
+ {
|
|
|
|
+ return true;//分数低于对战对象
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ int starCount = GetResultStarCount(score);
|
|
|
|
+ if (starCount > 0)
|
|
{
|
|
{
|
|
- return false;//分数低于对战对象
|
|
|
|
|
|
+ return true;//低于一星
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
- return true;
|
|
|
|
|
|
+ return false;
|
|
}
|
|
}
|
|
|
|
|
|
public static int GetCanFightTime(int levelCfgId)
|
|
public static int GetCanFightTime(int levelCfgId)
|