From f8dd9159feab8284fdc50e4967d0b4924bb2d78d Mon Sep 17 00:00:00 2001 From: YouWei Zhao Date: Wed, 3 Jun 2020 15:58:24 +0800 Subject: [PATCH] change fixed list to EnemyId_List --- _server/editor_blockly.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_server/editor_blockly.js b/_server/editor_blockly.js index 845318e0..1de9ddf7 100644 --- a/_server/editor_blockly.js +++ b/_server/editor_blockly.js @@ -538,7 +538,7 @@ editor_blockly = function () { if (index2 >= 0) { before = content.substring(0, index2); if (before.endsWith("怪物") || (ch == ':' && ch2 == ':' && before.endsWith("enemy"))) { - var list = ["name", "hp", "atk", "def", "money", "exp", "point", "special"]; + var list = MotaActionBlocks['EnemyId_List'].options.map(function(v){return v[1]}); if (before.endsWith("怪物") && MotaActionFunctions) { list = MotaActionFunctions.pattern.replaceEnemyValueList.map(function (v) { return v[1];