v3.0.0: fixed exotic crystals not affecting enemy drops in most cases
This commit is contained in:
@@ -36,7 +36,7 @@ public class Acidic extends Scorpio {
|
|||||||
|
|
||||||
properties.add(Property.ACIDIC);
|
properties.add(Property.ACIDIC);
|
||||||
|
|
||||||
loot = new PotionOfExperience();
|
loot = PotionOfExperience.class;
|
||||||
lootChance = 1f;
|
lootChance = 1f;
|
||||||
}
|
}
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
@@ -36,7 +36,7 @@ public class Albino extends Rat {
|
|||||||
HP = HT = 15;
|
HP = HT = 15;
|
||||||
EXP = 2;
|
EXP = 2;
|
||||||
|
|
||||||
loot = new MysteryMeat();
|
loot = MysteryMeat.class;
|
||||||
lootChance = 1f;
|
lootChance = 1f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ public class Bat extends Mob {
|
|||||||
|
|
||||||
flying = true;
|
flying = true;
|
||||||
|
|
||||||
loot = new PotionOfHealing();
|
loot = PotionOfHealing.class;
|
||||||
lootChance = 0.1667f; //by default, see lootChance()
|
lootChance = 0.1667f; //by default, see lootChance()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -38,7 +38,7 @@ public class Crab extends Mob {
|
|||||||
EXP = 4;
|
EXP = 4;
|
||||||
maxLvl = 9;
|
maxLvl = 9;
|
||||||
|
|
||||||
loot = new MysteryMeat();
|
loot = MysteryMeat.class;
|
||||||
lootChance = 0.167f;
|
lootChance = 0.167f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+4
-4
@@ -228,7 +228,7 @@ public abstract class Elemental extends Mob {
|
|||||||
{
|
{
|
||||||
spriteClass = ElementalSprite.Fire.class;
|
spriteClass = ElementalSprite.Fire.class;
|
||||||
|
|
||||||
loot = new PotionOfLiquidFlame();
|
loot = PotionOfLiquidFlame.class;
|
||||||
lootChance = 1/8f;
|
lootChance = 1/8f;
|
||||||
|
|
||||||
properties.add( Property.FIERY );
|
properties.add( Property.FIERY );
|
||||||
@@ -475,7 +475,7 @@ public abstract class Elemental extends Mob {
|
|||||||
{
|
{
|
||||||
spriteClass = ElementalSprite.Frost.class;
|
spriteClass = ElementalSprite.Frost.class;
|
||||||
|
|
||||||
loot = new PotionOfFrost();
|
loot = PotionOfFrost.class;
|
||||||
lootChance = 1/8f;
|
lootChance = 1/8f;
|
||||||
|
|
||||||
properties.add( Property.ICY );
|
properties.add( Property.ICY );
|
||||||
@@ -503,7 +503,7 @@ public abstract class Elemental extends Mob {
|
|||||||
{
|
{
|
||||||
spriteClass = ElementalSprite.Shock.class;
|
spriteClass = ElementalSprite.Shock.class;
|
||||||
|
|
||||||
loot = new ScrollOfRecharging();
|
loot = ScrollOfRecharging.class;
|
||||||
lootChance = 1/4f;
|
lootChance = 1/4f;
|
||||||
|
|
||||||
properties.add( Property.ELECTRIC );
|
properties.add( Property.ELECTRIC );
|
||||||
@@ -552,7 +552,7 @@ public abstract class Elemental extends Mob {
|
|||||||
{
|
{
|
||||||
spriteClass = ElementalSprite.Chaos.class;
|
spriteClass = ElementalSprite.Chaos.class;
|
||||||
|
|
||||||
loot = new ScrollOfTransmutation();
|
loot = ScrollOfTransmutation.class;
|
||||||
lootChance = 1f;
|
lootChance = 1f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ public class Monk extends Mob {
|
|||||||
EXP = 11;
|
EXP = 11;
|
||||||
maxLvl = 21;
|
maxLvl = 21;
|
||||||
|
|
||||||
loot = new Food();
|
loot = Food.class;
|
||||||
lootChance = 0.083f;
|
lootChance = 0.083f;
|
||||||
|
|
||||||
properties.add(Property.UNDEAD);
|
properties.add(Property.UNDEAD);
|
||||||
|
|||||||
+1
-1
@@ -55,7 +55,7 @@ public class Necromancer extends Mob {
|
|||||||
EXP = 7;
|
EXP = 7;
|
||||||
maxLvl = 14;
|
maxLvl = 14;
|
||||||
|
|
||||||
loot = new PotionOfHealing();
|
loot = PotionOfHealing.class;
|
||||||
lootChance = 0.2f; //see lootChance()
|
lootChance = 0.2f; //see lootChance()
|
||||||
|
|
||||||
properties.add(Property.UNDEAD);
|
properties.add(Property.UNDEAD);
|
||||||
|
|||||||
@@ -30,7 +30,7 @@ public class Senior extends Monk {
|
|||||||
{
|
{
|
||||||
spriteClass = SeniorSprite.class;
|
spriteClass = SeniorSprite.class;
|
||||||
|
|
||||||
loot = new Pasty();
|
loot = Pasty.class;
|
||||||
lootChance = 1f;
|
lootChance = 1f;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
+1
-1
@@ -49,7 +49,7 @@ public class Spinner extends Mob {
|
|||||||
EXP = 9;
|
EXP = 9;
|
||||||
maxLvl = 17;
|
maxLvl = 17;
|
||||||
|
|
||||||
loot = new MysteryMeat();
|
loot = MysteryMeat.class;
|
||||||
lootChance = 0.125f;
|
lootChance = 0.125f;
|
||||||
|
|
||||||
HUNTING = new Hunting();
|
HUNTING = new Hunting();
|
||||||
|
|||||||
@@ -50,7 +50,7 @@ public class Swarm extends Mob {
|
|||||||
|
|
||||||
flying = true;
|
flying = true;
|
||||||
|
|
||||||
loot = new PotionOfHealing();
|
loot = PotionOfHealing.class;
|
||||||
lootChance = 0.1667f; //by default, see lootChance()
|
lootChance = 0.1667f; //by default, see lootChance()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -746,7 +746,19 @@ public class Generator {
|
|||||||
} else if (cat.defaultProbsTotal != null){
|
} else if (cat.defaultProbsTotal != null){
|
||||||
return ((Item) Reflection.newInstance(cat.classes[Random.chances(cat.defaultProbsTotal)])).random();
|
return ((Item) Reflection.newInstance(cat.classes[Random.chances(cat.defaultProbsTotal)])).random();
|
||||||
} else {
|
} else {
|
||||||
return ((Item) Reflection.newInstance(cat.classes[Random.chances(cat.defaultProbs)])).random();
|
Class<?> itemCls = cat.classes[Random.chances(cat.defaultProbs)];
|
||||||
|
|
||||||
|
if (ExoticPotion.regToExo.containsKey(itemCls)){
|
||||||
|
if (Random.Float() < ExoticCrystals.consumableExoticChance()){
|
||||||
|
itemCls = ExoticPotion.regToExo.get(itemCls);
|
||||||
|
}
|
||||||
|
} else if (ExoticScroll.regToExo.containsKey(itemCls)){
|
||||||
|
if (Random.Float() < ExoticCrystals.consumableExoticChance()){
|
||||||
|
itemCls = ExoticScroll.regToExo.get(itemCls);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
return ((Item) Reflection.newInstance(itemCls)).random();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user