forked from MagicBane/Server
xp and conc granted for noob
This commit is contained in:
@@ -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());
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user