From cfa46db6a0c317a7c9720e20e50f0ab50db85a63 Mon Sep 17 00:00:00 2001 From: Sean Hulka Date: Thu, 3 Jun 2021 05:15:43 +0000 Subject: Make code more readable and fix syntax error --- npc/006-2-5/pouf.txt | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/npc/006-2-5/pouf.txt b/npc/006-2-5/pouf.txt index f824a203e..65da2efe1 100644 --- a/npc/006-2-5/pouf.txt +++ b/npc/006-2-5/pouf.txt @@ -53,11 +53,11 @@ function poufChallenge { return; poufQuest(); } - elseif (.@q == 1) + else if (.@q == 1) { poufQuestReport(); } - elseif (.@q == 2) + else if (.@q == 2) { poufQuestReward(); } @@ -119,9 +119,18 @@ function poufQuestReward { // L_Reward: function poufQuestFinished { // L_Finished: next; .@r = rand2(3); - if (.@r == 0) mesq l("I bid you a good %s, brave knight.", (is_night() ? l("evening") : l("day"))); - if (.@r == 1) mesq l("Fight bravely for Queen +seeds and country, my knight!"); - if (.@r == 2) mesq l("I wish you success on your ventures, Knight @@.", strcharinfo(0)); + if (.@r == 0) + { + mesq l("I bid you a good %s, brave knight.", (is_night() ? l("evening") : l("day"))); + } + else if (.@r == 1) + { + mesq l("Fight bravely for Queen +seeds and country, my knight!"); + } + else + { + mesq l("I wish you success on your ventures, Knight @@.", strcharinfo(0)); + } return; } -- cgit v1.2.3-60-g2f50