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:
@@ -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
|
||||
|
||||
###
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user