suggested fix for adding "special" pets so that the list does not have to be duplicated multiple times. the user model can be updated in habitrpg to pull from here instead of hard coding it

This commit is contained in:
Nick Gordon 2013-11-27 22:50:19 -08:00
parent 20cb03f93c
commit 328a9d28dc
2 changed files with 7 additions and 3 deletions

View file

@ -353,9 +353,7 @@ module.exports =
countPets: (originalCount, pets) ->
count = if originalCount? then originalCount else _.size(pets)
count-- if pets["Wolf-Veteran"]
count-- if pets["Wolf-Cerberus"]
count-- if pets["Dragon-Hydra"]
count-- for pet,info in items.items.specialPets if pets[pet]
count
###

View file

@ -70,6 +70,12 @@ items = module.exports.items =
CottonCandyBlue: value: 4, text: 'Cotton Candy Blue'
Golden: value: 5, text: 'Golden'
specialPets:
'Wolf-Veteran': true
'Wolf-Cerberus': true
'Dragon-Hydra': true
'Turkey-Base': true
food:
Meat: text: 'Meat', target: 'Base'
Milk: text: 'Milk', target: 'White'