Level 12 quest optimizer + pyramid automation

Fixes #191