GE dialogue is now sex-aware

This commit is contained in:
Beck
2026-03-30 06:59:45 +00:00
committed by Ryan
parent 97b5892eac
commit 2e1ecd845b
@@ -52,9 +52,10 @@ public final class GrandExchangeClerk extends DialoguePlugin {
@Override @Override
public boolean handle(int interfaceId, int buttonId) { public boolean handle(int interfaceId, int buttonId) {
String salutation = player.isMale() ? "sir" : "madam";
switch (stage) { switch (stage) {
case 0: case 0:
npc("Good day to you, sir, How can I help?"); npc("Good day to you, " + salutation + ", how can I help?");
stage = 1; stage = 1;
break; break;
case 1: case 1:
@@ -80,13 +81,13 @@ public final class GrandExchangeClerk extends DialoguePlugin {
stage = 40; stage = 40;
break; break;
case 5: case 5:
interpreter.sendDialogues(player, FacialExpression.HALF_GUILTY, "I'm fine actually."); interpreter.sendDialogues(player, FacialExpression.HALF_GUILTY, "I'm fine, actually.");
stage = 50; stage = 50;
break; break;
} }
break; break;
case 10: case 10:
npc("Only too happy to help you, sir."); npc("Only too happy to help you, " + salutation + ".");
stage = 11; stage = 11;
break; break;
case 11: case 11:
@@ -94,7 +95,7 @@ public final class GrandExchangeClerk extends DialoguePlugin {
StockMarket.openFor(player); StockMarket.openFor(player);
break; break;
case 20: case 20:
npc("As you wish, sir."); npc("As you wish, " + salutation + ".");
stage = 21; stage = 21;
break; break;
case 21: case 21:
@@ -110,7 +111,7 @@ public final class GrandExchangeClerk extends DialoguePlugin {
GrandExchangeRecords.getInstance(player).openHistoryLog(player); GrandExchangeRecords.getInstance(player).openHistoryLog(player);
break; break;
case 40: case 40:
npc("It would be my pleasure, sir."); npc("It would be my pleasure, " + salutation + ".");
stage = 41; stage = 41;
break; break;
case 41: case 41:
@@ -118,7 +119,7 @@ public final class GrandExchangeClerk extends DialoguePlugin {
ExchangeItemSets.openFor(player); ExchangeItemSets.openFor(player);
break; break;
case 50: case 50:
npc("If you say so, sir."); npc("If you say so, " + salutation + ".");
stage = 51; stage = 51;
break; break;
case 51: case 51: