HabitRPG/habitrpg — pull request #2290 by SabreCat (2014-01-07 17:21:15+00:00)
Title: Fix #2048 (streak bonuses not appearing to add up)

Addresses the issue of misleading streak notifications, by making the "gp" notification style take two arguments: value and bonus. The GP notification subtracts off the bonus before displaying, resulting in an alert that contains only the pre-streak total. When we then add the "+X Streak Bonus!" notification, the total list of alerts correctly adds up to the amount of GP gained, where previously the streak bonus was getting double-listed.

If you watch very closely, totaling up every alert you get, there will be discrepancies of a few Silver due to rounding. But you'll be much closer than you previously would, where you'd seem to be short several Gold!