Tired of clicking the screen just to grab the chests in Mr. Kopalnia? W tym przewodniku, we will be teaching you how to automate chest grabbing in Mr. Kopalnia.
Search for the File
Go to the installation folder of Mr. Mine on your PC. Domyślnie, it’s located in:
C:\Pliki programu (x86)\Steam\steamapps\common\MrMine\win-unpacked\resources\app\Shared\src\chest
Look for the javascript file called ChestService.js
Edit the File
Najpierw najważniejsze rzeczy. Make a backup copy of the file. Gdy już to zrobisz, open it using any text editor.
Scroll down to line 148, you should see the next lines:
rollForRandomChest(tenthOfDepth, source) { let validBlockDepths = this.getValidBlockDepths(tenthOfDepth); Jeśli(validBlockDepths.length && this.rollForBasicChest()) { this.spawnChest(tenthOfDepth, source, this.rollForGoldenChest(), validBlockDepths); } }
Add the next line after line 148:
this.presentChest(tenthOfDepth);
To powinno wyglądać tak:
rollForRandomChest(tenthOfDepth, source) { let validBlockDepths = this.getValidBlockDepths(tenthOfDepth); Jeśli(validBlockDepths.length && this.rollForBasicChest()) { this.spawnChest(tenthOfDepth, source, this.rollForGoldenChest(), validBlockDepths); this.presentChest(tenthOfDepth); } }
Now go to line 199 and find the next function:
presentChest(tenthOfDepth) { let chest = this.getChest(tenthOfDepth); Jeśli(!keysPressed["Zmiana"]) { openUi(ChestWindow, undefined, klatka piersiowa); } w przeciwnym razie { this.giveChestReward(chest.tenthOfDepth); newNews(_("You got {0} from a Chest!", chestService.getChestRewardText()), PRAWDA); } Jeśli(chest.isGolden) { trackEvent_FoundChest(1); } w przeciwnym razie { trackEvent_FoundChest(0); } }
Change the presentChest function to look like this:
presentChest(tenthOfDepth) { let chest = this.getChest(tenthOfDepth); this.giveChestReward(chest.tenthOfDepth); newNews(_("You got {0} from a Chest!", chestService.getChestRewardText()), PRAWDA); Jeśli(chest.isGolden) { trackEvent_FoundChest(1); } w przeciwnym razie { trackEvent_FoundChest(0); } }
Save and close the file and restart the game. Now you won’t see chest spawning, but you’ll get the rewards! You can check out the Event Log for proof.
To wszystko, co dzisiaj udostępniamy w tym celu Pan. Kopalnia przewodnik. Ten przewodnik został pierwotnie stworzony i napisany przez moNst_. Na wypadek, gdybyśmy nie zaktualizowali tego przewodnika, możesz znaleźć najnowszą aktualizację, postępując zgodnie z tym połączyć.