Skip to content

Commit

Permalink
updated pesttp
Browse files Browse the repository at this point in the history
  • Loading branch information
zhenga8533 committed Jan 1, 2024
1 parent 7f47964 commit 8ba713b
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 4 deletions.
2 changes: 1 addition & 1 deletion changelog.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[
"- Added ignorelist (renamed blacklist)",
"- Added spamlist",
"- Added pest warp",
"- Added pest warp (`/pesttp`)",
"- TODO: Added /va nw",
"- Changed blacklist to auto kick",
"- Changed warplist to dianalist",
Expand Down
1 change: 1 addition & 0 deletions docs/commands.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ subtitle: List of every non-gui related commands.
- `/va attribute`: Various calculations that deal with attribute values.
- `/va calc`: Various calculations that deal with general economical values.
- **Misc**
- `/pestwarp`: Warps to plot with most pests.
- `/va be`: Displays bestiary stats and closest milestones.
- `/va splits`: Prints out Kuudra splits' stats.
- `/sk`: Opens the SkyCrypt profile of inputted user.
Expand Down
9 changes: 8 additions & 1 deletion features/farming/PestTracking.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { AQUA, BOLD, DARK_GRAY, DARK_GREEN, GOLD, GRAY, GREEN, RED, RESET, YELLOW } from "../../utils/constants";
import { AQUA, BOLD, DARK_GRAY, DARK_GREEN, GOLD, GRAY, GREEN, LOGO, RED, RESET, YELLOW } from "../../utils/constants";
import { getSlotCoords, getTime } from "../../utils/functions";
import { Overlay } from "../../utils/overlay";
import settings from "../../utils/settings";
Expand Down Expand Up @@ -148,10 +148,17 @@ registerWhen(register("guiClosed", () => {
* Pest warp command
*/
register("command", () => {
if (hive.length === 0) {
ChatLib.chat(`${LOGO + RED}No infested plots found...\n${DARK_GRAY}If there are pests, please open plots menu to track!`);
return;
}

// Warp to plot with most pests
const plot = hive[0];
delete swarm[plot];

ChatLib.command(`plottp ${plot}`);
setHive();
}).setName("pesttp");


Expand Down
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ function getHelp() {
ChatLib.chat(`${AQUA + BOLD}Lists: ${WHITE}/va ${GRAY}<${WHITE}cd, wl, bl, el, vl, dl, sl, il${GRAY}>`);
ChatLib.chat(`${AQUA + BOLD}Economy: ${WHITE}/va ${GRAY}<${WHITE}calc, attribute${GRAY}>`);
ChatLib.chat(`${AQUA + BOLD}Misc: ${WHITE}/va ${GRAY}<${WHITE}splits, be${GRAY}>`);
ChatLib.chat(`${AQUA + BOLD}Etc: ${WHITE}/sk\n`);
ChatLib.chat(`${AQUA + BOLD}Etc: ${WHITE}/<sk, pesttp>\n`);

// Feature Commands
ChatLib.chat(`${DARK_AQUA + BOLD}GENERAL FEATURES:${RESET}`);
Expand Down
2 changes: 1 addition & 1 deletion utils/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,7 @@ Reset binds with ${AQUA}/resetBinds${GRAY}, save binds with ${AQUA}/saveBinds [k
// --- Server ---
@SliderProperty({
name: "Fairy Soul Waypoints",
description: `${DARK_RED}NEW! ${GRAY}Set distance at which Fairy Soul waypoints will render or as 0 to turn ${RED}OFF${GRAY}.`,
description: `Set distance at which Fairy Soul waypoints will render or as 0 to turn ${RED}OFF${GRAY}.`,
category: "General",
subcategory: "Server",
min: 0,
Expand Down

0 comments on commit 8ba713b

Please sign in to comment.