| | |
| | | {
|
| | | colorType = RichTextMgr.Inst.presentRichText.colorType == RichText.ColorType.Dark ? 0 : 1;
|
| | | }
|
| | |
|
| | | var reikiRootModel = ModelCenter.Instance.GetModel<ReikiRootModel>();
|
| | | var point = reikiRootModel.GetReikiRootTotalPoint();
|
| | | var targetValue = int.Parse(dic["myreikiroot"]);
|
| | | if (point < targetValue)
|
| | |
|
| | | var satisfy = false;
|
| | | var targetValue = 0;
|
| | | var point = 0;
|
| | | var property = 0;
|
| | |
|
| | | if (int.TryParse(dic["myreikiroot"], out targetValue))
|
| | | {
|
| | | point = reikiRootModel.GetReikiRootTotalPoint();
|
| | | satisfy = point >= targetValue;
|
| | | }
|
| | | else
|
| | | {
|
| | | var jsonArray = LitJson.JsonMapper.ToObject<int[][]>(dic["myreikiroot"]);
|
| | | var job = PlayerDatas.Instance.baseData.Job;
|
| | | for (int i = 0; i < jsonArray.Length; i++)
|
| | | {
|
| | | if (i == job - 1)
|
| | | {
|
| | | property = jsonArray[i][0];
|
| | | point = reikiRootModel.GetReikiRootPoint(jsonArray[i][0]);
|
| | | targetValue = jsonArray[i][1];
|
| | | satisfy = point >= targetValue;
|
| | | break;
|
| | | }
|
| | | }
|
| | | }
|
| | |
|
| | | if (!satisfy)
|
| | | {
|
| | | var label = dic.ContainsKey("replacelabel1") ? dic["replacelabel1"] : string.Empty;
|
| | | if (property != 0)
|
| | | {
|
| | | var propertyConfig = PlayerPropertyConfig.Get(property);
|
| | | label = StringUtility.Contact(propertyConfig.Name, ":");
|
| | | }
|
| | | return UIHelper.AppendColor(TextColType.Red, StringUtility.Contact(label, point, "/", targetValue), colorType == 1);
|
| | | }
|
| | | else
|