From 7fc896ec0f40bc158b0b9b00b1bf35f3782d3ef7 Mon Sep 17 00:00:00 2001 From: Empress Sela <empresssela@cock.li> Date: Fri, 17 Jul 2020 22:03:13 -0400 Subject: [PATCH] Remove reference to showMissingSlaves in NGP --- src/data/newGamePlus.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/data/newGamePlus.js b/src/data/newGamePlus.js index be9f97a606d..bc771401033 100644 --- a/src/data/newGamePlus.js +++ b/src/data/newGamePlus.js @@ -106,7 +106,7 @@ App.Data.NewGamePlus = (function() { return newTable; }; - if (typeof V.missingTable !== undefined && V.showMissingSlaves === true) { + if (typeof V.missingTable !== undefined) { let oldMissingParentID = Math.min(-10000, ...Object.keys(V.missingTable)) - 1; V.slaves.filter(s => (s.assignment !== Job.IMPORTED)).forEach(s => { V.missingTable[oldMissingParentID] = { @@ -176,11 +176,7 @@ App.Data.NewGamePlus = (function() { slave.relationshipTarget = slaveOrZero(slave.relationshipTarget); } V.genePool = ngUpdateGenePool(V.genePool); - if (typeof V.missingTable === undefined || V.showMissingSlaves === false) { - V.missingTable = {}; - } else { - V.missingTable = ngUpdateMissingTable(V.missingTable); - } + V.missingTable = ngUpdateMissingTable(V.missingTable); let validRelationship = (s) => (s.relationshipTarget !== 0 && getSlave(s.relationshipTarget).relationshipTarget === s.ID); for (let slave of V.slaves) { if ((slave.relationship < 0 && V.freshPC === 1) || (slave.relationship > 0 && !validRelationship(slave))) { -- GitLab