mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-08 05:25:21 +00:00
feat(backgrounds): group bgs into sets in content.coffee, for easier
"purchase set"
This commit is contained in:
parent
d95528a205
commit
1151576e6c
2 changed files with 32 additions and 37 deletions
48
dist/habitrpg-shared.js
vendored
48
dist/habitrpg-shared.js
vendored
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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 =
|
||||
|
|
|
|||
Loading…
Reference in a new issue