ShrubberyCreationForm create file

This commit is contained in:
2026-02-17 18:01:24 +01:00
parent 5d62dbd20d
commit c233d14af7
3 changed files with 17 additions and 3 deletions

View File

@@ -73,7 +73,21 @@ void ShrubberyCreationForm::execute(Bureaucrat const &executor)
throw FormNotSignedException();
if (this->getGradeToExecute() < executor.getGrade())
throw AForm::GradeTooLowException();
// Other things...
// ShrubberyCreation form action...
std::string filename = this->target + "_shrubbery";
std::ofstream file(filename.c_str());
file << " _-_\n";
file << " /~~ ~~\\\n";
file << " /~~ ~~\\\n";
file << "{ }\n";
file << " \\ _- -_ /\n";
file << " ~ \\ // ~\n";
file << "_- - | | _- _\n";
file << " _ - | | -_\n";
file << " // \\";
}
//////////////////