forked from MagicBane/Server
glass chance work
This commit is contained in:
@@ -102,8 +102,8 @@ public enum LootManager {
|
|||||||
float dropRate;
|
float dropRate;
|
||||||
mob.hasContractOrRune = true;
|
mob.hasContractOrRune = true;
|
||||||
|
|
||||||
//1 in 10,000 chance to drop glass
|
//1 in 1,000 chance to drop glass
|
||||||
if(ThreadLocalRandom.current().nextInt(1,10000) == 500){
|
if(ThreadLocalRandom.current().nextInt(1,1000) == 500){
|
||||||
ItemBase glassItem = rollRandomItem(126);
|
ItemBase glassItem = rollRandomItem(126);
|
||||||
if(glassItem != null) {
|
if(glassItem != null) {
|
||||||
MobLoot toAdd = new MobLoot(mob, glassItem, false);
|
MobLoot toAdd = new MobLoot(mob, glassItem, false);
|
||||||
|
|||||||
Reference in New Issue
Block a user