add description to enemy
This commit is contained in:
parent
704d75271e
commit
197ec05a54
@ -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": {
|
||||
|
||||
@ -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];
|
||||
|
||||
Loading…
Reference in New Issue
Block a user