From f95b316ff55e443586afc5fb6c2710e42651a2bc Mon Sep 17 00:00:00 2001 From: oc Date: Sun, 16 Sep 2018 16:23:27 +0800 Subject: [PATCH] V2.4.1 --- _server/comment.js | 10 +-- _server/functions.comment.js | 24 ++++-- libs/control.js | 51 +------------ libs/enemys.js | 5 -- project/data.js | 2 +- project/floors/sample0.js | 6 ++ project/functions.js | 143 ++++++++++++++++++++++------------- 7 files changed, 123 insertions(+), 118 deletions(-) diff --git a/_server/comment.js b/_server/comment.js index f2aeffdd..9f7bb124 100644 --- a/_server/comment.js +++ b/_server/comment.js @@ -44,28 +44,28 @@ comment_c456ea59_6018_45ef_8bcc_211a24c627dc = "type": { "_leaf": true, "_type": "textarea", - "_data": "装备的类别,与equipName按顺序对应" + "_data": "如果是装备,其类别,与equipName按顺序对应(从0开始)" }, "atk": { "_leaf": true, "_type": "textarea", - "_data": "装备增加的攻击数值" + "_data": "如果是装备,其增加的攻击数值" }, "def": { "_leaf": true, "_type": "textarea", - "_data": "装备增加的防御数值" + "_data": "如果是装备,其增加的防御数值" }, "mdef": { "_leaf": true, "_type": "textarea", - "_data": "装备增加的魔防数值" + "_data": "如果是装备,其增加的魔防数值" }, "animate": { "_leaf": true, "_type": "textarea", "_string": true, - "_data": "装备的攻击动画,仅对type为0的装备有效" + "_data": "如果是装备,其攻击动画,仅对type为0的装备有效" } } }, diff --git a/_server/functions.comment.js b/_server/functions.comment.js index 23e99f25..ecc6ac0f 100644 --- a/_server/functions.comment.js +++ b/_server/functions.comment.js @@ -109,12 +109,6 @@ functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = "_lint": true, "_data": "获得战斗伤害信息(实际伤害计算函数)" }, - "updateCheckBlock": { - "_leaf": true, - "_type": "textarea", - "_lint": true, - "_data": "领域、阻击、夹击的伤害计算函数" - }, "updateEnemys": { "_leaf": true, "_type": "textarea", @@ -123,6 +117,24 @@ functions_comment_c456ea59_6018_45ef_8bcc_211a24c627dc = } } }, + "control": { + "_leaf": false, + "_type": "object", + "_data": { + "updateStatusBar": { + "_leaf": true, + "_type": "textarea", + "_lint": true, + "_data": "更新状态栏" + }, + "updateCheckBlock": { + "_leaf": true, + "_type": "textarea", + "_lint": true, + "_data": "阻激夹域的伤害值计算" + }, + } + }, "ui": { "_leaf": false, "_type": "object", diff --git a/libs/control.js b/libs/control.js index 5181700e..8b9bc67b 100644 --- a/libs/control.js +++ b/libs/control.js @@ -9,7 +9,7 @@ function control() { } control.prototype.init = function () { - + this.controldata = functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a.control; } ////// 设置requestAnimationFrame ////// @@ -1183,7 +1183,7 @@ control.prototype.updateFollowers = function () { ////// 更新领域、夹击、阻击的伤害地图 ////// control.prototype.updateCheckBlock = function() { - return core.enemys.updateCheckBlock(); + return this.controldata.updateCheckBlock(); } ////// 检查并执行领域、夹击、阻击事件 ////// @@ -2594,52 +2594,7 @@ control.prototype.clearStatusBar = function() { ////// 更新状态栏 ////// control.prototype.updateStatusBar = function () { - // 检查等级 - core.events.checkLvUp(); - - // 检查HP上限 - if (core.flags.enableHPMax) { - core.setStatus('hp', Math.min(core.getStatus('hpmax'), core.getStatus('hp'))); - } - - // 更新领域、阻击、显伤 - core.updateCheckBlock(); - - var lvName = core.getLvName(); - core.statusBar.lv.innerHTML = lvName; - if (/^[+-]?\d+$/.test(lvName)) - core.statusBar.lv.style.fontStyle = 'italic'; - else core.statusBar.lv.style.fontStyle = 'normal'; - - var statusList = ['hpmax', 'hp', 'atk', 'def', 'mdef', 'money', 'experience']; - statusList.forEach(function (item) { - if (core.isset(core.status.hero[item])) - core.status.hero[item] = Math.floor(core.status.hero[item]); - core.statusBar[item].innerHTML = core.formatBigNumber(core.getStatus(item)); - }); - - // 进阶 - if (core.flags.enableLevelUp && core.status.hero.lv