mirror of
https://gitlab.com/2009scape/2009scape.git
synced 2025-12-09 16:45:44 -07:00
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:
parent
66445f61a5
commit
a7b5e77318
1 changed files with 3 additions and 3 deletions
|
|
@ -151,15 +151,15 @@ class MiningListener : InteractionListener {
|
||||||
// If player is wearing Varrock armour from diary, roll chance at extra ore
|
// If player is wearing Varrock armour from diary, roll chance at extra ore
|
||||||
if (!isMiningEssence && player.achievementDiaryManager.getDiary(DiaryType.VARROCK).level != -1) {
|
if (!isMiningEssence && player.achievementDiaryManager.getDiary(DiaryType.VARROCK).level != -1) {
|
||||||
when (reward) {
|
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
|
amount += 1
|
||||||
sendMessage(player,"The Varrock armour allows you to mine an additional ore.")
|
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
|
amount += 1
|
||||||
sendMessage(player, "The Varrock armour allows you to mine an additional ore.")
|
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
|
amount += 1
|
||||||
sendMessage(player, "The Varrock armour allows you to mine an additional ore.")
|
sendMessage(player, "The Varrock armour allows you to mine an additional ore.")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue