Create/Use PLAYER_XP_RATES For Easier Rate Changes

This commit is contained in:
Dark98
2021-12-13 01:21:44 +00:00
parent 83eb0be61a
commit c47d9a4b15
5 changed files with 42 additions and 33 deletions
@@ -7599,11 +7599,11 @@ public class DialogueHandler {
player.dialogueAction = 10000;
break;
case 10001:
sendNpcChat(2244, ChatEmotes.HAPPY_JOYFUL, "Please select the XP rate you'd like.", "this can be increased but not decreased later on.");
sendNpcChat(2244, ChatEmotes.HAPPY_JOYFUL, "Please select the XP rate you'd like.", "this can be increased, but not decreased later on.");
player.nextChat = 10002;
break;
case 10002:
sendOption("x1", "x2", "x5", "x10");
sendOption("x" + GameConstants.PLAYER_XP_RATES[0], "x" + GameConstants.PLAYER_XP_RATES[1], "x" + GameConstants.PLAYER_XP_RATES[2], "x" + GameConstants.PLAYER_XP_RATES[3]);
player.dialogueAction = 10002;
break;
case 10003:
@@ -7615,15 +7615,15 @@ public class DialogueHandler {
player.dialogueAction = 10004;
break;
case 10005:
sendOption("x2", "x5", "x10");
sendOption("x" + GameConstants.PLAYER_XP_RATES[1], "x" + GameConstants.PLAYER_XP_RATES[2], "x" + GameConstants.PLAYER_XP_RATES[3]);
player.dialogueAction = 10005;
break;
case 10006:
sendOption("x5", "x10");
sendOption("x" + GameConstants.PLAYER_XP_RATES[2], "x" + GameConstants.PLAYER_XP_RATES[3]);
player.dialogueAction = 10006;
break;
case 10007:
sendOption("x10", "Don't Change");
sendOption("x" + GameConstants.PLAYER_XP_RATES[3], "Don't Change");
player.dialogueAction = 10007;
break;
}