|
|
@@ -618,7 +618,7 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
{
|
|
|
int miao = AccountFileInfo.Instance.playerData.QiankundaiDropTimer + exitMiao;
|
|
|
miao = miao >= gameConstantConfig.qiankundaiMaxTime
|
|
|
- ? gameConstantConfig.qiankundaiMaxTime - miao
|
|
|
+ ? gameConstantConfig.qiankundaiMaxTime - miao
|
|
|
: miao;
|
|
|
for (int i = 0; i < miao; i++)
|
|
|
{
|
|
|
@@ -637,11 +637,21 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
{
|
|
|
float todayResidueShenShi = gameConstantConfig.shenshiPointRecSPD[0] -
|
|
|
AccountFileInfo.Instance.playerData.todayDivineSensePoint;
|
|
|
+ todayResidueShenShi =
|
|
|
+ AccountFileInfo.Instance.playerData.divineSensePoint + todayResidueShenShi >
|
|
|
+ heroPowerUpConfig.ShenshiMax
|
|
|
+ ? AccountFileInfo.Instance.playerData.divineSensePoint + todayResidueShenShi -
|
|
|
+ heroPowerUpConfig.ShenshiMax
|
|
|
+ : todayResidueShenShi;
|
|
|
|
|
|
miao = (int)(todayResidueShenShi / gameConstantConfig.shenshiPointRecSPD[1]);
|
|
|
|
|
|
+ miao = miao > exitMiao ? exitMiao : miao;
|
|
|
+
|
|
|
float todayResidue = gameConstantConfig.shenshiPointRecSPD[1] * miao;
|
|
|
- todayResidue = todayResidue > heroPowerUpConfig.ShenshiMax ? heroPowerUpConfig.ShenshiMax : todayResidue;
|
|
|
+ todayResidue = todayResidue > heroPowerUpConfig.ShenshiMax
|
|
|
+ ? heroPowerUpConfig.ShenshiMax
|
|
|
+ : todayResidue;
|
|
|
AccountFileInfo.Instance.playerData.todayDivineSensePoint += todayResidue;
|
|
|
AccountFileInfo.Instance.playerData.divineSensePoint += todayResidue;
|
|
|
}
|
|
|
@@ -650,7 +660,10 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
if (residueExitMiao > 0)
|
|
|
{
|
|
|
float todaySs2 = gameConstantConfig.shenshiPointRecSPD[2] * residueExitMiao;
|
|
|
- todaySs2 = todaySs2 > heroPowerUpConfig.ShenshiMax ? heroPowerUpConfig.ShenshiMax : todaySs2;
|
|
|
+ float allShenshi = todaySs2 + AccountFileInfo.Instance.playerData.divineSensePoint;
|
|
|
+ todaySs2 = allShenshi > heroPowerUpConfig.ShenshiMax
|
|
|
+ ? allShenshi - heroPowerUpConfig.ShenshiMax
|
|
|
+ : todaySs2;
|
|
|
AccountFileInfo.Instance.playerData.divineSensePoint += todaySs2;
|
|
|
}
|
|
|
}
|