PlayerManager.cs 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using Core.Language;
  5. using Excel2Json;
  6. using Fort23.Core;
  7. using Fort23.UTool;
  8. using GameLogic.Bag;
  9. using GameLogic.Combat.CombatTool;
  10. using GameLogic.CombatScenesTool;
  11. using GameLogic.Equipment;
  12. using GameLogic.Hero;
  13. using GameLogic.Player;
  14. using UnityEngine;
  15. using Utility;
  16. public class PlayerManager : Singleton<PlayerManager>
  17. {
  18. public GameConstantConfig gameConstantConfig;
  19. public GongFaControl GongFaControl;
  20. public FaBaoControl FaBaoControl;
  21. public BagController BagController;
  22. public Map<long, List<AccountFileInfo.DaoYouData>> GuaijiDaoYou = new Map<long, List<AccountFileInfo.DaoYouData>>();
  23. public bool isTest;
  24. /// <summary>
  25. /// 玩家角色属性
  26. /// </summary>
  27. public HeroInfo myHero;
  28. public long serverTime => TimeHelper.ServerNow();
  29. private AccountFileInfo.PlacesData currentPlaces;
  30. public AccountFileInfo.PlacesData CurrentPlaces
  31. {
  32. get { return currentPlaces; }
  33. set { currentPlaces = value; }
  34. }
  35. public float PlacesBl => GetMapBl(CurrentPlaces.id);
  36. private TimerEntity _timerEntity;
  37. public void Init()
  38. {
  39. AccountFileInfo.Instance.LoadPlayerData();
  40. SetConfigs();
  41. InitGameData();
  42. // int m = Random.Range(0, 4 * 60 * 1000);
  43. RandownDaoYou(gameConstantConfig.Daoyoushowuptime + 1000);
  44. QiankundaiConfig[] qiankundaiConfigs = ConfigComponent.Instance.GetAll<QiankundaiConfig>();
  45. foreach (var qiankundaiConfig in qiankundaiConfigs)
  46. {
  47. if (qiankundaiConfig.dropType == 1)
  48. {
  49. AccountFileInfo.QiankundaiData qiankundaiData = AccountFileInfo.Instance.playerData.QiankundaiDatas.FirstOrDefault(q => q.id == qiankundaiConfig.ID);
  50. if (qiankundaiData == null)
  51. {
  52. qiankundaiData = new AccountFileInfo.QiankundaiData();
  53. qiankundaiData.id = qiankundaiConfig.ID;
  54. if (qiankundaiConfig.dropPara1 == 1)
  55. {
  56. qiankundaiData.refenceTime = TimeHelper.ClientNow() + 60 * 60 * 1000;
  57. }
  58. else if (qiankundaiConfig.dropPara1 == 2)
  59. {
  60. qiankundaiData.refenceTime = TimeHelper.GetBaseRefreshTime(TimeHelper.ClientNow());
  61. }
  62. else if (qiankundaiConfig.dropPara1 == 3)
  63. {
  64. }
  65. AccountFileInfo.Instance.playerData.QiankundaiDatas.Add(qiankundaiData);
  66. }
  67. }
  68. }
  69. AccountFileInfo.Instance.SavePlayerData();
  70. }
  71. /// <summary>
  72. /// 获得固定时间乾坤袋表
  73. /// </summary>
  74. /// <returns></returns>
  75. public List<QiankundaiConfig> GetFixedTimeQiankundaiConfigs()
  76. {
  77. List<QiankundaiConfig> configs = new List<QiankundaiConfig>();
  78. QiankundaiConfig[] qiankundaiConfigs = ConfigComponent.Instance.GetAll<QiankundaiConfig>();
  79. foreach (var qiankundaiConfig in qiankundaiConfigs)
  80. {
  81. if (qiankundaiConfig.dropType == 2)
  82. {
  83. if (myHero.powerUpConfig.ID >= qiankundaiConfig.dropLevel[0] && myHero.powerUpConfig.ID <= qiankundaiConfig.dropLevel[1])
  84. {
  85. configs.Add(qiankundaiConfig);
  86. }
  87. }
  88. }
  89. return configs;
  90. }
  91. //添加心境
  92. public void AddSentimentData(int id)
  93. {
  94. AccountFileInfo.SentimentData sentimentData = AccountFileInfo.Instance.playerData.SentimentDatas.FirstOrDefault(sd => sd.id == id);
  95. if (sentimentData != null)
  96. {
  97. LogTool.Error("已经用心境 id:" + id);
  98. return;
  99. }
  100. SentimentConfig sentimentConfig = ConfigComponent.Instance.Get<SentimentConfig>(id);
  101. sentimentData = new AccountFileInfo.SentimentData();
  102. sentimentData.id = id;
  103. sentimentData.mainSentiment = new AccountFileInfo.SentimentProperty();
  104. sentimentData.mainSentiment.groupId = sentimentConfig.mainSentimentEffect;
  105. foreach (var i in sentimentConfig.sentimentEffect)
  106. {
  107. AccountFileInfo.SentimentProperty sentimentProperty = new AccountFileInfo.SentimentProperty();
  108. sentimentProperty.groupId = i;
  109. sentimentData.sentimentProperties.Add(sentimentProperty);
  110. }
  111. AccountFileInfo.Instance.playerData.SentimentDatas.Add(sentimentData);
  112. AccountFileInfo.Instance.SavePlayerData();
  113. }
  114. public void RandownDaoYou(int m)
  115. {
  116. _timerEntity?.Dispose();
  117. _timerEntity = null;
  118. _timerEntity = TimerComponent.Instance.AddTimer(m, () =>
  119. {
  120. List<AccountFileInfo.DaoYouData> daoYouDatas = AccountFileInfo.Instance.playerData.daoYouDatas.ToList();
  121. foreach (var keyValuePair in GuaijiDaoYou)
  122. {
  123. foreach (var daoYouData in keyValuePair.Value)
  124. {
  125. if (daoYouDatas.Contains(daoYouData))
  126. {
  127. daoYouDatas.Remove(daoYouData);
  128. }
  129. }
  130. }
  131. int count = Random.Range(0, daoYouDatas.Count + 1);
  132. List<AccountFileInfo.DaoYouData> daoyou = new List<AccountFileInfo.DaoYouData>();
  133. for (int i = 0; i < count; i++)
  134. {
  135. int index = Random.Range(0, daoYouDatas.Count);
  136. daoyou.Add(daoYouDatas[index]);
  137. daoYouDatas.RemoveAt(index);
  138. _timerEntity?.Dispose();
  139. _timerEntity = null;
  140. }
  141. if (daoyou.Count > 0)
  142. {
  143. GuaijiDaoYou.Add(TimeHelper.ClientNow() + Random.Range(gameConstantConfig.DaoyouguajiDuration[0], gameConstantConfig.DaoyouguajiDuration[1]) * 1000, daoyou);
  144. EventManager.Instance.Dispatch(CustomEventType.DaoYouCounUpdate, null);
  145. }
  146. RandownDaoYou(gameConstantConfig.Daoyoushowuptime * 1000);
  147. });
  148. }
  149. public int GetDaoYouLevel(AccountFileInfo.DaoYouData daoYouData)
  150. {
  151. DaoyouModelConfig daoyouModelConfig = ConfigComponent.Instance.Get<DaoyouModelConfig>(daoYouData.id);
  152. int level = (int)(myHero.level.Value * daoyouModelConfig.growupRate * 0.01f);
  153. if (level < 1) level = 1;
  154. return level;
  155. }
  156. public int GetBl(AccountFileInfo.DaoYouData daoYouData, int guajibuffId)
  157. {
  158. DaoyouLevelupConfig daoyouLevelupConfig = ConfigComponent.Instance.Get<DaoyouLevelupConfig>(daoYouData.favorabilityLv);
  159. int level = GetDaoYouLevel(daoYouData);
  160. DaoyouguajiResourcLevel daoyouguajiResourcLevel = ConfigComponent.Instance.Get<DaoyouguajiResourcLevel>(level);
  161. guajibuff guajibuff = ConfigComponent.Instance.Get<guajibuff>(guajibuffId);
  162. int levelBl = 0;
  163. int bl = 0;
  164. switch (guajibuff.paraValue)
  165. {
  166. case 1:
  167. levelBl = daoyouguajiResourcLevel.para2;
  168. bl = (int)(guajibuff.GivingRate * levelBl * daoyouLevelupConfig.guajiGrowup * 0.01f * 0.01f);
  169. return bl;
  170. break;
  171. case 2:
  172. levelBl = daoyouguajiResourcLevel.para2;
  173. bl = (int)(guajibuff.GivingRate * levelBl * daoyouLevelupConfig.guajiGrowup * 0.01f * 0.01f);
  174. return bl;
  175. break;
  176. case 3:
  177. levelBl = daoyouguajiResourcLevel.para3;
  178. bl = (int)(guajibuff.GivingRate * levelBl * daoyouLevelupConfig.guajiGrowup * 0.01f * 0.01f);
  179. return bl;
  180. break;
  181. case 4:
  182. levelBl = daoyouguajiResourcLevel.para4;
  183. bl = (int)(guajibuff.GivingRate * levelBl * daoyouLevelupConfig.guajiGrowup * 0.01f * 0.01f);
  184. return bl;
  185. break;
  186. case 5:
  187. levelBl = daoyouguajiResourcLevel.para1;
  188. bl = (int)(guajibuff.GivingRate * levelBl * daoyouLevelupConfig.guajiGrowup * 0.01f * 0.001f);
  189. return bl;
  190. break;
  191. default:
  192. return 0;
  193. }
  194. }
  195. private void SetConfigs()
  196. {
  197. gameConstantConfig = ConfigComponent.Instance.Get<GameConstantConfig>(1);
  198. }
  199. private void InitGameData()
  200. {
  201. GongFaControl = new GongFaControl();
  202. FaBaoControl = new FaBaoControl();
  203. BagController = new BagController();
  204. HeroInfo heroInfo = new HeroInfo();
  205. AccountFileInfo.Instance.playerData.heroData.TaoismSkillId = 601011;
  206. heroInfo.InitHero(AccountFileInfo.Instance.playerData.heroData);
  207. myHero = heroInfo;
  208. myHero.TaoismSkillId = 601011;
  209. BagController.Init();
  210. //初始化关卡
  211. CurrentPlaces = GetPlacesData(GetMaxPlacesId());
  212. StaticUpdater.Instance.RemoveRenderUpdateCallBack(Update);
  213. StaticUpdater.Instance.AddRenderUpdateCallBack(Update);
  214. }
  215. private float timer;
  216. public int GetMaxPlacesId()
  217. {
  218. int placesId = AccountFileInfo.Instance.playerData.placesDatas.Max(p => p.id);
  219. return placesId;
  220. }
  221. public AccountFileInfo.PlacesData GetPlacesData(int placesId)
  222. {
  223. return AccountFileInfo.Instance.playerData.placesDatas.FirstOrDefault(p => p.id == placesId);
  224. }
  225. public float GetMapBl(int map)
  226. {
  227. AccountFileInfo.PlacesData placesData = GetPlacesData(map);
  228. if (placesData == null)
  229. return 0;
  230. PlacesConfig placesConfig = ConfigComponent.Instance.Get<PlacesConfig>(map);
  231. if (placesConfig.TotalScore == 0)
  232. {
  233. return 0;
  234. }
  235. return ((float)placesData.progress / placesConfig.TotalScore) * 100;
  236. // AccountFileInfo.Instance.playerData.completeEvents.Where(ce =>placesConfig.MainTaskID.Contains(ce.eventID) || placesConfig.ZhixianID.Contains(ce.eventID) || placesConfig.ZhixianID.Contains(ce.1001
  237. // ))
  238. }
  239. List<long> removeKey = new List<long>();
  240. private bool isUpdate = false;
  241. private void Update()
  242. {
  243. timer += Time.deltaTime;
  244. if (timer > 1)
  245. {
  246. timer = 0;
  247. // PlayerManager.Instance.myHero.heroData.exp += myHero.powerUpConfig.AutoXiuwei;
  248. // AccountFileInfo.Instance.SavePlayerData();
  249. if (AccountFileInfo.Instance.playerData.QiankundaiDropTimer <= gameConstantConfig.qiankundaiMaxTime)
  250. {
  251. AccountFileInfo.Instance.playerData.QiankundaiDropTimer++;
  252. foreach (var playerDataQiankundaiData in AccountFileInfo.Instance.playerData.QiankundaiDatas)
  253. {
  254. //重置掉落次数
  255. QiankundaiConfig qiankundaiConfig = ConfigComponent.Instance.Get<QiankundaiConfig>(playerDataQiankundaiData.id);
  256. if (qiankundaiConfig.dropType != 2 && TimeHelper.ClientNow() >= playerDataQiankundaiData.refenceTime)
  257. {
  258. if (qiankundaiConfig.dropPara1 == 1)
  259. {
  260. playerDataQiankundaiData.refenceTime = TimeHelper.ClientNow() + 60 * 60 * 1000;
  261. }
  262. else if (qiankundaiConfig.dropPara1 == 2)
  263. {
  264. playerDataQiankundaiData.refenceTime = TimeHelper.GetBaseRefreshTime(TimeHelper.ClientNow());
  265. }
  266. else if (qiankundaiConfig.dropPara1 == 3)
  267. {
  268. }
  269. playerDataQiankundaiData.dropCount = 0;
  270. }
  271. if (myHero.powerUpConfig.ID >= qiankundaiConfig.dropLevel[0] && myHero.powerUpConfig.ID <= qiankundaiConfig.dropLevel[1])
  272. {
  273. if (playerDataQiankundaiData.dropCount < qiankundaiConfig.dropPara2 || qiankundaiConfig.dropPara2 == -1)
  274. {
  275. playerDataQiankundaiData.dropTime++;
  276. if (playerDataQiankundaiData.dropTime >= qiankundaiConfig.dropTypePara)
  277. {
  278. //发放奖励
  279. for (var i = 0; i < qiankundaiConfig.ChoukaID.Length; i++)
  280. {
  281. List<ItemInfo> itemInfos = DropManager.Instance.Drop(qiankundaiConfig.ChoukaID[i], qiankundaiConfig.DropCount[i]);
  282. foreach (var itemInfo in itemInfos)
  283. {
  284. AccountFileInfo.ItemData itemData = AccountFileInfo.Instance.playerData.QiankundaiItemDatas.FirstOrDefault(i => i.itemId == itemInfo.itemID);
  285. if (itemData != null)
  286. {
  287. itemData.itemCount += itemInfo.count.Value;
  288. }
  289. else
  290. {
  291. itemData = itemInfo.ToItemData();
  292. AccountFileInfo.Instance.playerData.QiankundaiItemDatas.Add(itemData);
  293. }
  294. }
  295. }
  296. playerDataQiankundaiData.dropCount = 0;
  297. playerDataQiankundaiData.dropTime = 0;
  298. }
  299. }
  300. }
  301. AccountFileInfo.Instance.SavePlayerData();
  302. }
  303. }
  304. }
  305. //每天刷新
  306. if (TimeHelper.ClientNow() > AccountFileInfo.Instance.playerData.nextRefence)
  307. {
  308. AccountFileInfo.Instance.playerData.nextRefence =
  309. TimeHelper.GetBaseRefreshTime(TimeHelper.ClientNow());
  310. AccountFileInfo.Instance.playerData.todayUseExpElixrPanelCount = 0;
  311. AccountFileInfo.Instance.SavePlayerData();
  312. }
  313. foreach (var keyValuePair in GuaijiDaoYou)
  314. {
  315. if (TimeHelper.ClientNow() > keyValuePair.Key)
  316. {
  317. //判断概率给奖励
  318. isUpdate = true;
  319. foreach (var daoYouData in keyValuePair.Value)
  320. {
  321. DaoyouModelConfig daoyouModelConfig = ConfigComponent.Instance.Get<DaoyouModelConfig>(daoYouData.id);
  322. int bl = GetBl(daoYouData, daoyouModelConfig.guajiBuffID[0]);
  323. int randomValue1 = Random.Range(0, 101);
  324. LogTool.Log("道友随机怪率:" + randomValue1 + " 比例:" + bl);
  325. if (randomValue1 >= bl)
  326. {
  327. for (var i = 1; i < daoyouModelConfig.guajiBuffID.Length; i++)
  328. {
  329. int count = GetBl(daoYouData, daoyouModelConfig.guajiBuffID[i]);
  330. guajibuff guajibuff = ConfigComponent.Instance.Get<guajibuff>(daoyouModelConfig.guajiBuffID[i]);
  331. switch (guajibuff.paraValue)
  332. {
  333. case 1:
  334. BagController.AddItem(1003, count);
  335. LogTool.Log("道友获得道具id:" + 1003 + " 数量:" + count);
  336. break;
  337. case 2:
  338. BagController.AddItem(1001, count);
  339. LogTool.Log("道友获得道具id:" + 1001 + " 数量:" + count);
  340. break;
  341. case 3:
  342. BagController.AddItem(1005, count);
  343. LogTool.Log("道友获得道具id:" + 1005 + " 数量:" + count);
  344. break;
  345. case 4:
  346. BagController.AddItem(1006, count);
  347. LogTool.Log("道友获得道具id:" + 1006 + " 数量:" + count);
  348. break;
  349. }
  350. }
  351. }
  352. }
  353. //移除
  354. removeKey.Add(keyValuePair.Key);
  355. }
  356. }
  357. foreach (var l in removeKey)
  358. {
  359. GuaijiDaoYou.Remove(l);
  360. }
  361. if (isUpdate)
  362. {
  363. EventManager.Instance.Dispatch(CustomEventType.DaoYouCounUpdate, null);
  364. isUpdate = false;
  365. }
  366. }
  367. public void AddTestHeroInfo(TestCombatHeroConfig.TestHeroInfoConfig testHeroInfoConfig)
  368. {
  369. isTest = true;
  370. GongFaControl.allSkill.Clear();
  371. SkillConfig[] allSkillConfig = ConfigComponent.Instance.GetAll<SkillConfig>();
  372. for (int i = 0; i < allSkillConfig.Length; i++)
  373. {
  374. SkillConfig skillConfig = allSkillConfig[i];
  375. if (skillConfig.level == testHeroInfoConfig.skillStart)
  376. {
  377. SkillInfo skillInfo = new SkillInfo(skillConfig.ID, testHeroInfoConfig.skillLevel);
  378. skillInfo.index = -1;
  379. GongFaControl.AddSkillInfo(skillInfo);
  380. }
  381. }
  382. AccountFileInfo.HeroData heroData = new AccountFileInfo.HeroData();
  383. heroData.heroModelId = testHeroInfoConfig.heroID;
  384. heroData.heroPowerId = testHeroInfoConfig.level;
  385. myHero = new HeroInfo();
  386. myHero.InitHero(heroData);
  387. if (testHeroInfoConfig.skill.Count > 0)
  388. {
  389. GongFaControl.allSkill.Clear();
  390. for (int i = 0; i < testHeroInfoConfig.skill.Count; i++)
  391. {
  392. SkillInfo skillInfo = new SkillInfo(testHeroInfoConfig.skill[i], testHeroInfoConfig.skillLevel,
  393. testHeroInfoConfig.skillStart);
  394. skillInfo.index = i;
  395. GongFaControl.AddSkillInfo(skillInfo);
  396. }
  397. }
  398. else
  399. {
  400. SkillInfo[] skillInfos = GongFaControl.allUseSkill;
  401. for (int i = 0; i < skillInfos.Length; i++)
  402. {
  403. if (skillInfos[i] != null)
  404. {
  405. SkillInfo skillInfo = new SkillInfo(skillInfos[i].skillConfig.IDGroup,
  406. testHeroInfoConfig.skillLevel,
  407. testHeroInfoConfig.skillStart);
  408. skillInfo.index = i;
  409. GongFaControl.allUseSkill[i] = skillInfo;
  410. }
  411. }
  412. }
  413. if (testHeroInfoConfig.magicWeaponId.Count > 0)
  414. {
  415. int fbLevel = ((testHeroInfoConfig.level - 1) / 10) + 1;
  416. if (fbLevel <= 0)
  417. {
  418. fbLevel = 1;
  419. }
  420. for (int i = 0; i < testHeroInfoConfig.magicWeaponId.Count; i++)
  421. {
  422. FaBaoInfo faBaoInfo = new FaBaoInfo(testHeroInfoConfig.magicWeaponId[i], fbLevel);
  423. faBaoInfo.FaBaoData.useIndex = i;
  424. FaBaoControl.FightFaBao[i] = faBaoInfo;
  425. FaBaoControl.AddFaBao(faBaoInfo);
  426. }
  427. }
  428. // for (int i = 0; i < 4; i++)
  429. // {
  430. // FaBaoControl.FightFaBao[i] = FaBaoControl.myAllFaBao[i];
  431. // }
  432. myHero.hp += testHeroInfoConfig.hp;
  433. myHero.attack += testHeroInfoConfig.att;
  434. myHero.defense += testHeroInfoConfig.def;
  435. myHero.Metal += testHeroInfoConfig.jing;
  436. myHero.Wood += testHeroInfoConfig.mu;
  437. myHero.Water += testHeroInfoConfig.shui;
  438. myHero.Fire += testHeroInfoConfig.huo;
  439. myHero.Earth += testHeroInfoConfig.tu;
  440. myHero.TaoismSkillId = 601011;
  441. myHero.MagicWeaponID.Clear();
  442. myHero.MagicWeaponID.AddRange(FaBaoControl.FightFaBao);
  443. // for (int i = 0; i < FaBaoControl.FightFaBao.Length; i++)
  444. // {
  445. // FaBaoInfo faBaoInfo = FaBaoControl.FightFaBao[i];
  446. // if (faBaoInfo != null)
  447. // {
  448. // foreach (var VARIABLE in faBaoInfo.attriButedIC)
  449. // {
  450. // switch (VARIABLE.Key)
  451. // {
  452. // case 1:
  453. // myHero.hp += VARIABLE.Value;
  454. // break;
  455. // case 2:
  456. // myHero.defense += VARIABLE.Value;
  457. // break;
  458. // case 3:
  459. // myHero.attack += VARIABLE.Value;
  460. // break;
  461. // }
  462. // }
  463. // }
  464. // }
  465. }
  466. /// <summary>
  467. /// 保存英雄数据
  468. /// </summary>
  469. /// <param name="heroInfo"></param>
  470. public void SaveHeroData(HeroInfo heroInfo)
  471. {
  472. AccountFileInfo.Instance.playerData.heroData = heroInfo.heroData;
  473. AccountFileInfo.Instance.SavePlayerData();
  474. }
  475. /// <summary>
  476. /// 时间(秒)转换位小时分钟秒
  477. /// </summary>
  478. /// <param name="miao"></param>
  479. /// <returns></returns>
  480. public static string TimeToHSM(long miao)
  481. {
  482. long fen = miao / 60;
  483. miao = miao % 60;
  484. long xiaoShi = fen / 60;
  485. long tian = xiaoShi / 24;
  486. xiaoShi = xiaoShi % 24;
  487. fen = fen % 60;
  488. if (tian > 0)
  489. {
  490. return $"{tian}天{xiaoShi}小時";
  491. // return string.Format(LanguageManager.Instance.Text(818), tian, xiaoShi);
  492. }
  493. else
  494. {
  495. if (xiaoShi <= 0 && fen <= 59)
  496. {
  497. return $"{fen}分{miao}秒";
  498. // return string.Format(LanguageManager.Instance.Text(819), fen, miao);
  499. }
  500. else
  501. {
  502. return $"{xiaoShi}小時{fen}分";
  503. // return string.Format(LanguageManager.Instance.Text(820), xiaoShi, fen);
  504. }
  505. }
  506. }
  507. }