summaryrefslogtreecommitdiff
path: root/npc/functions/clear_vars.txt
diff options
context:
space:
mode:
Diffstat (limited to 'npc/functions/clear_vars.txt')
-rw-r--r--npc/functions/clear_vars.txt3
1 files changed, 1 insertions, 2 deletions
diff --git a/npc/functions/clear_vars.txt b/npc/functions/clear_vars.txt
index 89ca8c71..b5222e43 100644
--- a/npc/functions/clear_vars.txt
+++ b/npc/functions/clear_vars.txt
@@ -157,13 +157,12 @@ function script FlushVariables {
#NEW_LV+=(BaseLevel-#OLD_LV);
if (BaseLevel != #OLD_LV) {
#NEW_EXP=BaseExp;
- if (getvaultid()) ##01_TMWEXP=BaseExp; // (Techinically wrong)
} else {
#NEW_EXP+=BaseExp-#OLD_EXP;
- if (getvaultid()) ##01_TMWEXP=BaseExp-#OLD_EXP;
}
#OLD_EXP=0;
#OLD_LV=0;
+ if (getvaultid()) ##01_TMWEXP=#NEW_EXP; // (Techinically wrong)
}
return;
}