mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-13 23:42:12 +00:00
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:
parent
20cb03f93c
commit
328a9d28dc
2 changed files with 7 additions and 3 deletions
|
|
@ -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'
|
||||
|
|
|
|||
Loading…
Reference in a new issue