Start mobequip refactor
This commit is contained in:
@@ -87,14 +87,14 @@ public class SimulateBootyCmd extends AbstractDevCmd {
|
||||
} catch (Exception ex) {
|
||||
failures++;
|
||||
}
|
||||
if (mob.getEquip() != null) {
|
||||
for (Item me : mob.getEquip().values()) {
|
||||
if (mob.charItemManager.equipped.isEmpty() == false) {
|
||||
for (Item me : mob.charItemManager.equipped.values()) {
|
||||
|
||||
if (me.getDropChance() == 0)
|
||||
if (me.drop_chance == 0)
|
||||
continue;
|
||||
|
||||
float equipmentRoll = ThreadLocalRandom.current().nextInt(99) + 1;
|
||||
float dropChance = me.getDropChance() * 100;
|
||||
float dropChance = me.drop_chance * 100;
|
||||
|
||||
if (equipmentRoll > (dropChance))
|
||||
continue;
|
||||
|
||||
Reference in New Issue
Block a user