|
@@ -286,7 +286,7 @@ namespace GFGGame
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
- return GetStarCount(currentLevelID, score);
|
|
|
+ return CalculateHelper.GetStoryChapterStar(currentLevelID, score);
|
|
|
}
|
|
|
|
|
|
public static int GetStarCountHistory(string levelID, int score)
|
|
@@ -298,30 +298,7 @@ namespace GFGGame
|
|
|
{
|
|
|
return 0;
|
|
|
}
|
|
|
- return GetStarCount(levelID, score);
|
|
|
- }
|
|
|
-
|
|
|
- public static int GetStarCount(string levelID, int score)
|
|
|
- {
|
|
|
- StoryLevelCfg levelCfg = StoryLevelCfgArray.Instance.GetCfg(levelID);
|
|
|
- StoryFightCfg fightCfg = StoryFightCfgArray.Instance.GetCfg(levelCfg.fightID);
|
|
|
- int starCount = 0;
|
|
|
- if (score > fightCfg.score1)
|
|
|
- {
|
|
|
- if (score > fightCfg.score3)
|
|
|
- {
|
|
|
- starCount = 3;
|
|
|
- }
|
|
|
- else if (score > fightCfg.score2)
|
|
|
- {
|
|
|
- starCount = 2;
|
|
|
- }
|
|
|
- else
|
|
|
- {
|
|
|
- starCount = 1;
|
|
|
- }
|
|
|
- }
|
|
|
- return starCount;
|
|
|
+ return CalculateHelper.GetStoryChapterStar(levelID, score);
|
|
|
}
|
|
|
|
|
|
public static bool CheckCurrentScoreEnough(int score)
|