Tired of clicking the screen just to grab the chests in Mr. Le mien? Dans ce guide, we will be teaching you how to automate chest grabbing in Mr. Le mien.
Search for the File
Go to the installation folder of Mr. Mine on your PC. Par défaut, il’s located in:
C:\Fichiers programme (x86)\Steam\steamapps\common\MrMine\win-unpacked\resources\app\Shared\src\chest
Look for the javascript file called ChestService.js
Edit the File
Tout d'abord. Make a backup copy of the file. Une fois fait, 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); si(validBlockDepths.length && this.rollForBasicChest()) { this.spawnChest(tenthOfDepth, source, this.rollForGoldenChest(), validBlockDepths); } }
Add the next line after line 148:
this.presentChest(tenthOfDepth);
It should look like this:
rollForRandomChest(tenthOfDepth, source) { let validBlockDepths = this.getValidBlockDepths(tenthOfDepth); si(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); si(!keysPressed["Changement"]) { openUi(ChestWindow, indéfini, poitrine); } autre { this.giveChestReward(chest.tenthOfDepth); newNews(_("Tu as {0} from a Chest!", chestService.getChestRewardText()), vrai); } si(chest.isGolden) { trackEvent_FoundChest(1); } autre { trackEvent_FoundChest(0); } }
Change the presentChest function to look like this:
presentChest(tenthOfDepth) { let chest = this.getChest(tenthOfDepth); this.giveChestReward(chest.tenthOfDepth); newNews(_("Tu as {0} from a Chest!", chestService.getChestRewardText()), vrai); si(chest.isGolden) { trackEvent_FoundChest(1); } autre { trackEvent_FoundChest(0); } }
Save and close the file and restart the game. Maintenant tu as gagné’t see chest spawning, mais toi’ll get the rewards! You can check out the Event Log for proof.
C'est tout ce que nous partageons aujourd'hui pour cela M. Le mien guide. Ce guide a été initialement créé et rédigé par moNst_. Si nous ne parvenons pas à mettre à jour ce guide, vous pouvez trouver la dernière mise à jour en suivant ceci lien.