Implement difficulty scaling (Fixes #1505)