|
@@ -658,6 +658,8 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
heroPowerUpConfig.ShenshiMax
|
|
heroPowerUpConfig.ShenshiMax
|
|
|
? heroPowerUpConfig.ShenshiMax - AccountFileInfo.Instance.playerData.divineSensePoint
|
|
? heroPowerUpConfig.ShenshiMax - AccountFileInfo.Instance.playerData.divineSensePoint
|
|
|
: todayResidue;
|
|
: todayResidue;
|
|
|
|
|
+ if (todayResidue < 0)
|
|
|
|
|
+ todayResidue = 0;
|
|
|
AccountFileInfo.Instance.playerData.todayDivineSensePoint += todayResidue;
|
|
AccountFileInfo.Instance.playerData.todayDivineSensePoint += todayResidue;
|
|
|
AccountFileInfo.Instance.playerData.divineSensePoint += todayResidue;
|
|
AccountFileInfo.Instance.playerData.divineSensePoint += todayResidue;
|
|
|
}
|
|
}
|
|
@@ -668,8 +670,10 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
float todaySs2 = gameConstantConfig.shenshiPointRecSPD[2] * residueExitMiao;
|
|
float todaySs2 = gameConstantConfig.shenshiPointRecSPD[2] * residueExitMiao;
|
|
|
float allShenshi = todaySs2 + AccountFileInfo.Instance.playerData.divineSensePoint;
|
|
float allShenshi = todaySs2 + AccountFileInfo.Instance.playerData.divineSensePoint;
|
|
|
todaySs2 = allShenshi > heroPowerUpConfig.ShenshiMax
|
|
todaySs2 = allShenshi > heroPowerUpConfig.ShenshiMax
|
|
|
- ? heroPowerUpConfig.ShenshiMax - allShenshi
|
|
|
|
|
|
|
+ ? heroPowerUpConfig.ShenshiMax - AccountFileInfo.Instance.playerData.divineSensePoint
|
|
|
: todaySs2;
|
|
: todaySs2;
|
|
|
|
|
+ if (todaySs2 < 0)
|
|
|
|
|
+ todaySs2 = 0;
|
|
|
AccountFileInfo.Instance.playerData.divineSensePoint += todaySs2;
|
|
AccountFileInfo.Instance.playerData.divineSensePoint += todaySs2;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|