15 #define W(x, n) { if (quest->x) { stringbuffer_append_printf(buf, n "\n", quest->x); } }
18 W(quest_code,
"quest %s");
19 W(quest_title,
"title %s");
27 W(quest_restart,
"restart %d");
28 W(quest_is_system,
"is_system %d");
30 for (
const auto step :
quest->steps) {
32 if (step->is_completion_step) {
36 if (!step->conditions.empty()) {
39 for (
const auto cond : step->conditions) {