When killing bosses, even if you get bones you get an announcement call, even when not a rare drop.
if (IntStream.of(bosses).anyMatch(id -> id == npc.npcType)) {
PlayerHandler.nonNullStream()
.filter(p -> p.distanceToPoint(player.absX, player.absY) < 10 && p.heightLevel == player.heightLevel)
.forEach(p -> {
if (item.getAmount() > 100)
p.sendMessage("@mag@" + Misc.formatPlayerName(player.playerName) + " received a rare drop: " + Misc.format(item.getAmount()) + " x " + Item.getItemName(item.getId()) + ", congratulations.");
else
p.sendMessage("@mag@" + Misc.formatPlayerName(player.playerName) + " received a rare drop: " + Item.getItemName(item.getId()) + ", congratulations.");
How do I change this so that only rare drops show?