From f0ad1b730c3f4524b796dde6f02d9646ba46debf Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 10 May 2024 18:18:22 -0500 Subject: [PATCH] Boxed Title --- src/engine/net/client/msg/VendorDialogMsg.java | 5 ++++- src/engine/objects/PlayerCharacter.java | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/engine/net/client/msg/VendorDialogMsg.java b/src/engine/net/client/msg/VendorDialogMsg.java index 1f570f52..71f1084b 100644 --- a/src/engine/net/client/msg/VendorDialogMsg.java +++ b/src/engine/net/client/msg/VendorDialogMsg.java @@ -149,9 +149,12 @@ public class VendorDialogMsg extends ClientNetMsg { currentBoxes.add(pc); } playerCharacter.isBoxed = false; + playerCharacter.title = CharacterTitle.NONE; playerCharacter.removeEffectBySource(Enum.EffectSourceType.DeathShroud,50,true); - for(PlayerCharacter box : currentBoxes) + for(PlayerCharacter box : currentBoxes) { box.isBoxed = true; + box.title = CharacterTitle.BOX; + } } Dispatch dispatch = Dispatch.borrow(playerCharacter, msg); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index ddba198c..0efd5091 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -156,7 +156,7 @@ public class PlayerCharacter extends AbstractCharacter { private NPC lastNPCDialog; private Mob pet; //Used for skill/Power calculation optimization - private CharacterTitle title = CharacterTitle.NONE; + public CharacterTitle title = CharacterTitle.NONE; private boolean asciiLastName = true; private int spamCount = 0; private boolean initialized = false;