class Blasts : Item { override fun kill() { val stars = actor.textAppearance.text.length() Play.instance.blasts += stars * 25 actor.event( "collect$stars" ) super.kill() } }