Skip to content
Permalink
Browse files

add gauntlet to +kill

  • Loading branch information...
gc committed Oct 25, 2019
1 parent 6e98355 commit c2fed01b10f155dc7af7f4df6f7ca2c26c302484
Showing with 39 additions and 0 deletions.
  1. +25 −0 data/new_monsters/gauntlet.js
  2. +14 −0 data/new_monsters/utils/killWorkerFunction.js
@@ -0,0 +1,25 @@
const { roll } = require('../../config/util');

const drops = {
blade: '<:Blade_of_saeldor_inactive:637345429868118046>',
armorSeed: '<:Crystal_armour_seed:637345429805203466>',
weaponSeed: '<:Crystal_weapon_seed:637345429620785174>',
pet: '<:Youngllef:604670894798798858>'
};

const gauntlet = {
kill(quantity, corrupted = false) {
const loot = [];

for (let i = 0; i < quantity; i++) {
if (roll(corrupted ? 800 : 2000)) loot.push(drops.pet);
if (roll(corrupted ? 50 : 120)) loot.push(drops.weaponSeed);
if (roll(corrupted ? 50 : 120)) loot.push(drops.armorSeed);
if (roll(corrupted ? 400 : 2000)) loot.push(drops.blade);
}

return loot.join(' ');
}
};

module.exports = gauntlet;
@@ -3,6 +3,7 @@ const { expose } = require('threads');
const { cleanString } = require('../../../config/util');

const zulrah = require('../zulrah');
const gauntlet = require('../gauntlet');

const corp = require('../../monsters/corp');
const raids = require('../../monsters/raids');
@@ -432,6 +433,19 @@ function killWorkerFunction(quantity, bossName) {
return loot.length > 0 ? loot : 'You got nothing.';
}

case 'GAUNTLET': {
if (quantity > 500) return 'I can only kill 500 Gauntlets at a time!';
const loot = gauntlet.kill(quantity);
return loot.length > 0 ? loot : 'You got nothing.';
}

case 'CORRUPTEDGAUNTLET':
case 'CG': {
if (quantity > 500) return 'I can only kill 500 Gauntlets at a time!';
const loot = gauntlet.kill(quantity, true);
return loot.length > 0 ? loot : 'You got nothing.';
}

default:
return "I don't have that monster!";
}

0 comments on commit c2fed01

Please sign in to comment.
You can’t perform that action at this time.