|
@@ -88,18 +88,19 @@ namespace Fort23.Mono
|
|
|
|
|
|
|
|
Btn_Eveent.onClick.AddListener(() =>
|
|
Btn_Eveent.onClick.AddListener(() =>
|
|
|
{
|
|
{
|
|
|
- if (daoYouData.favorabilityLv >= _daoyouModelConfig.EmotionLvforQuest
|
|
|
|
|
- && !EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.QuestID)
|
|
|
|
|
- && EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.EventCompleteforQuest)
|
|
|
|
|
- && !EventSystemManager.Instance.IsEventCompleted(_daoyouModelConfig.QuestID))
|
|
|
|
|
- {
|
|
|
|
|
- AccountFileInfo.EventList eventList =
|
|
|
|
|
- EventSystemManager.Instance.AddEvent(_daoyouModelConfig.QuestID);
|
|
|
|
|
- AccountFileInfo.Instance.playerData.eventList.Add(eventList);
|
|
|
|
|
- AccountFileInfo.Instance.SavePlayerData();
|
|
|
|
|
- EventSystemManager.Instance.TriggerEvent(eventList);
|
|
|
|
|
- Btn_Eveent.gameObject.SetActive(false);
|
|
|
|
|
- }
|
|
|
|
|
|
|
+ TipMessagePanel.OpenTipMessagePanel(LanguageManager.Instance.Text(10697, daoYouData.favorabilityLv));
|
|
|
|
|
+ // if (daoYouData.favorabilityLv >= _daoyouModelConfig.EmotionLvforQuest
|
|
|
|
|
+ // && !EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.QuestID)
|
|
|
|
|
+ // && EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.EventCompleteforQuest)
|
|
|
|
|
+ // && !EventSystemManager.Instance.IsEventCompleted(_daoyouModelConfig.QuestID))
|
|
|
|
|
+ // {
|
|
|
|
|
+ // AccountFileInfo.EventList eventList =
|
|
|
|
|
+ // EventSystemManager.Instance.AddEvent(_daoyouModelConfig.QuestID);
|
|
|
|
|
+ // AccountFileInfo.Instance.playerData.eventList.Add(eventList);
|
|
|
|
|
+ // AccountFileInfo.Instance.SavePlayerData();
|
|
|
|
|
+ // EventSystemManager.Instance.TriggerEvent(eventList);
|
|
|
|
|
+ // Btn_Eveent.gameObject.SetActive(false);
|
|
|
|
|
+ // }
|
|
|
});
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
@@ -150,7 +151,16 @@ namespace Fort23.Mono
|
|
|
for (int i = 0; i < count; i++)
|
|
for (int i = 0; i < count; i++)
|
|
|
{
|
|
{
|
|
|
int bl = Random.Range(emotionConfig.hanganUpRate[0], emotionConfig.hanganUpRate[1] + 1);
|
|
int bl = Random.Range(emotionConfig.hanganUpRate[0], emotionConfig.hanganUpRate[1] + 1);
|
|
|
- daoYouData.exp += (int)(daoyouGiftConfig.emotionValue * bl * 0.001f);
|
|
|
|
|
|
|
+ //喜好礼物翻倍
|
|
|
|
|
+ if (_daoyouModelConfig.PreferGiftID.Contains(daoyouGiftConfig.ItemID))
|
|
|
|
|
+ {
|
|
|
|
|
+ daoYouData.exp += (int)(daoyouGiftConfig.emotionValue * bl * 0.001f * PlayerManager.Instance.gameConstantConfig.daolvfavoratePara * 0.01f);
|
|
|
|
|
+ }
|
|
|
|
|
+ else
|
|
|
|
|
+ {
|
|
|
|
|
+ daoYouData.exp += (int)(daoyouGiftConfig.emotionValue * bl * 0.001f);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
@@ -252,8 +262,7 @@ namespace Fort23.Mono
|
|
|
|
|
|
|
|
daoYouaaFfixWidgets.Clear();
|
|
daoYouaaFfixWidgets.Clear();
|
|
|
|
|
|
|
|
- if (daoYouData.favorabilityLv >= _daoyouModelConfig.EmotionLvforQuest
|
|
|
|
|
- && !EventSystemManager.Instance.BagIsEvent(_daoyouModelConfig.QuestID)
|
|
|
|
|
|
|
+ if (daoYouData.favorabilityLv != -1
|
|
|
&& !EventSystemManager.Instance.IsEventCompleted(_daoyouModelConfig.QuestID))
|
|
&& !EventSystemManager.Instance.IsEventCompleted(_daoyouModelConfig.QuestID))
|
|
|
{
|
|
{
|
|
|
Btn_Eveent.gameObject.SetActive(true);
|
|
Btn_Eveent.gameObject.SetActive(true);
|