diff --git a/doc/index.html b/doc/index.html index df1f232f..ad571b23 100644 --- a/doc/index.html +++ b/doc/index.html @@ -150,7 +150,9 @@
%{m怪物ID}可以显示怪物头像。%{m[Monster ID]} can display the monster avatar.
+ 
%{a觉醒ID}可以显示觉醒图标。%{m[Awoken ID]} can display the Awoken Icon.^16进制颜色代码^内容^p来改变内容颜色;^[Hex Color Code]^Content^p to change the color of the
diff --git a/script-universal_function.js b/script-universal_function.js
index f1e9c544..11fbf16d 100644
--- a/script-universal_function.js
+++ b/script-universal_function.js
@@ -825,12 +825,17 @@ function descriptionToHTML(str)
sp.textContent = content;
return sp;
});
- nodeArr = formatParse(nodeArr, /\%\{m([0-9]{1,4})\}/g, 1,
+ nodeArr = formatParse(nodeArr, /\%\{m([0-9]{1,5})\}/g, 1,
(id)=>{
const avatar = cardN(parseInt(id,10));
avatar.monDom.onclick = cardNClick;
return avatar;
});
+ nodeArr = formatParse(nodeArr, /\%\{a([0-9]{1,3})\}/g, 1,
+ (id)=>{
+ const awokenList = renderAwakenings(parseInt(id,10));
+ return awokenList;
+ });
/* arr = arr.flatMap(item=>{
if (typeof item == "string") {