Minor fixes to loot table.
This commit is contained in:
parent
fafb4652a4
commit
11009aad5b
Binary file not shown.
@ -324,27 +324,29 @@ public enum MonsterDifficulty {
|
|||||||
droplist.add(gen_loot);
|
droplist.add(gen_loot);
|
||||||
double randomness = Math.random();
|
double randomness = Math.random();
|
||||||
if (isBoss) {
|
if (isBoss) {
|
||||||
if (randomness<=0.2) {
|
if (this==MonsterDifficulty.HELLFIRE || this==MonsterDifficulty.ELITE) {
|
||||||
ItemStack hunters_compass = new ItemStack(Material.COMPASS);
|
if (randomness<=0.5) {
|
||||||
hunters_compass.addUnsafeEnchantment(Enchantment.LUCK, 1);
|
ItemStack hunters_compass = new ItemStack(Material.COMPASS);
|
||||||
ItemMeta m = hunters_compass.getItemMeta();
|
hunters_compass.addUnsafeEnchantment(Enchantment.LUCK, 1);
|
||||||
m.setDisplayName(ChatColor.RED+"Hunter's Compass");
|
ItemMeta m = hunters_compass.getItemMeta();
|
||||||
List<String> lore = new ArrayList<String>();
|
m.setDisplayName(ChatColor.RED+"Hunter's Compass");
|
||||||
lore.add("A compass for the true hunter.");
|
List<String> lore = new ArrayList<String>();
|
||||||
lore.add("Legends tell of hunters that have");
|
lore.add("A compass for the true hunter.");
|
||||||
lore.add("come back with great treasures and");
|
lore.add("Legends tell of hunters that have");
|
||||||
lore.add("much wealth from following the.");
|
lore.add("come back with great treasures and");
|
||||||
lore.add("directions of the guided arrow.");
|
lore.add("much wealth from following the.");
|
||||||
lore.add("");
|
lore.add("directions of the guided arrow.");
|
||||||
lore.add("You may need to calibrate it by");
|
lore.add("");
|
||||||
lore.add("holding it first.");
|
lore.add("You may need to calibrate it by");
|
||||||
lore.add("");
|
lore.add("holding it first.");
|
||||||
lore.add("The compass appears to be slightly");
|
lore.add("");
|
||||||
lore.add("unstable...");
|
lore.add("The compass appears to be slightly");
|
||||||
m.setLore(lore);
|
lore.add("unstable...");
|
||||||
hunters_compass.setItemMeta(m);
|
m.setLore(lore);
|
||||||
hunters_compass.addUnsafeEnchantment(Enchantment.LUCK, 1);
|
hunters_compass.setItemMeta(m);
|
||||||
droplist.add(hunters_compass);
|
hunters_compass.addUnsafeEnchantment(Enchantment.LUCK, 1);
|
||||||
|
droplist.add(hunters_compass);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
randomness = Math.random();
|
randomness = Math.random();
|
||||||
@ -426,7 +428,7 @@ public enum MonsterDifficulty {
|
|||||||
}
|
}
|
||||||
if (ls.GetMaterial()==Material.POTION) {
|
if (ls.GetMaterial()==Material.POTION) {
|
||||||
//Create a Strengthing Vial.
|
//Create a Strengthing Vial.
|
||||||
if (Math.random()<=0.1) {
|
if (Math.random()<=0.85) {
|
||||||
ItemStack item = new ItemStack(Material.POTION);
|
ItemStack item = new ItemStack(Material.POTION);
|
||||||
PotionMeta pm = (PotionMeta)item.getItemMeta();
|
PotionMeta pm = (PotionMeta)item.getItemMeta();
|
||||||
pm.addCustomEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE,20*60*15,(int)(Math.random()*20+20)), true);
|
pm.addCustomEffect(new PotionEffect(PotionEffectType.INCREASE_DAMAGE,20*60*15,(int)(Math.random()*20+20)), true);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user