mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-08-03 00:09:41 +00:00
feat(fall): disable candy drops
This commit is contained in:
parent
8932db4cc9
commit
1151002dd6
2 changed files with 50 additions and 51 deletions
60
dist/habitrpg-shared.js
vendored
60
dist/habitrpg-shared.js
vendored
|
|
@ -12300,70 +12300,70 @@ api.questPets = _.transform(api.questEggs, function(m, egg) {
|
||||||
api.food = {
|
api.food = {
|
||||||
Meat: {
|
Meat: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodMeat'),
|
text: t('foodMeat'),
|
||||||
target: 'Base',
|
target: 'Base',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Milk: {
|
Milk: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodMilk'),
|
text: t('foodMilk'),
|
||||||
target: 'White',
|
target: 'White',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Potatoe: {
|
Potatoe: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodPotatoe'),
|
text: t('foodPotatoe'),
|
||||||
target: 'Desert',
|
target: 'Desert',
|
||||||
article: 'a '
|
article: 'a '
|
||||||
},
|
},
|
||||||
Strawberry: {
|
Strawberry: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodStrawberry'),
|
text: t('foodStrawberry'),
|
||||||
target: 'Red',
|
target: 'Red',
|
||||||
article: 'a '
|
article: 'a '
|
||||||
},
|
},
|
||||||
Chocolate: {
|
Chocolate: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodChocolate'),
|
text: t('foodChocolate'),
|
||||||
target: 'Shade',
|
target: 'Shade',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Fish: {
|
Fish: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodFish'),
|
text: t('foodFish'),
|
||||||
target: 'Skeleton',
|
target: 'Skeleton',
|
||||||
article: 'a '
|
article: 'a '
|
||||||
},
|
},
|
||||||
RottenMeat: {
|
RottenMeat: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodRottenMeat'),
|
text: t('foodRottenMeat'),
|
||||||
target: 'Zombie',
|
target: 'Zombie',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
CottonCandyPink: {
|
CottonCandyPink: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodCottonCandyPink'),
|
text: t('foodCottonCandyPink'),
|
||||||
target: 'CottonCandyPink',
|
target: 'CottonCandyPink',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
CottonCandyBlue: {
|
CottonCandyBlue: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodCottonCandyBlue'),
|
text: t('foodCottonCandyBlue'),
|
||||||
target: 'CottonCandyBlue',
|
target: 'CottonCandyBlue',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Honey: {
|
Honey: {
|
||||||
canBuy: true,
|
canBuy: true,
|
||||||
canDrop: false,
|
canDrop: true,
|
||||||
text: t('foodHoney'),
|
text: t('foodHoney'),
|
||||||
target: 'Golden',
|
target: 'Golden',
|
||||||
article: ''
|
article: ''
|
||||||
|
|
@ -12446,71 +12446,71 @@ api.food = {
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_Skeleton: {
|
Candy_Skeleton: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandySkeleton'),
|
text: t('foodCandySkeleton'),
|
||||||
target: 'Skeleton',
|
target: 'Skeleton',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_Base: {
|
Candy_Base: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyBase'),
|
text: t('foodCandyBase'),
|
||||||
target: 'Base',
|
target: 'Base',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_CottonCandyBlue: {
|
Candy_CottonCandyBlue: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyCottonCandyBlue'),
|
text: t('foodCandyCottonCandyBlue'),
|
||||||
target: 'CottonCandyBlue',
|
target: 'CottonCandyBlue',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_CottonCandyPink: {
|
Candy_CottonCandyPink: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyCottonCandyPink'),
|
text: t('foodCandyCottonCandyPink'),
|
||||||
target: 'CottonCandyPink',
|
target: 'CottonCandyPink',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_Shade: {
|
Candy_Shade: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyShade'),
|
text: t('foodCandyShade'),
|
||||||
target: 'Shade',
|
target: 'Shade',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_White: {
|
Candy_White: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyWhite'),
|
text: t('foodCandyWhite'),
|
||||||
target: 'White',
|
target: 'White',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_Golden: {
|
Candy_Golden: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyGolden'),
|
text: t('foodCandyGolden'),
|
||||||
target: 'Golden',
|
target: 'Golden',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_Zombie: {
|
Candy_Zombie: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyZombie'),
|
text: t('foodCandyZombie'),
|
||||||
target: 'Zombie',
|
target: 'Zombie',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_Desert: {
|
Candy_Desert: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyDesert'),
|
text: t('foodCandyDesert'),
|
||||||
target: 'Desert',
|
target: 'Desert',
|
||||||
article: ''
|
article: ''
|
||||||
},
|
},
|
||||||
Candy_Red: {
|
Candy_Red: {
|
||||||
canBuy: true,
|
canBuy: false,
|
||||||
canDrop: true,
|
canDrop: false,
|
||||||
text: t('foodCandyRed'),
|
text: t('foodCandyRed'),
|
||||||
target: 'Red',
|
target: 'Red',
|
||||||
article: ''
|
article: ''
|
||||||
|
|
|
||||||
|
|
@ -730,19 +730,18 @@ api.questPets = _.transform api.questEggs, (m, egg) ->
|
||||||
_.defaults m, _.transform api.hatchingPotions, (m2, pot) ->
|
_.defaults m, _.transform api.hatchingPotions, (m2, pot) ->
|
||||||
m2[egg.key + "-" + pot.key] = true
|
m2[egg.key + "-" + pot.key] = true
|
||||||
|
|
||||||
#TODO after the fall event, set Base set to canBuy:true (or remove, since it's default) and set Fall set to canBuy:false
|
|
||||||
api.food =
|
api.food =
|
||||||
# Base
|
# Base
|
||||||
Meat: canBuy:true, canDrop:false, text: t('foodMeat'), target: 'Base', article: ''
|
Meat: canBuy:true, canDrop:true, text: t('foodMeat'), target: 'Base', article: ''
|
||||||
Milk: canBuy:true, canDrop:false, text: t('foodMilk'), target: 'White', article: ''
|
Milk: canBuy:true, canDrop:true, text: t('foodMilk'), target: 'White', article: ''
|
||||||
Potatoe: canBuy:true, canDrop:false, text: t('foodPotatoe'), target: 'Desert', article: 'a '
|
Potatoe: canBuy:true, canDrop:true, text: t('foodPotatoe'), target: 'Desert', article: 'a '
|
||||||
Strawberry: canBuy:true, canDrop:false, text: t('foodStrawberry'), target: 'Red', article: 'a '
|
Strawberry: canBuy:true, canDrop:true, text: t('foodStrawberry'), target: 'Red', article: 'a '
|
||||||
Chocolate: canBuy:true, canDrop:false, text: t('foodChocolate'), target: 'Shade', article: ''
|
Chocolate: canBuy:true, canDrop:true, text: t('foodChocolate'), target: 'Shade', article: ''
|
||||||
Fish: canBuy:true, canDrop:false, text: t('foodFish'), target: 'Skeleton', article: 'a '
|
Fish: canBuy:true, canDrop:true, text: t('foodFish'), target: 'Skeleton', article: 'a '
|
||||||
RottenMeat: canBuy:true, canDrop:false, text: t('foodRottenMeat'), target: 'Zombie', article: ''
|
RottenMeat: canBuy:true, canDrop:true, text: t('foodRottenMeat'), target: 'Zombie', article: ''
|
||||||
CottonCandyPink: canBuy:true, canDrop:false, text: t('foodCottonCandyPink'), target: 'CottonCandyPink', article: ''
|
CottonCandyPink: canBuy:true, canDrop:true, text: t('foodCottonCandyPink'), target: 'CottonCandyPink', article: ''
|
||||||
CottonCandyBlue: canBuy:true, canDrop:false, text: t('foodCottonCandyBlue'), target: 'CottonCandyBlue', article: ''
|
CottonCandyBlue: canBuy:true, canDrop:true, text: t('foodCottonCandyBlue'), target: 'CottonCandyBlue', article: ''
|
||||||
Honey: canBuy:true, canDrop:false, text: t('foodHoney'), target: 'Golden', article: ''
|
Honey: canBuy:true, canDrop:true, text: t('foodHoney'), target: 'Golden', article: ''
|
||||||
|
|
||||||
Saddle: canBuy:true, canDrop:false, text: t('foodSaddleText'), value: 5, notes: t('foodSaddleNotes')
|
Saddle: canBuy:true, canDrop:false, text: t('foodSaddleText'), value: 5, notes: t('foodSaddleNotes')
|
||||||
|
|
||||||
|
|
@ -759,16 +758,16 @@ api.food =
|
||||||
Cake_Red: canBuy:false, canDrop:false, text: t('foodCakeRed'), target: 'Red', article: ''
|
Cake_Red: canBuy:false, canDrop:false, text: t('foodCakeRed'), target: 'Red', article: ''
|
||||||
|
|
||||||
# Fall
|
# Fall
|
||||||
Candy_Skeleton: canBuy:true, canDrop:true, text: t('foodCandySkeleton'), target: 'Skeleton', article: ''
|
Candy_Skeleton: canBuy:false, canDrop:false, text: t('foodCandySkeleton'), target: 'Skeleton', article: ''
|
||||||
Candy_Base: canBuy:true, canDrop:true, text: t('foodCandyBase'), target: 'Base', article: ''
|
Candy_Base: canBuy:false, canDrop:false, text: t('foodCandyBase'), target: 'Base', article: ''
|
||||||
Candy_CottonCandyBlue: canBuy:true, canDrop:true, text: t('foodCandyCottonCandyBlue'), target: 'CottonCandyBlue', article: ''
|
Candy_CottonCandyBlue: canBuy:false, canDrop:false, text: t('foodCandyCottonCandyBlue'), target: 'CottonCandyBlue', article: ''
|
||||||
Candy_CottonCandyPink: canBuy:true, canDrop:true, text: t('foodCandyCottonCandyPink'), target: 'CottonCandyPink', article: ''
|
Candy_CottonCandyPink: canBuy:false, canDrop:false, text: t('foodCandyCottonCandyPink'), target: 'CottonCandyPink', article: ''
|
||||||
Candy_Shade: canBuy:true, canDrop:true, text: t('foodCandyShade'), target: 'Shade', article: ''
|
Candy_Shade: canBuy:false, canDrop:false, text: t('foodCandyShade'), target: 'Shade', article: ''
|
||||||
Candy_White: canBuy:true, canDrop:true, text: t('foodCandyWhite'), target: 'White', article: ''
|
Candy_White: canBuy:false, canDrop:false, text: t('foodCandyWhite'), target: 'White', article: ''
|
||||||
Candy_Golden: canBuy:true, canDrop:true, text: t('foodCandyGolden'), target: 'Golden', article: ''
|
Candy_Golden: canBuy:false, canDrop:false, text: t('foodCandyGolden'), target: 'Golden', article: ''
|
||||||
Candy_Zombie: canBuy:true, canDrop:true, text: t('foodCandyZombie'), target: 'Zombie', article: ''
|
Candy_Zombie: canBuy:false, canDrop:false, text: t('foodCandyZombie'), target: 'Zombie', article: ''
|
||||||
Candy_Desert: canBuy:true, canDrop:true, text: t('foodCandyDesert'), target: 'Desert', article: ''
|
Candy_Desert: canBuy:false, canDrop:false, text: t('foodCandyDesert'), target: 'Desert', article: ''
|
||||||
Candy_Red: canBuy:true, canDrop:true, text: t('foodCandyRed'), target: 'Red', article: ''
|
Candy_Red: canBuy:false, canDrop:false, text: t('foodCandyRed'), target: 'Red', article: ''
|
||||||
|
|
||||||
_.each api.food, (food,key) ->
|
_.each api.food, (food,key) ->
|
||||||
_.defaults food, {value: 1, key, notes: t('foodNotes')}
|
_.defaults food, {value: 1, key, notes: t('foodNotes')}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue