From 6cf27050135cbdf6f1c88474f32a501e64e57933 Mon Sep 17 00:00:00 2001 From: FatBoy-DOTC Date: Tue, 30 Apr 2024 19:01:31 -0500 Subject: [PATCH] better DS application --- src/engine/objects/PlayerCharacter.java | 32 +++++++++++++------------ 1 file changed, 17 insertions(+), 15 deletions(-) diff --git a/src/engine/objects/PlayerCharacter.java b/src/engine/objects/PlayerCharacter.java index ffafad1b..ad8c31f3 100644 --- a/src/engine/objects/PlayerCharacter.java +++ b/src/engine/objects/PlayerCharacter.java @@ -4804,26 +4804,28 @@ public class PlayerCharacter extends AbstractCharacter { this.safeZone = this.isInSafeZone(); - if(this.isBoxed == false){ - this. isBoxed = checkIfBoxed(this); - } - - if(this.isBoxed && this.containsEffect(1672601862) == false) {//Deathshroud - PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); - } //if(this.isBoxed && this.containsEffect(429611355) == false) {//pathfinding // PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 429611355, 40, false); //} - if(this.isEnteredWorld() && this.isActive() && this.getLevel() < 10){ - this.setLevel((short) 10); - boolean hasConc = false; - for(Item i : this.getCharItemManager().getInventory()){ - if(i.getItemBaseID() == 980066){ - hasConc = true; + if(this.isEnteredWorld() && this.isActive()){ + if( this.getLevel() < 10) { + this.setLevel((short) 10); + boolean hasConc = false; + for (Item i : this.getCharItemManager().getInventory()) { + if (i.getItemBaseID() == 980066) { + hasConc = true; + } } + if (!hasConc) { + ItemFactory.fillInventory(this, 980066, 1); + } + } + if(this.isBoxed == false){ + this. isBoxed = checkIfBoxed(this); } - if(!hasConc) { - ItemFactory.fillInventory(this, 980066, 1); + + if(this.isBoxed && this.containsEffect(1672601862) == false) {//Deathshroud + PowersManager.applyPower(this, this, Vector3fImmutable.ZERO, 1672601862, 40, false); } }