From a9f44ac88775b8d2dde65b608f478fc6da8a3c37 Mon Sep 17 00:00:00 2001
From: client_Wu Xijin <364452445@qq.com>
Date: 星期一, 24 六月 2019 14:12:23 +0800
Subject: [PATCH] Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
---
System/Message/RichNormalEvent.cs | 13 +++++++++++++
1 files changed, 13 insertions(+), 0 deletions(-)
diff --git a/System/Message/RichNormalEvent.cs b/System/Message/RichNormalEvent.cs
index d17595f..00931fd 100644
--- a/System/Message/RichNormalEvent.cs
+++ b/System/Message/RichNormalEvent.cs
@@ -22,6 +22,7 @@
RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.MyFightPoint, this);
RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.MyReikiRoot, this);
RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.MyDefense, this);
+ RichTextMgr.Inst.RegisterEvent(RichTextEventEnum.JobLabel, this);
}
public override bool Execute(RichTextEventEnum type, RichTextMgr.HrefInfo href)
@@ -308,6 +309,18 @@
return label;
}
}
+ case RichTextEventEnum.JobLabel:
+ {
+ var json = dic["joblabel"];
+ var labelArray = LitJson.JsonMapper.ToObject<string[]>(json);
+ var job = PlayerDatas.Instance.baseData.Job;
+ var index = job - 1;
+ if (labelArray != null && index < labelArray.Length)
+ {
+ return labelArray[index];
+ }
+ }
+ break;
}
return string.Empty;
}
--
Gitblit v1.8.0