From d9c906ecb96b063f3192b9e568accff8db60c913 Mon Sep 17 00:00:00 2001 From: ckcz123 Date: Wed, 27 May 2020 21:58:23 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=94=AF=E6=8F=B4=E6=80=AA?= =?UTF-8?q?=E5=8A=A0=E7=82=B9=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- project/functions.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/project/functions.js b/project/functions.js index f86b83fa..a8a41924 100644 --- a/project/functions.js +++ b/project/functions.js @@ -357,7 +357,9 @@ var functions_d6ad677b_427a_4623_b50f_a445a3b0ef8a = } // 如果有加点 - var point = core.material.enemys[enemyId].point; + var point = guards.reduce(function (curr, g) { + return curr + core.material.enemys[g[2]].point; + }, enemy.point) || 0; if (core.flags.enableAddPoint && point > 0) { core.push(todo, [{ "type": "insert", "name": "加点事件", "args": [point] }]); }