Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/productivity/custom-distribute-silver/index.md
Original file line number Diff line number Diff line change
@@ -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
---
3 changes: 1 addition & 2 deletions content/productivity/custom-distribute-silver/plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand All @@ -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";
Expand Down
Binary file modified content/productivity/custom-distribute-silver/screenshot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.