Skip to content

Commit

Permalink
- centerLocationId
Browse files Browse the repository at this point in the history
- update import path
- Add Core Lib to /utils
  • Loading branch information
Bind committed Dec 31, 2020
1 parent 8cd3ad5 commit edfc901
Show file tree
Hide file tree
Showing 2 changed files with 1,117 additions and 6 deletions.
9 changes: 3 additions & 6 deletions content/productivity/repeat-attack/plugin.js
@@ -1,5 +1,5 @@
let { Manager } = await import(
"https://practical-snyder-a3b69f.netlify.app/core.js?#v1"
const { default: Manager } = await import(
"https://plugins.zkga.me/utils/RepeatAttackCore.js"
);

const { html, render, useState, useLayoutEffect } = await import(
Expand All @@ -25,10 +25,7 @@ let ActionEntry = {
};

function centerPlanet(id) {
let planet = df.getPlanetWithId(id);
if (planet) {
ui.centerPlanet(planet);
}
ui.centerLocationId(planet);
}

function Attack({ action }) {
Expand Down

0 comments on commit edfc901

Please sign in to comment.