Browse Source

xp and conc granted for noob

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

7
src/engine/InterestManagement/InterestManager.java

@ -548,14 +548,11 @@ public enum InterestManager implements Runnable { @@ -548,14 +548,11 @@ public enum InterestManager implements Runnable {
}
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){
if(!player.receivedConc){
MobLoot ml = new MobLoot(player,itemBase,false);
ml.promoteToItem(player);
player.receivedConc = true;
}
}
if(player.getPromotionClass() == null){

2
src/engine/objects/PlayerCharacter.java

@ -177,6 +177,8 @@ public class PlayerCharacter extends AbstractCharacter { @@ -177,6 +177,8 @@ public class PlayerCharacter extends AbstractCharacter {
public boolean isBoxed = false;
public boolean receivedConc = false;
/**
* No Id Constructor
*/

Loading…
Cancel
Save