mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-30 00:56:47 +01:00
Changed Iron Grip slightly. Tweaked Inspect to prevent same bug with {0}
showing up in front of power level.
This commit is contained in:
parent
e3267f2e0c
commit
4f1ee03fe8
@ -48,7 +48,7 @@ public class InspectCommand implements CommandExecutor {
|
|||||||
CommandHelper.printGatheringSkills(player, sender);
|
CommandHelper.printGatheringSkills(player, sender);
|
||||||
CommandHelper.printCombatSkills(player, sender);
|
CommandHelper.printCombatSkills(player, sender);
|
||||||
CommandHelper.printMiscSkills(player, sender);
|
CommandHelper.printMiscSkills(player, sender);
|
||||||
sender.sendMessage(mcLocale.getString("mcPlayerListener.PowerLevel", new Object[] { PP.getPowerLevel() }));
|
sender.sendMessage(mcLocale.getString("mcPlayerListener.PowerLevel", new Object[] { String.valueOf(PP.getPowerLevel()) }));
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -37,7 +37,7 @@ public class UnarmedCommand implements CommandExecutor {
|
|||||||
percentage = "33.3";
|
percentage = "33.3";
|
||||||
|
|
||||||
if (PP.getSkillLevel(SkillType.UNARMED) < 1000)
|
if (PP.getSkillLevel(SkillType.UNARMED) < 1000)
|
||||||
arrowpercentage = String.valueOf(((skillvalue / 1000) * 100) / 2);
|
arrowpercentage = String.valueOf((skillvalue / 2000) * 100);
|
||||||
else
|
else
|
||||||
arrowpercentage = "50";
|
arrowpercentage = "50";
|
||||||
|
|
||||||
|
@ -88,7 +88,7 @@ public class Unarmed {
|
|||||||
int skillLevel = PPd.getSkillLevel(SkillType.UNARMED);
|
int skillLevel = PPd.getSkillLevel(SkillType.UNARMED);
|
||||||
int skillCheck = m.skillCheck(skillLevel, MAX_BONUS_LEVEL);
|
int skillCheck = m.skillCheck(skillLevel, MAX_BONUS_LEVEL);
|
||||||
|
|
||||||
if (random.nextInt(3000) <= skillCheck) {
|
if (random.nextInt(1000) <= skillCheck) {
|
||||||
defender.sendMessage(ChatColor.GREEN + "Your iron grip kept you from being disarmed!"); //TODO: Use locale
|
defender.sendMessage(ChatColor.GREEN + "Your iron grip kept you from being disarmed!"); //TODO: Use locale
|
||||||
attacker.sendMessage(ChatColor.RED + "Your opponent has an iron grip!"); //TODO: Use locale
|
attacker.sendMessage(ChatColor.RED + "Your opponent has an iron grip!"); //TODO: Use locale
|
||||||
return true;
|
return true;
|
||||||
|
Loading…
Reference in New Issue
Block a user