Minor fixes to loot table.
This commit is contained in:
parent
fafb4652a4
commit
11009aad5b
Binary file not shown.
@ -324,7 +324,8 @@ 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) {
|
||||||
|
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();
|
||||||
@ -347,6 +348,7 @@ public enum MonsterDifficulty {
|
|||||||
droplist.add(hunters_compass);
|
droplist.add(hunters_compass);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
randomness = Math.random();
|
randomness = Math.random();
|
||||||
TwosideKeeper.log(ChatColor.DARK_GREEN+" Randomness is "+randomness, 4);
|
TwosideKeeper.log(ChatColor.DARK_GREEN+" Randomness is "+randomness, 4);
|
||||||
if (randomness<=0.2) {
|
if (randomness<=0.2) {
|
||||||
@ -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