From 7d5a07683a1a30f2ae3a28b95573791c30276b4d Mon Sep 17 00:00:00 2001 From: Nic0Nic0Nii Date: Fri, 20 Aug 2021 05:57:37 +0000 Subject: [PATCH] Increment/decrement limits on skills. --- src/TestPanel.js | 21 ++++++++++++--------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/src/TestPanel.js b/src/TestPanel.js index 85e48a0..c31e49e 100644 --- a/src/TestPanel.js +++ b/src/TestPanel.js @@ -184,26 +184,29 @@ function SkillBox(p) { { var temp=[...p.points] var tempData=[...p.skillPointData] - temp[p.page-1]-=1 while (tempData[p.page-1].length + if (tempData[p.page-1][p.boxId]>0) { + temp[p.page-1]-=1 + tempData[p.page-1][p.boxId]-=1 + p.setPoints(temp) + p.setSkillPointData(tempData) + }}}/> { var temp=[...p.points] var tempData=[...p.skillPointData] - temp[p.page-1]+=1 while (tempData[p.page-1].length + if (tempData[p.page-1][p.boxId] } function SkillTreeBoxes(p) {