dropEggs and questEggs now automatically make the full content.eggs list; no manual duplication required.

This commit is contained in:
Lorian
2014-02-08 20:14:50 -08:00
parent 04b73c4058
commit 82b58a7435
2 changed files with 4 additions and 78 deletions

View File

@@ -10548,64 +10548,6 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
*/
api.eggs = {
Wolf: {
text: 'Wolf',
adjective: 'loyal'
},
TigerCub: {
text: 'Tiger Cub',
mountText: 'Tiger',
adjective: 'fierce'
},
PandaCub: {
text: 'Panda Cub',
mountText: 'Panda',
adjective: 'gentle'
},
LionCub: {
text: 'Lion Cub',
mountText: 'Lion',
adjective: 'regal'
},
Fox: {
text: 'Fox',
adjective: 'wily'
},
FlyingPig: {
text: 'Flying Pig',
adjective: 'whimsical'
},
Dragon: {
text: 'Dragon',
adjective: 'mighty'
},
Cactus: {
text: 'Cactus',
adjective: 'prickly'
},
BearCub: {
text: 'Bear Cub',
mountText: 'Bear',
adjective: 'cuddly'
},
Gryphon: {
text: 'Gryphon',
adjective: 'regal',
canBuy: false
}
};
_.each(api.eggs, function(egg, key) {
return _.defaults(egg, {
canBuy: true,
value: 3,
key: key,
notes: "Find a hatching potion to pour on this egg, and it will hatch into a " + egg.adjective + " " + egg.text + ".",
mountText: egg.text
});
});
api.dropEggs = {
Wolf: {
text: 'Wolf',
@@ -10677,6 +10619,8 @@ var global=typeof self !== "undefined" ? self : typeof window !== "undefined" ?
});
});
api.eggs = _.assign(_.cloneDeep(api.dropEggs), api.questEggs);
api.specialPets = {
'Wolf-Veteran': true,
'Wolf-Cerberus': true,

View File

@@ -486,26 +486,6 @@ api.special = api.spells.special
---------------------------------------------------------------
###
api.eggs =
# value & other defaults set below
Wolf: text: 'Wolf', adjective: 'loyal'
TigerCub: text: 'Tiger Cub', mountText: 'Tiger', adjective: 'fierce'
PandaCub: text: 'Panda Cub', mountText: 'Panda', adjective: 'gentle'
LionCub: text: 'Lion Cub', mountText: 'Lion', adjective: 'regal'
Fox: text: 'Fox', adjective: 'wily'
FlyingPig: text: 'Flying Pig', adjective: 'whimsical'
Dragon: text: 'Dragon', adjective: 'mighty'
Cactus: text: 'Cactus', adjective: 'prickly'
BearCub: text: 'Bear Cub', mountText: 'Bear', adjective: 'cuddly'
Gryphon: text: 'Gryphon', adjective: 'regal', canBuy: false
_.each api.eggs, (egg,key) ->
_.defaults egg,
canBuy:true
value: 3
key: key
notes: "Find a hatching potion to pour on this egg, and it will hatch into a #{egg.adjective} #{egg.text}."
mountText: egg.text
api.dropEggs =
# value & other defaults set below
Wolf: text: 'Wolf', adjective: 'loyal'
@@ -536,6 +516,8 @@ _.each api.questEggs, (egg,key) ->
notes: "Find a hatching potion to pour on this egg, and it will hatch into a #{egg.adjective} #{egg.text}."
mountText: egg.text
api.eggs = _.assign(_.cloneDeep(api.dropEggs), api.questEggs)
api.specialPets =
'Wolf-Veteran': true
'Wolf-Cerberus': true