HabitRPG/habitrpg — pull request #2288 by SabreCat (2014-01-07 14:18:10+00:00)
Title: Client side of Rebirth-related fix: don't remove Wolf Eggs upon unlock

Previously, if user had >1 Wolf Egg, performed a Rebirth, then unlocked drops again, they would be reset to 1 Wolf Egg. Now Habit checks to see if they have some Wolf Eggs already, and if so, gives them one instead of setting the quantity to one.

Server op from the `$watch` happens first, so guideservices.js just skips if there are already eggs around. I tried doing a `eggs['Wolf']++` here as well, but that caused doubling-up (looked like the user received two eggs, until refresh). That may mean this bit isn't needed at all, in practice.