Browse Source

xp and conc granted for noob

lakebane-master
FatBoy-DOTC 11 months ago
parent
commit
2a06015a0e
  1. 11
      src/engine/InterestManagement/InterestManager.java
  2. 11
      src/engine/objects/PlayerCharacter.java

11
src/engine/InterestManagement/InterestManager.java

@ -546,8 +546,17 @@ public enum InterestManager implements Runnable { @@ -546,8 +546,17 @@ public enum InterestManager implements Runnable {
return;
}
}
if(player.getPromotionClass() == null){
if(player.getLevel() < 25){
ItemBase itemBase = ItemBase.getItemBase(980066);
boolean hasConc = false;
for(Item item : player.getCharItemManager().getInventory())
if(item.getItemBase().equals(itemBase))
hasConc = true;
if(!hasConc){
MobLoot ml = new MobLoot(player,itemBase,false);
ml.promoteToItem(player);
}
}
if(player.getPromotionClass() == null){
player.grantXP(200000 - player.getExp());

11
src/engine/objects/PlayerCharacter.java

@ -2229,17 +2229,6 @@ public class PlayerCharacter extends AbstractCharacter { @@ -2229,17 +2229,6 @@ public class PlayerCharacter extends AbstractCharacter {
// Warehouse this event
CharacterRecord.updatePromotionClass(this);
// give buffs
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496064712,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496097480,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,495999176,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496031944,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496195784,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496228552,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,294901960,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,496617320,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,498982927,40,false);
PowersManager.applyPower(this,this,Vector3fImmutable.ZERO,441156479,40,false);
return true;
}

Loading…
Cancel
Save