Adjusted Varrock armour bonus to be more authentic - 4% for ores up to coal, 3% for ores gold to mithril with tier 2 or 3 and 2% for adamantite with tier 3
This commit is contained in:
@@ -151,15 +151,15 @@ class MiningListener : InteractionListener {
|
||||
// If player is wearing Varrock armour from diary, roll chance at extra ore
|
||||
if (!isMiningEssence && player.achievementDiaryManager.getDiary(DiaryType.VARROCK).level != -1) {
|
||||
when (reward) {
|
||||
Items.CLAY_434, Items.COPPER_ORE_436, Items.TIN_ORE_438, Items.LIMESTONE_3211, Items.BLURITE_ORE_668, Items.IRON_ORE_440, Items.ELEMENTAL_ORE_2892, Items.SILVER_ORE_442, Items.COAL_453 -> if (player.achievementDiaryManager.armour >= 0 && RandomFunction.random(100) <= 10) {
|
||||
Items.CLAY_434, Items.COPPER_ORE_436, Items.TIN_ORE_438, Items.LIMESTONE_3211, Items.BLURITE_ORE_668, Items.IRON_ORE_440, Items.ELEMENTAL_ORE_2892, Items.SILVER_ORE_442, Items.COAL_453 -> if (player.achievementDiaryManager.armour >= 0 && RandomFunction.random(100) < 4) {
|
||||
amount += 1
|
||||
sendMessage(player,"The Varrock armour allows you to mine an additional ore.")
|
||||
}
|
||||
Items.GOLD_ORE_444, Items.GRANITE_500G_6979, Items.GRANITE_2KG_6981, Items.GRANITE_5KG_6983, Items.MITHRIL_ORE_447 -> if (player.achievementDiaryManager.armour >= 1 && RandomFunction.random(100) <= 10) {
|
||||
Items.GOLD_ORE_444, Items.GRANITE_500G_6979, Items.GRANITE_2KG_6981, Items.GRANITE_5KG_6983, Items.MITHRIL_ORE_447 -> if (player.achievementDiaryManager.armour >= 1 && RandomFunction.random(100) < 3) {
|
||||
amount += 1
|
||||
sendMessage(player, "The Varrock armour allows you to mine an additional ore.")
|
||||
}
|
||||
Items.ADAMANTITE_ORE_449 -> if (player.achievementDiaryManager.armour >= 2 && RandomFunction.random(100) <= 10) {
|
||||
Items.ADAMANTITE_ORE_449 -> if (player.achievementDiaryManager.armour >= 2 && RandomFunction.random(100) < 2) {
|
||||
amount += 1
|
||||
sendMessage(player, "The Varrock armour allows you to mine an additional ore.")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user