|
@@ -43,9 +43,13 @@ public class EventSystemManager : Singleton<EventSystemManager>
|
|
|
if (timer > 1)
|
|
|
{
|
|
|
timer = 0;
|
|
|
- AccountFileInfo.Instance.playerData.divineSensePoint += 3;
|
|
|
- EventManager.Instance.Dispatch(CustomEventType.DivineSensePointChange, null);
|
|
|
- AccountFileInfo.Instance.SavePlayerData();
|
|
|
+ HeroPowerUpConfig heroPowerUpConfig = ConfigComponent.Instance.Get<HeroPowerUpConfig>(1);
|
|
|
+ if (AccountFileInfo.Instance.playerData.divineSensePoint < heroPowerUpConfig.ShenshiMax)
|
|
|
+ {
|
|
|
+ AccountFileInfo.Instance.playerData.divineSensePoint += 3;
|
|
|
+ EventManager.Instance.Dispatch(CustomEventType.DivineSensePointChange, null);
|
|
|
+ AccountFileInfo.Instance.SavePlayerData();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|