watabou/pixel-dungeon — pull request #28 by nguyent (2014-12-04 08:21:04+00:00)
Title: Remove instanceof in Hero.add

Hero.add relies on instanceof to apply Buffs, which leads to monolithic code. By decoupling the strings from Hero on to their respective Buffs, the resulting code in Hero.add becomes more readable.