From dea723cd59fd08eae2ed235d3b9f0571ba0ff214 Mon Sep 17 00:00:00 2001 From: Jesusaves Date: Thu, 15 Jul 2021 01:29:19 -0300 Subject: Styling, Translations, and Cindy's conversion rule + Magic EXP conversion. Magic conversion will happen on this block if @HoraK give me what I need. Otherwise, it will also be wiped on this block. --- npc/functions/clear_vars.txt | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'npc/functions/clear_vars.txt') diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt index ab0259bb..9d75fef0 100644 --- a/npc/functions/clear_vars.txt +++ b/npc/functions/clear_vars.txt @@ -18,6 +18,22 @@ function script ClearVariables { setq Quest_Doomsday, 2; #DD5_TALLY = 0; // Whatever } + if (QL_CINDY) { + if (QL_CINDY == 5) QL_CINDY = 0; + else if (QL_CINDY == 6) QL_CINDY = 1; + else if (QL_CINDY == 1) QL_CINDY = 2; + else if (QL_CINDY == 2) QL_CINDY = 3; + else if (QL_CINDY == 3) QL_CINDY = 4; + else if (QL_CINDY == 4) QL_CINDY = 5; + setq KaizeiQuest_Cindy, QL_CINDY; + QL_CINDY = 0; + } + if (MAGIC_EXPERIENCE) { + setq1(MagicQuest_Healing, (QUEST_MAGIC2 & NIBBLE_1_MASK) >> NIBBLE_1_SHIFT); // Needed as QUEST_MAGIC2 wasn't completely deleted + setq2(MagicQuest_Healing, MAGIC_EXPERIENCE >> 24); + MAGIC_EXP = (MAGIC_EXPERIENCE & 65535); + MAGIC_EXPERIENCE = 0; + } // Don't ask me what code below does // ---------------------------------- -- cgit v1.2.3-60-g2f50