From 1151576e6cf0aee4b8faf3e5dc5628437deb4b43 Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Tue, 10 Jun 2014 17:04:42 -0600 Subject: [PATCH] feat(backgrounds): group bgs into sets in content.coffee, for easier "purchase set" --- dist/habitrpg-shared.js | 48 +++++++++++++++++++---------------------- script/content.coffee | 21 +++++++++--------- 2 files changed, 32 insertions(+), 37 deletions(-) diff --git a/dist/habitrpg-shared.js b/dist/habitrpg-shared.js index 310f20be4d..1d5f91b71f 100644 --- a/dist/habitrpg-shared.js +++ b/dist/habitrpg-shared.js @@ -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, diff --git a/script/content.coffee b/script/content.coffee index 1ca0bb7960..12bdfc2460 100644 --- a/script/content.coffee +++ b/script/content.coffee @@ -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 =