treasure and altar generation