pets: rename shaners Item_HatchingPotion to Pet_HatchingPotion to fit

previous architecture, add some placeholders for the un-finished
potions. got them working
This commit is contained in:
Tyler Renelle
2013-03-27 00:20:33 -07:00
parent db2a210007
commit 6520bfb789
5 changed files with 32 additions and 16 deletions
+1 -1
View File
@@ -67,7 +67,7 @@ items = module.exports.items =
_.each ['weapon', 'armor', 'head', 'shield'], (key) ->
_.each items[key], (item) -> item.type = key
_.each items.pets, (pet) -> pet.notes = 'Find some Hatching Powder to sprinkle on this egg, and one day it will hatch into a loyal pet.'
_.each items.pets, (pet) -> pet.notes = 'Find some Hatching Potion to sprinkle on this egg, and one day it will hatch into a loyal pet.'
_.each items.food, (food) -> food.notes = "Sprinkle this on an egg, and it will hatch as a #{food.text} pet."
###
+2 -2
View File
@@ -65,8 +65,8 @@ randomDrop = (model, delta) ->
acceptableDrops = _.filter(food, (foodItem) -> foodItem.name in acceptableDrops)
drop = randomVal acceptableDrops
user.push 'items.food', drop.name
drop.type = 'Food'
drop.dialog = "You've found #{drop.text} Hatching Powder! #{drop.notes}"
drop.type = 'HatchingPotion'
drop.dialog = "You've found a #{drop.text} Hatching Potion! #{drop.notes}"
model.set '_drop', drop
$('#item-dropped-modal').modal 'show'