From 27b2d9aab9284e4a23a817815368196f0e4c4bcf Mon Sep 17 00:00:00 2001 From: Yona-TYT Date: Wed, 22 May 2024 17:33:37 -0400 Subject: [PATCH] Fix error in way_list in CH3 Step 9 --- .../scenario/tutorial/class/class_chapter_03.nut | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pak128.prototype/scenario/tutorial/class/class_chapter_03.nut b/pak128.prototype/scenario/tutorial/class/class_chapter_03.nut index 8ba64754..51c0c0fd 100644 --- a/pak128.prototype/scenario/tutorial/class/class_chapter_03.nut +++ b/pak128.prototype/scenario/tutorial/class/class_chapter_03.nut @@ -504,17 +504,17 @@ class tutorial.chapter_03 extends basic_chapter case 9: - local way_list = "" if (pot0==0){ + local way_list = "" text = ttextfile("chapter_03/09_1-2.txt") text.tx = ttext("[1/2]") local w_nr = 0 - for(local j=0;j("+c_a.tostring()+")" - local link2 = " --> ("+c_b.tostring()+")
" + local link1 = c_a.href("("+c_a.tostring()+")") + local link2 = " --> "+c_b.href("("+c_b.tostring()+")") way_list += ttext("" + format("--> [%d] %s", j+1, link1 + link2)) w_nr = j break @@ -526,8 +526,8 @@ class tutorial.chapter_03 extends basic_chapter } } text.list = way_list - text.w2 = c_way_lim1[w_nr].a.href("("+c_way_lim1[w_nr].a.tostring()+")") - text.w1 = c_way_lim1[w_nr].b.href("("+c_way_lim1[w_nr].b.tostring()+")") + text.w2 = c_way_list1[w_nr].a.href("("+c_way_list1[w_nr].a.tostring()+")") + text.w1 = c_way_list1[w_nr].b.href("("+c_way_list1[w_nr].b.tostring()+")") } else if (pot1==0){