diff options
author | Sean Hulka <sean.hulka@gmail.com> | 2021-06-03 05:15:43 +0000 |
---|---|---|
committer | Sean Hulka <sean.hulka@gmail.com> | 2021-06-03 05:15:43 +0000 |
commit | cfa46db6a0c317a7c9720e20e50f0ab50db85a63 (patch) | |
tree | f60a50323dd79ead29eb3e3ea728a01c3c13615f | |
parent | 0bb19944b6083646e451bb53ddfde3e9b26771b5 (diff) | |
download | serverdata-cfa46db6a0c317a7c9720e20e50f0ab50db85a63.tar.gz serverdata-cfa46db6a0c317a7c9720e20e50f0ab50db85a63.tar.bz2 serverdata-cfa46db6a0c317a7c9720e20e50f0ab50db85a63.tar.xz serverdata-cfa46db6a0c317a7c9720e20e50f0ab50db85a63.zip |
Make code more readable and fix syntax error
-rw-r--r-- | npc/006-2-5/pouf.txt | 19 |
1 files 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; } |