|
@@ -43,15 +43,20 @@ 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();
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
public List<AccountFileInfo.EventList> UseDivinesense(int bigMapId)
|
|
|
{
|
|
|
DivineSenseConfig divineSenseConfig = ConfigComponent.Instance.Get<DivineSenseConfig>(AccountFileInfo.Instance.playerData.divineSenseLevel);
|
|
|
+ HeroPowerUpConfig heroPowerUpConfig = ConfigComponent.Instance.Get<HeroPowerUpConfig>(1);
|
|
|
int count = AccountFileInfo.Instance.playerData.divineSensePoint / PlayerManager.Instance.gameConstantConfig.DetectEventCount;
|
|
|
if (count <= 0)
|
|
|
{
|
|
@@ -59,8 +64,13 @@ public class EventSystemManager : Singleton<EventSystemManager>
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
- AccountFileInfo.Instance.playerData.divineSenseexp += AccountFileInfo.Instance.playerData.divineSensePoint;
|
|
|
- AccountFileInfo.Instance.playerData.divineSensePoint = 0;
|
|
|
+ int maxCount = heroPowerUpConfig.ShenshiMax / PlayerManager.Instance.gameConstantConfig.DetectEventCount;
|
|
|
+ count = count + AccountFileInfo.Instance.playerData.eventList.Count > maxCount ? maxCount - AccountFileInfo.Instance.playerData.eventList.Count : count;
|
|
|
+
|
|
|
+ int xiaoHao = count * PlayerManager.Instance.gameConstantConfig.DetectEventCount;
|
|
|
+
|
|
|
+ AccountFileInfo.Instance.playerData.divineSenseexp += xiaoHao;
|
|
|
+ AccountFileInfo.Instance.playerData.divineSensePoint -= xiaoHao;
|
|
|
EventManager.Instance.Dispatch(CustomEventType.DivineSensePointChange, null);
|
|
|
// 神识升级逻辑
|
|
|
UpDivinesense();
|
|
@@ -303,7 +313,7 @@ public class EventSystemManager : Singleton<EventSystemManager>
|
|
|
AccountFileInfo.Instance.playerData.events.Add(eventData);
|
|
|
|
|
|
if (AccountFileInfo.Instance.playerData.senceExplorationProgress < 100)
|
|
|
- AccountFileInfo.Instance.playerData.senceExplorationProgress += 5;
|
|
|
+ AccountFileInfo.Instance.playerData.senceExplorationProgress += 1;
|
|
|
|
|
|
|
|
|
AccountFileInfo.Instance.playerData.eventList.Remove(CurrentEventList);
|