Browse Source

start with conc

lakebane-master
FatBoy-DOTC 7 months ago
parent
commit
6b07058dd4
  1. 12
      src/engine/objects/PlayerCharacter.java

12
src/engine/objects/PlayerCharacter.java

@ -4807,11 +4807,19 @@ public class PlayerCharacter extends AbstractCharacter { @@ -4807,11 +4807,19 @@ public class PlayerCharacter extends AbstractCharacter {
//}
if(this.isEnteredWorld() && this.isActive() && this.getLevel() < 10){
this.setLevel((short) 10);
MobLoot conc = new MobLoot(this,ItemBase.getItemBase(980066),false);
boolean hasConc = false;
for(Item i : this.getCharItemManager().getInventory()){
if(i.getItemBaseID() == 980066){
hasConc = true;
}
}
if(!hasConc) {
MobLoot conc = new MobLoot(this, ItemBase.getItemBase(980066), false);
this.getCharItemManager().addItemToInventory(conc);
this.getCharItemManager().addItemToInventory(conc.promoteToItem(this),1);
this.getCharItemManager().addItemToInventory(conc.promoteToItem(this), 1);
this.getCharItemManager().updateInventory();
}
}
} catch (Exception e) {
Logger.error(e);

Loading…
Cancel
Save