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:
+2
-2
@@ -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]--
|
||||
|
||||
Reference in New Issue
Block a user