Hourglass Quest (#11325)

* feat(content): Hourglass Quest

* fix(hourglasses): NaN from undefined

* fix(quests): sanity check for negative scrolls

* fix(hourglasses): don't show quantity selection for binary items

* fix(route): validate number, use body not params

* test(timetrav): add quest tests
This commit is contained in:
Sabe Jones
2019-08-29 15:22:12 -04:00
committed by GitHub
parent 9077290ea3
commit fc841d0ad4
61 changed files with 209 additions and 42 deletions

View File

@@ -386,6 +386,12 @@ let quests = {
adjective: t('questEggDolphinAdjective'),
canBuy: hasQuestAchievementFunction('dolphin'),
},
Robot: {
text: t('questEggRobotText'),
mountText: t('questEggRobotMountText'),
adjective: t('questEggRobotAdjective'),
canBuy: hasQuestAchievementFunction('robot'),
},
};
applyEggDefaults(drops, {

View File

@@ -3458,6 +3458,50 @@ let quests = {
unlock: t('questSilverUnlockText'),
},
},
robot: {
text: t('questRobotText'),
notes: t('questRobotNotes'),
completion: t('questRobotCompletion'),
value: 1,
category: 'timeTravelers',
canBuy () {
return false;
},
collect: {
bolt: {
text: t('questRobotCollectBolts'),
count: 15,
},
gear: {
text: t('questRobotCollectGears'),
count: 10,
},
spring: {
text: t('questRobotCollectSprings'),
count: 10,
},
},
drop: {
items: [
{
type: 'eggs',
key: 'Robot',
text: t('questRobotDropRobotEgg'),
}, {
type: 'eggs',
key: 'Robot',
text: t('questRobotDropRobotEgg'),
}, {
type: 'eggs',
key: 'Robot',
text: t('questRobotDropRobotEgg'),
},
],
gp: 40,
exp: 75,
unlock: t('questRobotUnlockText'),
},
},
};
each(quests, (v, key) => {