add tests for fns/ultimateGear, fns/handleTwoHanded, fns/randomVal, fns/predictableRandom and partial tests for ops/buy

This commit is contained in:
Matteo Pagliazzi
2016-03-19 18:05:02 +01:00
parent ff72706cae
commit 957e1d26d6
12 changed files with 341 additions and 137 deletions

View File

@@ -1,7 +1,7 @@
import content from '../content/index';
import i18n from '../i18n';
module.exports = function handleTwoHanded (user, item, type = 'equipped', req) {
module.exports = function handleTwoHanded (user, item, type = 'equipped', req = {}) {
let currentShield = content.gear.flat[user.items.gear[type].shield];
let currentWeapon = content.gear.flat[user.items.gear[type].weapon];