feat(eggQuest): add april egg quest

This commit is contained in:
Tyler Renelle 2014-04-06 21:29:34 -06:00
parent 491f0e8b81
commit bd8d2dcbd0
19 changed files with 10681 additions and 10425 deletions

8748
dist/customizer.css vendored

File diff suppressed because it is too large Load diff

File diff suppressed because one or more lines are too long

View file

@ -10815,6 +10815,11 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
text: 'Deer',
adjective: 'elegant',
canBuy: false
},
Egg: {
text: 'Egg',
adjective: 'colorful',
canBuy: false
}
};
@ -11261,6 +11266,65 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
gp: 100,
exp: 1000
}
},
egg: {
text: "Egg Hunt",
notes: "Overnight, strange plain eggs have appeared everywhere: in Matt's stables, behind the counter at the Tavern, and even among the pet eggs at the Marketplace! What a nuisance! \"Nobody knows where they came from, or what they might hatch into,\" says @Megan, \"but we can't just leave them laying around! Work hard and search hard to help me gather up these mysterious eggs. Maybe if you collect enough, there will be some extras left over for you...\"",
completion: "You did it! In gratitude, @Megan gives you ten of the eggs. \"I don't think they hatch, exactly,\" she says, \"and they certainly won't grow into mounts. But that doesn't mean you can't dye them beautiful colors!\"",
value: 4,
collect: {
plainEgg: {
text: 'Plain Egg',
count: 100
}
},
drop: {
items: [
{
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}, {
type: 'eggs',
key: 'Egg',
text: "Plain Egg"
}
],
gp: 0,
exp: 0
}
}
};
@ -12331,7 +12395,7 @@ var process=require("__browserify_process");(function() {
message: ":food not found in user.items.food"
}) : void 0;
}
if (content.specialPets[pet]) {
if (content.specialPets[pet] || (egg === "Egg")) {
return typeof cb === "function" ? cb({
code: 401,
message: "Can't feed this pet."

12264
dist/spritesmith.css vendored

File diff suppressed because it is too large Load diff

BIN
dist/spritesmith.png vendored

Binary file not shown.

Before

Width:  |  Height:  |  Size: 537 KiB

After

Width:  |  Height:  |  Size: 545 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 691 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 748 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 732 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 674 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 699 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 636 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 620 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 864 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

View file

@ -558,6 +558,7 @@ api.questEggs =
Gryphon: text: 'Gryphon', adjective: 'proud', canBuy: false
Hedgehog: text: 'Hedgehog', adjective: 'spiky', canBuy: false
Deer: text: 'Deer', adjective: 'elegant', canBuy: false
Egg: text: 'Egg', adjective: 'colorful', canBuy: false
_.each api.questEggs, (egg,key) ->
_.defaults egg,
canBuy:false
@ -780,6 +781,29 @@ api.quests =
gp: 100
exp: 1000
egg:
text: "Egg Hunt"
notes: "Overnight, strange plain eggs have appeared everywhere: in Matt's stables, behind the counter at the Tavern, and even among the pet eggs at the Marketplace! What a nuisance! \"Nobody knows where they came from, or what they might hatch into,\" says @Megan, \"but we can't just leave them laying around! Work hard and search hard to help me gather up these mysterious eggs. Maybe if you collect enough, there will be some extras left over for you...\""
completion: "You did it! In gratitude, @Megan gives you ten of the eggs. \"I don't think they hatch, exactly,\" she says, \"and they certainly won't grow into mounts. But that doesn't mean you can't dye them beautiful colors!\""
value: 1
collect:
plainEgg: text: 'Plain Egg', count: 100
drop:
items: [
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
{type: 'eggs', key: 'Egg', text: "Plain Egg"}
]
gp: 0
exp: 0
_.each api.quests, (v,key) ->
_.defaults v, {key,canBuy:true}

View file

@ -575,7 +575,7 @@ api.wrap = (user, main=true) ->
return cb?({code:404, message:":pet not found in user.items.pets"}) unless userPets[pet]
return cb?({code:404, message:":food not found in user.items.food"}) unless user.items.food?[food.key]
return cb?({code:401, message:"Can't feed this pet."}) if content.specialPets[pet]
return cb?({code:401, message:"Can't feed this pet."}) if content.specialPets[pet] or (egg is "Egg")
return cb?({code:401, message:"You already have that mount. Try feeding another pet."}) if user.items.mounts[pet]
message = ''