adapt reset to v2 and remove deleted files from gulpfile

This commit is contained in:
Matteo Pagliazzi
2016-04-12 18:50:02 +02:00
parent c64ba3e8d7
commit 004b032084
3 changed files with 7 additions and 8 deletions

View File

@@ -1,7 +1,7 @@
import resetGear from '../fns/resetGear';
import i18n from '../i18n';
module.exports = function reset (user, tasks = []) {
module.exports = function reset (user, tasks = [], req = {}) {
user.stats.hp = 50;
user.stats.lvl = 1;
user.stats.gp = 0;
@@ -24,5 +24,9 @@ module.exports = function reset (user, tasks = []) {
message: i18n.t('resetComplete'),
};
return response;
if (req.v2 === true) {
return user;
} else {
return response;
}
};