Changed trader restocking to use a new object, added 20% boat speed to vynora, started on wood essence

This commit is contained in:
mstoppelli
2018-06-02 21:53:44 -04:00
parent 00d0e8cb6d
commit 361432ec1e
17 changed files with 293 additions and 20 deletions

View File

@@ -128,6 +128,11 @@ public class LootBounty {
corpse.insertItem(cache);
i--;
}
Item item = ItemFactory.createItem(ItemUtil.getMysteryEggID(), 50, (byte)1, "");
if(random.nextInt(100) < 25) {
item.setRarity((byte)3);
}
corpse.insertItem(item);
if(mob.isDragon()) {
int mTemplate = mob.getTemplate().getTemplateId();
int lootTemplate = ItemList.drakeHide;
@@ -279,7 +284,7 @@ public class LootBounty {
int[] caches = {
TreasureMapCache.templateId,
GemCache.templateId,
RiftCache.templateId
CrystalCache.templateId
};
int cacheSelected = random.nextInt(3);
Item item = ItemFactory.createItem(caches[cacheSelected], 20 + random.nextInt(40), "");