start with conc

This commit is contained in:
2024-04-12 22:55:18 -05:00
parent 1f700cda4c
commit 6b07058dd4
+12 -4
View File
@@ -4807,10 +4807,18 @@ 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);
this.getCharItemManager().addItemToInventory(conc);
this.getCharItemManager().addItemToInventory(conc.promoteToItem(this),1);
this.getCharItemManager().updateInventory();
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().updateInventory();
}
}
} catch (Exception e) {