diff --git a/_server/MotaActionParser.js b/_server/MotaActionParser.js index 7f642a9f..b9ec1c6f 100644 --- a/_server/MotaActionParser.js +++ b/_server/MotaActionParser.js @@ -322,7 +322,7 @@ ActionParser.prototype.parseAction = function() { data.time, data.lineHeight||1.4, data.async||false, this.EvalString_Multi(data.text), this.next]); break; case "comment": // 注释 - this.next = MotaActionBlocks['comment_s'].xmlText([this.EvalString_Multi(data.text),this.next],null,data.text); + this.next = MotaActionBlocks['comment_s'].xmlText([this.EvalString_Multi(data.text),this.next]); break; case "setText": // 设置剧情文本的属性 data.title=this.Colour(data.title); diff --git a/_server/editor_file.js b/_server/editor_file.js index 14cee7db..519e1a2e 100644 --- a/_server/editor_file.js +++ b/_server/editor_file.js @@ -219,7 +219,15 @@ editor_file = function (editor, callback) { color: currData.color, weather: currData.weather, }:{}); - + // 继承配置表格新增的基本楼层属性 + if (saveStatus) { + for (var x in currData) { + if (editor.currentFloorData[x] == null && (typeof currData[x] == 'number' || typeof currData[x] == 'string')) { + editor.currentFloorData[x] = currData[x]; + } + } + } + Object.keys(editor.currentFloorData).forEach(function (t) { if (editor.currentFloorData[t] == null) delete editor.currentFloorData[t];