From 3b794c017a6ed49b9f8008baef388f72e4bd8f71 Mon Sep 17 00:00:00 2001 From: Sabe Jones Date: Wed, 31 Jan 2018 00:41:06 +0000 Subject: [PATCH] fix(event): update birthday vars and hooks --- website/client/assets/scss/variables.scss | 12 ++++++------ website/server/models/user/hooks.js | 2 ++ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/website/client/assets/scss/variables.scss b/website/client/assets/scss/variables.scss index eb20cf8ab0..35904a786a 100644 --- a/website/client/assets/scss/variables.scss +++ b/website/client/assets/scss/variables.scss @@ -1,9 +1,9 @@ // this variables are used to determine which shop npc/backgrounds should be loaded -// possible values are: normal, fall, habitoween, thanksgiving, winter, nye +// possible values are: normal, fall, habitoween, thanksgiving, winter, nye, birthday // more to be added on future seasons -$npc_market_flavor: 'winter'; -$npc_quests_flavor: 'winter'; -$npc_seasonal_flavor: 'winter'; -$npc_timetravelers_flavor: 'winter'; -$npc_tavern_flavor: 'winter'; +$npc_market_flavor: 'birthday'; +$npc_quests_flavor: 'birthday'; +$npc_seasonal_flavor: 'birthday'; +$npc_timetravelers_flavor: 'birthday'; +$npc_tavern_flavor: 'birthday'; diff --git a/website/server/models/user/hooks.js b/website/server/models/user/hooks.js index a557b8781a..93b32aa744 100644 --- a/website/server/models/user/hooks.js +++ b/website/server/models/user/hooks.js @@ -137,6 +137,8 @@ function _setUpNewUser (user) { user.items.quests.dustbunnies = 1; user.purchased.background.violet = true; user.preferences.background = 'violet'; + user.items.gear.owned.armor_special_birthday = true; + user.items.gear.equipped.body = 'armor_special_birthday'; if (user.registeredThrough === 'habitica-web') { taskTypes = ['habit', 'daily', 'todo', 'reward', 'tag'];