HabitRPG/habitrpg-shared — pull request #97 by Sinza- (2014-01-19 02:48:16+00:00)
Title: Make first drop be a random egg instead of a Wolf egg

Before @colegleason fixed the `randomVal` function I was getting a tiger egg instead of a wolf egg but after that this part of `randomDrop` function started working as it should so the random first egg drop is working. Some issues though:

- I don't know if the index.coffee file is ok or not;
- Couldn't make the file views/shared/modals/drops.jade work as intended, showing the dropped egg. (@paglias was replacing strings on that file and it seemed so easy that I had to give it a try, half of it is working =p) I tried this and some other variants but it just doesn't show the egg image/text/notes:

```jade
p
span.item-drop-icon(class='Pet_Egg_{{user.items.eggs[firstDrop.key]}}', style='margin-left: 0px')
| You've unlocked the Drop System! Now when you complete tasks, you have a small chance of finding an item. You just found a
strong {{user.items.eggs[firstDrop.text]}} Egg
| ! {{user.items.eggs[firstDrop.notes]}}.
```