mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 06:07:21 +01:00
feat(event): 10th Birthday Bash
with @CuriousMagpie and @phillipthelen
This commit is contained in:
@@ -540,6 +540,11 @@ const backgrounds = {
|
||||
snowy_temple: { },
|
||||
winter_lake_with_swans: { },
|
||||
},
|
||||
eventBackgrounds: {
|
||||
birthday_bash: {
|
||||
price: 0,
|
||||
},
|
||||
},
|
||||
timeTravelBackgrounds: {
|
||||
airship: {
|
||||
price: 1,
|
||||
@@ -583,7 +588,9 @@ forOwn(backgrounds, (backgroundsInSet, set) => {
|
||||
forOwn(backgroundsInSet, (background, bgKey) => {
|
||||
background.key = bgKey;
|
||||
background.set = set;
|
||||
background.price = background.price || 7;
|
||||
if (background.price !== 0) {
|
||||
background.price = background.price || 7;
|
||||
}
|
||||
background.text = background.text || t(`background${upperFirst(camelCase(bgKey))}Text`);
|
||||
background.notes = background.notes || t(`background${upperFirst(camelCase(bgKey))}Notes`);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user