add description to enemy

This commit is contained in:
ckcz123 2021-01-14 17:39:10 +08:00
parent 704d75271e
commit 197ec05a54
2 changed files with 9 additions and 1 deletions

View File

@ -121,11 +121,18 @@ var comment_c456ea59_6018_45ef_8bcc_211a24c627dc = {
"_string": true,
"_data": "名称"
},
"description": {
"_leaf": true,
"_type": "textarea",
"_string": true,
"_docs": "怪物描述",
"_data": "可在怪物详细信息页面写的怪物描述,支持颜色、字体大小和样式、粗体斜体等转义方式。"
},
"displayIdInBook": {
"_leaf": true,
"_type": "textarea",
"_string": true,
"_docs": "手册映射ID",
"_docs": "手册ID",
"_data": "在怪物手册中映射到的怪物ID。如果此项不为null则在怪物手册中将用目标ID来替换该怪物原本的ID。常被运用在同一个怪物的多朝向上。"
},
"hp": {

View File

@ -2205,6 +2205,7 @@ ui.prototype._drawBookDetail_getInfo = function (index) {
var enemy = enemys[index], enemyId = enemy.id;
var texts=core.enemys.getSpecialHint(enemyId);
if (texts.length == 0) texts.push("该怪物无特殊属性。");
if (enemy.description) texts.push(enemy.description + "\r");
texts.push("");
this._drawBookDetail_getTexts(enemy, floorId, texts);
return [enemy, texts];