mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-27 19:24:44 +02:00
Command cleanup - Fishing. Added 2 new fishing permissions nodes.
This commit is contained in:
@ -204,9 +204,8 @@ public class Combat {
|
||||
dmgBonusPercent = 2;
|
||||
}
|
||||
|
||||
/* Every 100 skill levels Archery gains 20% damage bonus, set that here */
|
||||
/* Every 50 skill levels Archery gains 10% damage bonus, set that here */
|
||||
//TODO: Work in progress for balancing out Archery, will work on it more later...
|
||||
//TODO: Right now this is calculating a 10% bonus every 50 levels, not 20% every 100. Is this intended?
|
||||
int archeryBonus = (int)(event.getDamage() * dmgBonusPercent);
|
||||
event.setDamage(event.getDamage() + archeryBonus);
|
||||
}
|
||||
|
@ -108,6 +108,14 @@ public class Permissions {
|
||||
return player.hasPermission("mcmmo.ability.fishing.shakemob");
|
||||
}
|
||||
|
||||
public boolean fishingTreasures(Player player) {
|
||||
return player.hasPermission("mcmmo.ability.fishing.treasures");
|
||||
}
|
||||
|
||||
public boolean fishingMagic(Player player) {
|
||||
return player.hasPermission("mcmmo.ability.fishing.magic");
|
||||
}
|
||||
|
||||
/*
|
||||
* MCMMO.ABILITY.MINING.*
|
||||
*/
|
||||
|
Reference in New Issue
Block a user