summaryrefslogtreecommitdiff
path: root/npc/functions/clear_vars.txt
diff options
context:
space:
mode:
authorJesusaves <cpntb1@ymail.com>2021-07-15 01:29:19 -0300
committerJesusaves <cpntb1@ymail.com>2021-07-15 01:29:19 -0300
commitdea723cd59fd08eae2ed235d3b9f0571ba0ff214 (patch)
treeec2075fcdc54357607d88ffee3c5d54a537521b6 /npc/functions/clear_vars.txt
parent691fd800c71ac982b9f02de36acbea5532b1a4c5 (diff)
downloadserverdata-dea723cd59fd08eae2ed235d3b9f0571ba0ff214.tar.gz
serverdata-dea723cd59fd08eae2ed235d3b9f0571ba0ff214.tar.bz2
serverdata-dea723cd59fd08eae2ed235d3b9f0571ba0ff214.tar.xz
serverdata-dea723cd59fd08eae2ed235d3b9f0571ba0ff214.zip
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.
Diffstat (limited to 'npc/functions/clear_vars.txt')
-rw-r--r--npc/functions/clear_vars.txt16
1 files changed, 16 insertions, 0 deletions
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
// ----------------------------------