diff --git a/project/floors/zhenhong.js b/project/floors/zhenhong.js index f1b52a1..3334ada 100644 --- a/project/floors/zhenhong.js +++ b/project/floors/zhenhong.js @@ -786,7 +786,7 @@ main.floors.zhenhong= }, { "type": "function", - "function": "function(){\ncore.plugin.donghua3()\n}" + "function": "function(){\ncore.plugin.donghua5()\n}" }, { "type": "moveHero", diff --git a/project/functions.js b/project/functions.js index 650a9fc..ca03741 100644 --- a/project/functions.js +++ b/project/functions.js @@ -1153,6 +1153,7 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = if (core.inArray(type, 'poison') && !core.hasFlag("poison")) { // 获得毒效果 core.setFlag('poison', true); + core.plugin.donghua3(); } if (core.inArray(type, 'weak') && !core.hasFlag('weak')) { // 获得衰效果 diff --git a/project/plugins.js b/project/plugins.js index 2986045..6a9c652 100644 --- a/project/plugins.js +++ b/project/plugins.js @@ -2308,8 +2308,8 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } else core.stopAnimate(core.getFlag("linshi2", 0), false); } this.donghua3 = function () { - if (core.getFlag("bofang", 0) == 1) { - core.setFlag("linshi3", core.drawHeroAnimate("lansebaofa", + if (core.getFlag("poison")) { + core.setFlag("linshi3", core.drawHeroAnimate("dufa", function () { core.plugin.donghua3(); })); @@ -2960,7 +2960,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = "怪物手册和显伤": function () { // 在此增加新插件 ////// 获得所有特殊属性的名称 ///// - enemys.prototype.getSpecialText = function (enemy) { + core.enemys.getSpecialText = function (enemy) { if (typeof enemy == 'string') enemy = core.material.enemys[enemy]; if (!enemy) return []; var special = enemy.special; @@ -2980,7 +2980,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = } ////// 获得所有特殊属性的颜色 ////// - enemys.prototype.getSpecialColor = function (enemy) { + core.enemys.getSpecialColor = function (enemy) { if (typeof enemy == 'string') enemy = core.material.enemys[enemy]; if (!enemy) return []; var special = enemy.special; @@ -2999,7 +2999,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = return colors; } - ui.prototype._drawBook_drawDamage = function (index, enemy, offset, position) { + core.ui._drawBook_drawDamage = function (index, enemy, offset, position) { core.setTextAlign('ui', 'center'); var damage = enemy.damage, color = '#FFFF00'; @@ -3008,7 +3008,7 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = color = '#FF2222'; } else { if (damage >= core.status.hero.hp) color = '#FF2222'; - else if (damage >= core.status.hero.hp * 2 / 3) color = '#FF9933'; + else if (damage >= core.status.hero.hp * 1 / 3) color = '#FF9933'; else if (damage <= 0) color = '#11FF11'; damage = core.formatBigNumber(damage); if (core.enemys.hasSpecial(enemy, 19)) damage += "+"; @@ -3018,54 +3018,5 @@ var plugins_bb40132b_638b_4a9f_b028_d3fe47acc8d1 = if (enemy.notBomb) damage += "[b]"; core.fillText('ui', damage, offset, position, color, this._buildFont(13, true)); } - - - - - - }, - "楼传界面": function () { - // 在此增加新插件 - ////// 绘制楼层传送器 ////// - ui.prototype.drawFly = function (page) { - core.status.event.data = page; - var floorId = core.floorIds[page]; - var title = core.status.maps[floorId].title; - core.clearMap('ui'); - core.setAlpha('ui', 0.85); - core.fillRect('ui', 0, 0, core._PX_, core._PY_, '#000000'); - core.setAlpha('ui', 1); - core.setTextAlign('ui', 'center'); - core.fillText('ui', '楼层跳跃', core._PX_ / 2, 48, '#FFFFFF', this._buildFont(28, true)); - core.fillText('ui', '返回游戏', core._PX_ / 2, core._PY_ - 13, null, this._buildFont(15, true)) - core.setTextAlign('ui', 'right'); - core.fillText('ui', '浏览地图时也', core._PX_ - 10, core._PY_ - 23, '#aaaaaa', this._buildFont(10, false)); - core.fillText('ui', '可楼层跳跃!', core._PX_ - 10, core._PY_ - 11, null, this._buildFont(10, false)); - core.setTextAlign('ui', 'center'); - - var middle = core._PY_ / 2 + 39; - - // 换行 - var lines = core.splitLines('ui', title, 120, this._buildFont(16, true)); - var start_y = middle - (lines.length - 1) * 11; - for (var i in lines) { - core.fillText('ui', lines[i], core._PX_ - 60, start_y, '#FFFFFF'); - start_y += 22; - } - if (core.actions._getNextFlyFloor(1) != page) { - core.fillText('ui', '▲', core._PX_ - 60, middle - 64, null, this._buildFont(17, false)); - core.fillText('ui', '▲', core._PX_ - 60, middle - 96); - core.fillText('ui', '▲', core._PX_ - 60, middle - 96 - 7); - } - if (core.actions._getNextFlyFloor(-1) != page) { - core.fillText('ui', '▼', core._PX_ - 60, middle + 64, null, this._buildFont(17, false)); - core.fillText('ui', '▼', core._PX_ - 60, middle + 96); - core.fillText('ui', '▼', core._PX_ - 60, middle + 96 + 7); - } - var size = 0.75; - core.strokeRect('ui', 16, 64, size * core._PX_, size * core._PY_, '#FFFFFF', 2); - core.drawThumbnail(floorId, null, { ctx: 'ui', x: 16, y: 64, size: size, damage: true, all: true }); - } -} } \ No newline at end of file