Browse Source

Boxed Title

lakebane-master
FatBoy-DOTC 6 months ago
parent
commit
d968c4eca4
  1. 3
      src/engine/objects/CharacterTitle.java
  2. 5
      src/engine/objects/PlayerCharacter.java

3
src/engine/objects/CharacterTitle.java

@ -21,7 +21,8 @@ public enum CharacterTitle {
CSR_3(255, 0, 0, "CCR"), CSR_3(255, 0, 0, "CCR"),
CSR_4(251, 181, 13, "CCR"), CSR_4(251, 181, 13, "CCR"),
DEVELOPER(166, 153, 114, "Programmer"), DEVELOPER(166, 153, 114, "Programmer"),
QA(88, 250, 244, "GIRLFRIEND"); QA(88, 250, 244, "GIRLFRIEND"),
BOX(251, 181, 13, "[BOXED]");
int headerLength, footerLength; int headerLength, footerLength;
private ByteBuffer header; private ByteBuffer header;

5
src/engine/objects/PlayerCharacter.java

@ -4869,10 +4869,13 @@ public class PlayerCharacter extends AbstractCharacter {
continue; continue;
if (pc.equals(player)) if (pc.equals(player))
continue; continue;
if (pc.isBoxed == false) if (pc.isBoxed == false) {
player.title = CharacterTitle.BOX;
return true; return true;
}
} }
player.title = CharacterTitle.NONE;
return false; return false;
}catch(Exception e){ }catch(Exception e){
return false; return false;

Loading…
Cancel
Save