feat(backgrounds): group bgs into sets in content.coffee, for easier

"purchase set"
This commit is contained in:
Tyler Renelle 2014-06-10 17:04:42 -06:00
parent d95528a205
commit 1151576e6c
2 changed files with 32 additions and 37 deletions

View file

@ -11780,38 +11780,34 @@ _.each(api.quests, function(v, key) {
});
api.backgrounds = {
beach: {
text: function() {
return "Beach";
'June 2014': {
beach: {
text: function() {
return "Beach";
},
notes: function() {
return " Lounge upon a warm beach.";
}
},
notes: function() {
return " Lounge upon a warm beach.";
}
},
fairy_ring: {
text: function() {
return "Fairy Ring";
fairy_ring: {
text: function() {
return "Fairy Ring";
},
notes: function() {
return "Dance in a fairy ring.";
}
},
notes: function() {
return "Dance in a fairy ring.";
}
},
forest: {
text: function() {
return "Forest";
},
notes: function() {
return "Stroll through a summer forest.";
forest: {
text: function() {
return "Forest";
},
notes: function() {
return "Stroll through a summer forest.";
}
}
}
};
_.each(api.backgrounds, function(v, key) {
return _.defaults(v, {
key: key
});
});
repeat = {
m: true,
t: true,

View file

@ -876,17 +876,16 @@ _.each api.quests, (v,key) ->
_.defaults v, {key,canBuy:true}
api.backgrounds =
beach:
text: ->"Beach"
notes: ->" Lounge upon a warm beach."
fairy_ring:
text: ->"Fairy Ring"
notes: ->"Dance in a fairy ring."
forest:
text: ->"Forest"
notes: ->"Stroll through a summer forest."
_.each api.backgrounds, (v,key)->
_.defaults v,{key}
'June 2014':
beach:
text: ->"Beach"
notes: ->" Lounge upon a warm beach."
fairy_ring:
text: ->"Fairy Ring"
notes: ->"Dance in a fairy ring."
forest:
text: ->"Forest"
notes: ->"Stroll through a summer forest."
repeat = {m:true,t:true,w:true,th:true,f:true,s:true,su:true}
api.userDefaults =