|
|
@@ -2,7 +2,7 @@ const path = require('path'); const fs = require('fs');
|
|
|
module.exports = function AutoPOT(mod) {
|
|
|
const cmd = mod.command || mod.require.command;
|
|
|
let config = getConfig(), hpPot = getHP(), mpPot = getMP();
|
|
|
- let gPot = null,isReady = false, isSlaying = false, isZergling = false, nowHP = 0, nowMP = 0;
|
|
|
+ let gPot = null, isReady = false, isSlaying = false, isZergling = false, nowHP = 0, nowMP = 0;
|
|
|
mod.game.initialize(['me', 'contract']);
|
|
|
|
|
|
cmd.add(['autopot', 'pot'], (arg1, arg2) => {
|
|
|
@@ -96,6 +96,10 @@ module.exports = function AutoPOT(mod) {
|
|
|
if (mod.game.me.is(e.target) && e.id === 401730)
|
|
|
setTimeout(() => {isZergling = false;}, 3000);
|
|
|
});
|
|
|
+
|
|
|
+ function msg(msg) {
|
|
|
+ cmd.message(msg);
|
|
|
+ }
|
|
|
|
|
|
function useItem(itemId) {
|
|
|
mod.send('C_USE_ITEM', 3, {
|
|
|
@@ -161,7 +165,5 @@ module.exports = function AutoPOT(mod) {
|
|
|
return s2a;
|
|
|
}
|
|
|
|
|
|
- function msg(msg) {cmd.message(msg);}
|
|
|
-
|
|
|
function jsonSave(name,data) {fs.writeFile(path.join(__dirname, name), JSON.stringify(data, null, 4), err => {});}
|
|
|
}
|