|
@@ -171,6 +171,9 @@ public class EventSystemManager : Singleton<EventSystemManager>
|
|
|
|
|
|
|
|
//扣除神识值 增加神识经验
|
|
//扣除神识值 增加神识经验
|
|
|
int xiaoHao = eventConfigs.Count * PlayerManager.Instance.gameConstantConfig.DetectEventCount;
|
|
int xiaoHao = eventConfigs.Count * PlayerManager.Instance.gameConstantConfig.DetectEventCount;
|
|
|
|
|
+ xiaoHao = xiaoHao > AccountFileInfo.Instance.playerData.divineSensePoint
|
|
|
|
|
+ ? (int)AccountFileInfo.Instance.playerData.divineSensePoint
|
|
|
|
|
+ : xiaoHao;
|
|
|
AccountFileInfo.Instance.playerData.divineSenseexp += xiaoHao;
|
|
AccountFileInfo.Instance.playerData.divineSenseexp += xiaoHao;
|
|
|
AccountFileInfo.Instance.playerData.divineSensePoint -= xiaoHao;
|
|
AccountFileInfo.Instance.playerData.divineSensePoint -= xiaoHao;
|
|
|
|
|
|
|
@@ -548,7 +551,6 @@ public class EventSystemManager : Singleton<EventSystemManager>
|
|
|
//添加事件
|
|
//添加事件
|
|
|
public AccountFileInfo.EventList AddEvent(int eventID)
|
|
public AccountFileInfo.EventList AddEvent(int eventID)
|
|
|
{
|
|
{
|
|
|
-
|
|
|
|
|
CanTriggerEvent(eventID);
|
|
CanTriggerEvent(eventID);
|
|
|
EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(eventID);
|
|
EventConfig eventConfig = ConfigComponent.Instance.Get<EventConfig>(eventID);
|
|
|
AccountFileInfo.EventList eventList = null;
|
|
AccountFileInfo.EventList eventList = null;
|