From d968c4eca4e4f05c7c472fc03fa1fd7c3843486f Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Fri, 10 May 2024 18:12:51 -0500 Subject: [PATCH] Boxed Title --- src/engine/objects/CharacterTitle.java | 3 ++- src/engine/objects/PlayerCharacter.java | 5 ++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/CharacterTitle.java b/src/engine/objects/CharacterTitle.java index 796a7ef1..aa1c1524 100644 --- a/src/engine/objects/CharacterTitle.java +++ b/src/engine/objects/CharacterTitle.java @@ -21,7 +21,8 @@ public enum CharacterTitle { CSR_3(255, 0, 0, "CCR"), CSR_4(251, 181, 13, "CCR"), DEVELOPER(166, 153, 114, "Programmer"), - QA(88, 250, 244, "GIRLFRIEND"); + QA(88, 250, 244, "GIRLFRIEND"), + BOX(251, 181, 13, "[BOXED]"); int headerLength, footerLength; private ByteBuffer header; diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 6930d01e..ddba198c 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4869,10 +4869,13 @@ public class PlayerCharacter extends AbstractCharacter { continue; if (pc.equals(player)) continue; - if (pc.isBoxed == false) + if (pc.isBoxed == false) { + player.title = CharacterTitle.BOX; return true; + } } + player.title = CharacterTitle.NONE; return false; }catch(Exception e){ return false;