From 338e1931bc88d2b20b36ae2f9ea7f7631847aa3f Mon Sep 17 00:00:00 2001 From: hppeng Date: Sun, 17 Jul 2022 23:00:27 -0500 Subject: [PATCH] -sp case --- js/skillpoints.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/skillpoints.js b/js/skillpoints.js index caca6a6..24f8b3a 100644 --- a/js/skillpoints.js +++ b/js/skillpoints.js @@ -247,7 +247,7 @@ function construct_scc_graph(items_to_consider) { for (const node_b of nodes) { const {item: b, parents: b_parents} = node_b; for (let i = 0; i < 5; ++i) { - if (a.reqs[i] < b.reqs[i] && a.skillpoints[i]) { + if (a.skillpoints[i] > 0 && (a.reqs[i] < b.reqs[i] || b.skillpoints[i] < 0)) { a_children.push(node_b); b_parents.push(node_a); break;