Revamp config and add new treasure generation algorithm