Boxed Title

This commit is contained in:
2024-05-10 18:18:22 -05:00
parent d968c4eca4
commit f0ad1b730c
2 changed files with 5 additions and 2 deletions
@@ -149,9 +149,12 @@ public class VendorDialogMsg extends ClientNetMsg {
currentBoxes.add(pc); currentBoxes.add(pc);
} }
playerCharacter.isBoxed = false; playerCharacter.isBoxed = false;
playerCharacter.title = CharacterTitle.NONE;
playerCharacter.removeEffectBySource(Enum.EffectSourceType.DeathShroud,50,true); playerCharacter.removeEffectBySource(Enum.EffectSourceType.DeathShroud,50,true);
for(PlayerCharacter box : currentBoxes) for(PlayerCharacter box : currentBoxes) {
box.isBoxed = true; box.isBoxed = true;
box.title = CharacterTitle.BOX;
}
} }
Dispatch dispatch = Dispatch.borrow(playerCharacter, msg); Dispatch dispatch = Dispatch.borrow(playerCharacter, msg);
DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY); DispatchMessage.dispatchMsgDispatch(dispatch, DispatchChannel.SECONDARY);
+1 -1
View File
@@ -156,7 +156,7 @@ public class PlayerCharacter extends AbstractCharacter {
private NPC lastNPCDialog; private NPC lastNPCDialog;
private Mob pet; private Mob pet;
//Used for skill/Power calculation optimization //Used for skill/Power calculation optimization
private CharacterTitle title = CharacterTitle.NONE; public CharacterTitle title = CharacterTitle.NONE;
private boolean asciiLastName = true; private boolean asciiLastName = true;
private int spamCount = 0; private int spamCount = 0;
private boolean initialized = false; private boolean initialized = false;