PhatLoots
PhatLoots copied to clipboard
Collection rolls twice in a row
Why does it roll twice in a row for one loot here? Seems like a bug.
https://github.com/RednedEpic/PhatLoots/blob/b5243a1545f74acfa66e963452c8f1ca3e5acf85/src/com/codisimus/plugins/phatloots/loot/LootCollection.java#L124
The multiple Rolls if im not mistaken is how Looting is handled by phatloots.
Maybe I am stupid, but why though?
Because looting enchant is designed to reroll loot tables in per level iirc
@finder1793 i mean I don't see any connection to looting enchant in the code I linked. It only gives you loot if it succeeds the roll twice in a row.
//Get the looting bonus of the fishing pole
ItemStack pole = event.getPlayer().getInventory().getItemInMainHand();
double lootingBonus = PhatLoot.lootingBonusPerLvl * pole.getEnchantmentLevel(Enchantment.LOOT_BONUS_MOBS);
^showing how looting bonus is applied
so lets say I have a player with permission
phatloots.bonus.6
and they had a fishing rod with a level 3 enchant it would roll a total of 18 times as my cumulative loot bonus in this case would be 18 as it is 6*3
Just one of those cute hidden features. one could even make a short booster system by granting all players phatloots.bonus.2 for a certain duration
@finder1793
Not what i mean. Check out line 124 and 125. They are the same.