diff --git a/content/productivity/custom-distribute-silver/index.md b/content/productivity/custom-distribute-silver/index.md index 93300911..0d86a2c3 100644 --- a/content/productivity/custom-distribute-silver/index.md +++ b/content/productivity/custom-distribute-silver/index.md @@ -1,6 +1,6 @@ --- title: Custom Distribute Silver -date: 2021-10-03T21:03:00 +date: 2022-02-02T21:03:00 subtitle: Custom distribute your silver! -version: 0.6.4 +version: 0.6.5 --- diff --git a/content/productivity/custom-distribute-silver/plugin.js b/content/productivity/custom-distribute-silver/plugin.js index 9ad46a52..9f21752a 100644 --- a/content/productivity/custom-distribute-silver/plugin.js +++ b/content/productivity/custom-distribute-silver/plugin.js @@ -32,7 +32,6 @@ const MIN_DISTRIBUTE_PERCENT = 90; // Trigger auto silver move and withdraw every 30 seconds const AUTO_SECONDS = 30; -var pg = df.getProcgenUtils(); // removes all the child nodes of an element var removeAllChildNodes = (parent) => { @@ -45,7 +44,7 @@ var removeAllChildNodes = (parent) => { var planetLink = (locationId, clickable = true) => { const planet = df.getPlanetWithId(locationId); const planetElement = document.createElement(clickable ? "button" : "span"); - planetElement.innerText = `L${planet.planetLevel}R${planet.upgradeState.reduce((a, b) => a + b, 0)} ${pg.getPlanetName(planet)}`; + planetElement.innerText = locationId.substring(4, 9); planetElement.title = locationId; planetElement.style.textDecoration = "underline"; planetElement.style.background = "none"; diff --git a/content/productivity/custom-distribute-silver/screenshot.png b/content/productivity/custom-distribute-silver/screenshot.png index ac97c357..1daadb52 100644 Binary files a/content/productivity/custom-distribute-silver/screenshot.png and b/content/productivity/custom-distribute-silver/screenshot.png differ