| | |
| | | colorType = RichTextMgr.Inst.presentRichText.colorType == RichText.ColorType.Dark ? 0 : 1;
|
| | | }
|
| | | var fightPoint = PlayerDatas.Instance.baseData.FightPoint;
|
| | | var targetValue = int.Parse(dic["myfightpoint"]);
|
| | | var targetValue = 0;
|
| | | var infoArray = dic["myfightpoint"].Split('_');
|
| | | if (infoArray.Length > 1)
|
| | | {
|
| | | switch (infoArray[0])
|
| | | {
|
| | | case "skytower":
|
| | | var config = SkyTowerConfig.Get(infoArray[1]);
|
| | | if (config != null)
|
| | | {
|
| | | targetValue = config.fightPower;
|
| | | }
|
| | | break;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | int.TryParse(dic["myfightpoint"], out targetValue);
|
| | | }
|
| | |
|
| | | if (fightPoint < targetValue)
|
| | | {
|
| | | var label = dic.ContainsKey("replacelabel1") ? dic["replacelabel1"] : string.Empty;
|