From fe72d6b92b6ccc12a6f28d37108242b9d23915d2 Mon Sep 17 00:00:00 2001 From: Nyeogmi Date: Sun, 1 Jan 2023 16:11:20 -0800 Subject: [PATCH] Remove rot13 --- chameleonic.p8 | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/chameleonic.p8 b/chameleonic.p8 index 5e15df1..8f03baf 100644 --- a/chameleonic.p8 +++ b/chameleonic.p8 @@ -1734,15 +1734,6 @@ end -->8 --hint system -function rot13(s) - local sord = pack(ord(s,1,#s)) - for i,c in ipairs(sord) do - if (inorder{65, c, 77} or inorder{97, c, 109}) sord[i]=c+13 - if (inorder{78, c, 90} or inorder{110, c, 122}) sord[i]=c-13 - end - return chr(unpack(sord)) -end - --hint file format: -- each row is one hint. -- 4 or 5 columns @@ -1765,21 +1756,19 @@ hints = {} add(real_modules,hints) function hints:init() - local h = gsv[[0`42`57`πŸ…ΎοΈ yVPX` β–  -0`42`73`❎, ❎ cHYY``69,67;55,67 -1`35`33`⁘` cHYY`62,35;41,35 -1`79`82`cHYY β– ``100,94;100,88 -1`42`98`⁘`VTABER`66,99;52,99;52,75;28,75;28,120 + local h = gsv[[0`42`57`πŸ…ΎοΈ pULL` β–  +0`42`73`❎, ❎ pULL``69,67;55,67 +1`35`33`⁘` pULL`62,35;41,35 +1`79`82`pULL β– ``100,94;100,88 +1`42`98`⁘`IGNORE`66,99;52,99;52,75;28,75;28,120 2`75`65` `⁘`86,67;76,67;76,71 -2`104`73` β– `cHYY`81,75;86,75 +2`104`73` β– `pULL`81,75;86,75 2`27`42`⁘``36,16;36,44;31,44 3`51`106`β– ``52,97;52,104 3`-1`-1```28,78;28,45 3`-1`-1```65,35;83,35 3`-1`-1```97,35;105,35]] for rec in all(h) do - rec[4]=rot13(rec[4]) - if(rec[5]) rec[5]=rot13(rec[5]) if(rec[6]) rec[6]=gsv(rec[6],";",",") local lh = self[rec[1]] if lh then