Moved the creature deposit gold action logic into its own sub-function.

I simplified it a bit along the way.