mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-11 14:39:37 +00:00
change food.key to food.text (displayed text only)
Change food.key to food.text in displayed text, to stop the "potatoe" typo being seen.
This commit is contained in:
parent
fdd856c2f8
commit
fc39ae4a4a
1 changed files with 2 additions and 2 deletions
|
|
@ -553,10 +553,10 @@ api.wrap = (user) ->
|
|||
else
|
||||
if food.target is potion
|
||||
userPets[pet] += 5
|
||||
message = "#{egg} really likes the #{food.key}!"
|
||||
message = "#{egg} really likes the #{food.text}!"
|
||||
else
|
||||
userPets[pet] += 2
|
||||
message = "#{egg} eats the #{food.key} but doesn't seem to enjoy it."
|
||||
message = "#{egg} eats the #{food.text} but doesn't seem to enjoy it."
|
||||
if userPets[pet] >= 50 and !user.items.mounts[pet]
|
||||
evolve()
|
||||
user.items.food[food.key]--
|
||||
|
|
|
|||
Loading…
Reference in a new issue