mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 23:27:26 +01:00
fix(event): update birthday vars and hooks
This commit is contained in:
@@ -1,9 +1,9 @@
|
|||||||
// this variables are used to determine which shop npc/backgrounds should be loaded
|
// 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
|
// more to be added on future seasons
|
||||||
|
|
||||||
$npc_market_flavor: 'winter';
|
$npc_market_flavor: 'birthday';
|
||||||
$npc_quests_flavor: 'winter';
|
$npc_quests_flavor: 'birthday';
|
||||||
$npc_seasonal_flavor: 'winter';
|
$npc_seasonal_flavor: 'birthday';
|
||||||
$npc_timetravelers_flavor: 'winter';
|
$npc_timetravelers_flavor: 'birthday';
|
||||||
$npc_tavern_flavor: 'winter';
|
$npc_tavern_flavor: 'birthday';
|
||||||
|
|||||||
@@ -137,6 +137,8 @@ function _setUpNewUser (user) {
|
|||||||
user.items.quests.dustbunnies = 1;
|
user.items.quests.dustbunnies = 1;
|
||||||
user.purchased.background.violet = true;
|
user.purchased.background.violet = true;
|
||||||
user.preferences.background = 'violet';
|
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') {
|
if (user.registeredThrough === 'habitica-web') {
|
||||||
taskTypes = ['habit', 'daily', 'todo', 'reward', 'tag'];
|
taskTypes = ['habit', 'daily', 'todo', 'reward', 'tag'];
|
||||||
|
|||||||
Reference in New Issue
Block a user