stepmania/stepmania — pull request #287 by dguzek (2014-09-01 23:04:39+00:00)
Title: expose InsertCoin and InsertCredit to Lua

This commit exposes InsertCoin() and InsertCredit() to Lua under GAMESTATE. It adds a check to ensure overall credits don't become negative when deducting and only plays sounds if credits are being added.

Themers are instructed to deduct credits by passing negative values to InsertCoin.