-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
18 changed files
with
209 additions
and
85 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
--- | ||
layout: post | ||
title: v2.9.9 ` | ||
gh-repo: zhenga8533/VolcAddons | ||
gh-badge: [star, fork, follow] | ||
tags: [release] | ||
comments: true | ||
author: Volcaronitee | ||
--- | ||
|
||
## [Changelog](https://github.com/zhenga8533/VolcAddons/releases/tag/v2.9.9) (download by clicking [here](https://github.com/zhenga8533/VolcAddons/releases/download/v2.9.9/VolcAddons.zip)) | ||
|
||
{: .box-note} | ||
#### New Features | ||
- Added global toggle | ||
- Added socket toggle | ||
- Added additional mining event checks | ||
- Added `/va [npc, zone]` scraped info | ||
- Added `/va preview` | ||
- Added more container value calcs | ||
- Auction | ||
- Bazaar | ||
- Composter | ||
- Added dungeon chest profit | ||
- Added max supercraft | ||
|
||
{: .box-warning} | ||
#### Changes/Fixes | ||
- Changed rabbit highlight to be selectable | ||
- Changed chocolate factory to support 2.0 | ||
- Changed storage preview to be hoverable | ||
- Changed chest tracker to hide opened | ||
- Fixed socket reconnections | ||
- Fixed enchanted book calc | ||
- Fixed lore rendering | ||
- Fixed lore 'ed' spam | ||
- Fixed egg reset | ||
|
||
{: .box-error} | ||
#### Deprecated | ||
- Removed image viewer | ||
= Removed Gyrokinetic features | ||
- Removed Jacob highlight | ||
- Removed Primal Fear highlight | ||
- Removed Vanquisher sounds | ||
- Removed Imepl enlarger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import Settings from "../../utils/Settings"; | ||
import { GOLD, YELLOW } from "../../utils/Constants"; | ||
import { registerWhen } from "../../utils/RegisterTils"; | ||
import { commafy, unformatNumber } from "../../utils/functions/format"; | ||
|
||
|
||
let craftable = 0; | ||
|
||
const tooltip = register("preItemRender", (_, __, slot) => { | ||
const button = Player.getContainer().getItems()[slot.getSlotIndex()]; | ||
if (!button.getName().startsWith("§aSupercraft")) return; | ||
|
||
// Put the max craftable amount into lore | ||
const lore = button.getLore().join('\n').split('\n').slice(1); | ||
const i = lore.findIndex((line, index) => | ||
line.startsWith("§5§o§7§aCrafting") && !lore[index + 1]?.startsWith(`§5§o${GOLD} Max Craftable:`)); | ||
if (i === -1) return; | ||
|
||
lore.splice(i + 1, 0, `${GOLD}Max Craftable: ${YELLOW + commafy(craftable)}`); | ||
button.setLore(lore); | ||
}).unregister(); | ||
|
||
const close = register("guiClosed", () => { | ||
tooltip.unregister(); | ||
close.unregister(); | ||
}).unregister(); | ||
|
||
registerWhen(register("guiOpened", () => { | ||
Client.scheduleTask(3, () => { | ||
// Check if the container is a supercrafting table | ||
const container = Player.getContainer(); | ||
const button = container.getStackInSlot(32); | ||
const name = button?.getName(); | ||
if (!name.startsWith("§aSupercraft")) return; | ||
|
||
// Get the max craft amount | ||
maxCraft = Infinity; | ||
button.getLore().forEach(line => { | ||
if (!line.startsWith("§5§o §a✔") && !line.startsWith("§5§o §c✖")) return; | ||
|
||
const ratio = line.split(' ')[2].removeFormatting().split('/'); | ||
const current = unformatNumber(ratio[0]); | ||
const required = unformatNumber(ratio[1]); | ||
|
||
maxCraft = Math.min(maxCraft, Math.floor(current / required)); | ||
}); | ||
if (maxCraft === Infinity) maxCraft = 0; | ||
|
||
// Get empty inventory slots to find the max craftable amount | ||
const crafting = name === "§aSupercraft" ? container.getStackInSlot(25).getStackSize() : | ||
unformatNumber(name.split(' ')[1].removeFormatting().replace(/[x(]/g, '')); | ||
const freeSpace = 64 * Player.getInventory().getItems().reduce((acc, item) => acc + (item === null), 0); | ||
craftable = Math.min(maxCraft * crafting, freeSpace); | ||
|
||
// Set registers | ||
tooltip.register(); | ||
close.register(); | ||
}); | ||
}), () => Settings.maxSupercraft); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.