fix(event): update birthday vars and hooks

This commit is contained in:
Sabe Jones
2018-01-31 00:41:06 +00:00
parent a636e15d11
commit 3b794c017a
2 changed files with 8 additions and 6 deletions

View File

@@ -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';

View File

@@ -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'];