Browse Source

Boxed Title

lakebane-master
FatBoy-DOTC 8 months ago
parent
commit
f0ad1b730c
  1. 5
      src/engine/net/client/msg/VendorDialogMsg.java
  2. 2
      src/engine/objects/PlayerCharacter.java

5
src/engine/net/client/msg/VendorDialogMsg.java

@ -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);

2
src/engine/objects/PlayerCharacter.java

@ -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;

Loading…
Cancel
Save