Fixed pack price breakdown and made it futureproof (dev branch)

Resubmitting this patch to dev branch:
https://github.com/jshackles/Enhanced_Steam/pull/343

Not quite sure how to retarget that pull request.
It's the same patch, with the extra added optimization line.