Skip to content

Instantly share code, notes, and snippets.

View gist:a39995a3df917cbc79b6b8dd81bbf6c9
class Plugin {
clock;
constructor() {
let clock = setInterval(() => {
const planets = df.getMyPlanets();
View gist:bb3dc76ef4fe58060c1df1fb5aad39b7
class Plugin {
/**
* A constructor can be used to keep track of information.
*/
constructor() {
const planets = df.getMyPlanets();
for (const planet of planets) {
captureArtifacts(planet.locationId, 80);
}
View gist:7c694da79df6c257e4b6b1671c0e9e29
class Plugin {
/**
* A constructor can be used to keep track of information.
*/
constructor() {
const planets = df.getMyPlanets();
for (const planet of planets) {
captureArtifacts(planet.locationId, 80);
}
View global artifact crawl
class Plugin {
/**
* A constructor can be used to keep track of information.
*/
constructor() {
const planets = df.getMyPlanets();
for (const planet of planets) {
captureArtifacts(planet.locationId, 80);
}
View Artifact Taker
class Plugin {
/**
* A constructor can be used to keep track of information.
*/
constructor() {
captureArtifacts(ui.getSelectedPlanet().locationId, 80);
}
}
View gist:c8145648c98d4d14ccdc9928a61666ea
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin, plus other helpful things.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
class Plugin {
View artifact crawl
class Plugin {
/**
* A constructor can be used to keep track of information.
*/
constructor() {
captureArtifacts(ui.getSelectedPlanet().locationId, 80);
}
}
View auto withdraw
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin, plus other helpful things.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
class Plugin {
View gist:05c237c5a3613bb902f09fb88508ffdc
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin, plus other helpful things.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
class ArtifactsFinder {
View gist:59597417430680dffa456ce3449346f2
/**
* Remember, you have access these globals:
* 1. df - Just like the df object in your console.
* 2. ui - For interacting with the game's user interface.
* 3. plugin - To register the plugin, plus other helpful things.
*
* Let's log these to the console when you run your plugin!
*/
console.log(df, ui, plugin);
class ArtifactsFinder {