Compass..

This commit is contained in:
sigonasr2 2016-08-07 22:01:35 -05:00
parent 6f018ff69d
commit 7a0a75a519
2 changed files with 22 additions and 24 deletions

Binary file not shown.

View File

@ -323,30 +323,28 @@ public enum MonsterDifficulty {
TwosideKeeper.log("Adding "+gen_loot.toString()+" to loot table.", 4); TwosideKeeper.log("Adding "+gen_loot.toString()+" to loot table.", 4);
droplist.add(gen_loot); droplist.add(gen_loot);
double randomness = Math.random(); double randomness = Math.random();
if (isBoss) { if (this==MonsterDifficulty.HELLFIRE || this==MonsterDifficulty.ELITE) {
if (this==MonsterDifficulty.HELLFIRE || this==MonsterDifficulty.ELITE) { if (randomness<=0.5) {
if (randomness<=0.5) { ItemStack hunters_compass = new ItemStack(Material.COMPASS);
ItemStack hunters_compass = new ItemStack(Material.COMPASS); hunters_compass.addUnsafeEnchantment(Enchantment.LUCK, 1);
hunters_compass.addUnsafeEnchantment(Enchantment.LUCK, 1); ItemMeta m = hunters_compass.getItemMeta();
ItemMeta m = hunters_compass.getItemMeta(); m.setDisplayName(ChatColor.RED+"Hunter's Compass");
m.setDisplayName(ChatColor.RED+"Hunter's Compass"); List<String> lore = new ArrayList<String>();
List<String> lore = new ArrayList<String>(); lore.add("A compass for the true hunter.");
lore.add("A compass for the true hunter."); lore.add("Legends tell of hunters that have");
lore.add("Legends tell of hunters that have"); lore.add("come back with great treasures and");
lore.add("come back with great treasures and"); lore.add("much wealth from following the.");
lore.add("much wealth from following the."); lore.add("directions of the guided arrow.");
lore.add("directions of the guided arrow."); lore.add("");
lore.add(""); lore.add("You may need to calibrate it by");
lore.add("You may need to calibrate it by"); lore.add("holding it first.");
lore.add("holding it first."); lore.add("");
lore.add(""); lore.add("The compass appears to be slightly");
lore.add("The compass appears to be slightly"); lore.add("unstable...");
lore.add("unstable..."); m.setLore(lore);
m.setLore(lore); hunters_compass.setItemMeta(m);
hunters_compass.setItemMeta(m); hunters_compass.addUnsafeEnchantment(Enchantment.LUCK, 1);
hunters_compass.addUnsafeEnchantment(Enchantment.LUCK, 1); droplist.add(hunters_compass);
droplist.add(hunters_compass);
}
} }
} }
randomness = Math.random(); randomness = Math.random();