From 64d9401089adba9c981ce4e2642519780b7dca4b Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Thu, 6 Mar 2025 18:22:49 -0600 Subject: [PATCH] PVE flag --- src/engine/objects/CharacterTitle.java | 1 + src/engine/objects/PlayerCharacter.java | 13 +++++++++++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/src/engine/objects/CharacterTitle.java b/src/engine/objects/CharacterTitle.java index 796a7ef1..ea6a8a08 100644 --- a/src/engine/objects/CharacterTitle.java +++ b/src/engine/objects/CharacterTitle.java @@ -21,6 +21,7 @@ public enum CharacterTitle { CSR_3(255, 0, 0, "CCR"), CSR_4(251, 181, 13, "CCR"), DEVELOPER(166, 153, 114, "Programmer"), + PVE(166, 153, 114, "PvE"), QA(88, 250, 244, "GIRLFRIEND"); int headerLength, footerLength; diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index 75caec48..3e5ef8b9 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -5198,8 +5198,17 @@ public class PlayerCharacter extends AbstractCharacter { } } - if (this.isBoxed && !this.containsEffect(1672601862)) { - PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); + if (this.isBoxed){// && !this.containsEffect(1672601862)) { + //PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); + if(!this.title.equals(CharacterTitle.PVE)){ + this.title = CharacterTitle.PVE; + InterestManager.forceLoad(this); + } + }else { + if (!this.title.equals(CharacterTitle.NONE)) { + this.title = CharacterTitle.NONE; + InterestManager.forceLoad(this); + } } } if (this.isFlying()) {