|
@@ -55,6 +55,33 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
RandownDaoYou(gameConstantConfig.Daoyoushowuptime + 1000);
|
|
|
}
|
|
|
|
|
|
+ //添加心境
|
|
|
+ public void AddSentimentData(int id)
|
|
|
+ {
|
|
|
+ AccountFileInfo.SentimentData sentimentData = AccountFileInfo.Instance.playerData.SentimentDatas.FirstOrDefault(sd => sd.id == id);
|
|
|
+ if (sentimentData != null)
|
|
|
+ {
|
|
|
+ LogTool.Error("已经用心境 id:" + id);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+
|
|
|
+ SentimentConfig sentimentConfig = ConfigComponent.Instance.Get<SentimentConfig>(id);
|
|
|
+
|
|
|
+ sentimentData = new AccountFileInfo.SentimentData();
|
|
|
+ sentimentData.id = id;
|
|
|
+ sentimentData.mainSentiment = new AccountFileInfo.SentimentProperty();
|
|
|
+ sentimentData.mainSentiment.groupId = sentimentConfig.mainSentimentEffect;
|
|
|
+ foreach (var i in sentimentConfig.sentimentEffect)
|
|
|
+ {
|
|
|
+ AccountFileInfo.SentimentProperty sentimentProperty = new AccountFileInfo.SentimentProperty();
|
|
|
+ sentimentProperty.groupId = i;
|
|
|
+ sentimentData.sentimentProperties.Add(sentimentProperty);
|
|
|
+ }
|
|
|
+
|
|
|
+ AccountFileInfo.Instance.playerData.SentimentDatas.Add(sentimentData);
|
|
|
+ AccountFileInfo.Instance.SavePlayerData();
|
|
|
+ }
|
|
|
+
|
|
|
public void RandownDaoYou(int m)
|
|
|
{
|
|
|
_timerEntity?.Dispose();
|
|
@@ -119,7 +146,7 @@ public class PlayerManager : Singleton<PlayerManager>
|
|
|
levelBl = daoyouguajiResourcLevel.para2;
|
|
|
bl = (int)(guajibuff.GivingRate * levelBl * daoyouLevelupConfig.guajiGrowup * 0.01f * 0.01f);
|
|
|
return bl;
|
|
|
-
|
|
|
+
|
|
|
break;
|
|
|
case 2:
|
|
|
levelBl = daoyouguajiResourcLevel.para2;
|