Added new XP perk - 10% boost

Adds #1698
This commit is contained in:
TfT_02 2014-01-18 23:08:40 +01:00
parent de912c1e07
commit c27d79cf25
4 changed files with 77 additions and 1 deletions

View File

@ -17,6 +17,7 @@ Version 1.4.08-dev
+ Added bypass permission for finding Fishing traps + Added bypass permission for finding Fishing traps
+ Added level threshold settings to hardcore modes. When a players skill level is below this threshold, they will not lose any stats + Added level threshold settings to hardcore modes. When a players skill level is below this threshold, they will not lose any stats
+ Added party alliances, two parties can now team up. Allies share party chat and cannot harm each other. + Added party alliances, two parties can now team up. Allies share party chat and cannot harm each other.
+ Added new experience bonus perk 'mcmmo.perks.xp.10percentboost.<skillname>', gives +10% experience
= Fixed bug where LeafBlower permissions were ignored = Fixed bug where LeafBlower permissions were ignored
= Fixed bug with toggle commands not properly displaying the success message. = Fixed bug with toggle commands not properly displaying the success message.
= Fixed IllegalArgumentException caused by an empty Fishing treasure category = Fixed IllegalArgumentException caused by an empty Fishing treasure category

View File

@ -108,6 +108,7 @@ public final class Permissions {
public static boolean doubleAndOneHalfXp(Permissible permissible, SkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.150percentboost." + skill.toString().toLowerCase()); } public static boolean doubleAndOneHalfXp(Permissible permissible, SkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.150percentboost." + skill.toString().toLowerCase()); }
public static boolean doubleXp(Permissible permissible, SkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.double." + skill.toString().toLowerCase()); } public static boolean doubleXp(Permissible permissible, SkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.double." + skill.toString().toLowerCase()); }
public static boolean oneAndOneHalfXp(Permissible permissible, SkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.50percentboost." + skill.toString().toLowerCase()); } public static boolean oneAndOneHalfXp(Permissible permissible, SkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.50percentboost." + skill.toString().toLowerCase()); }
public static boolean oneAndOneTenthXp(Permissible permissible, SkillType skill) { return permissible.hasPermission("mcmmo.perks.xp.10percentboost." + skill.toString().toLowerCase()); }
/* ACTIVATION PERKS */ /* ACTIVATION PERKS */
public static boolean twelveSecondActivationBoost(Permissible permissible) { return permissible.hasPermission("mcmmo.perks.activationtime.twelveseconds"); } public static boolean twelveSecondActivationBoost(Permissible permissible) { return permissible.hasPermission("mcmmo.perks.activationtime.twelveseconds"); }

View File

@ -59,6 +59,9 @@ public final class PerksUtils {
else if (Permissions.oneAndOneHalfXp(player, skill)) { else if (Permissions.oneAndOneHalfXp(player, skill)) {
xp *= 1.5; xp *= 1.5;
} }
else if (Permissions.oneAndOneTenthXp(player, skill)) {
xp *= 1.1;
}
return xp; return xp;
} }

View File

@ -1344,6 +1344,7 @@ permissions:
children: children:
mcmmo.perks.xp.150percentboost.all: true mcmmo.perks.xp.150percentboost.all: true
mcmmo.perks.xp.50percentboost.all: true mcmmo.perks.xp.50percentboost.all: true
mcmmo.perks.xp.10percentboost.all: true
mcmmo.perks.xp.double.all: true mcmmo.perks.xp.double.all: true
mcmmo.perks.xp.quadruple.all: true mcmmo.perks.xp.quadruple.all: true
mcmmo.perks.xp.triple.all: true mcmmo.perks.xp.triple.all: true
@ -1426,7 +1427,7 @@ permissions:
default: false default: false
description: Mulitplies incoming XP by 1.5 description: Mulitplies incoming XP by 1.5
children: children:
mcmmo.perks.xp.150percentboost.all: true mcmmo.perks.xp.50percentboost.all: true
mcmmo.perks.xp.50percentboost.all: mcmmo.perks.xp.50percentboost.all:
default: false default: false
description: Mulitplies incoming XP by 1.5 description: Mulitplies incoming XP by 1.5
@ -1487,6 +1488,76 @@ permissions:
mcmmo.perks.xp.50percentboost.woodcutting: mcmmo.perks.xp.50percentboost.woodcutting:
default: false default: false
description: Multiplies incoming Woodcutting XP by 1.5 description: Multiplies incoming Woodcutting XP by 1.5
mcmmo.perks.xp.10percentboost.*:
default: false
description: Mulitplies incoming XP by 1.1
children:
mcmmo.perks.xp.10percentboost.all: true
mcmmo.perks.xp.10percentboost:
default: false
description: Mulitplies incoming XP by 1.1
children:
mcmmo.perks.xp.10percentboost.all: true
mcmmo.perks.xp.10percentboost.all:
default: false
description: Mulitplies incoming XP by 1.1
children:
mcmmo.perks.xp.10percentboost.acrobatics: true
mcmmo.perks.xp.10percentboost.alchemy: true
mcmmo.perks.xp.10percentboost.archery: true
mcmmo.perks.xp.10percentboost.axes: true
mcmmo.perks.xp.10percentboost.excavation: true
mcmmo.perks.xp.10percentboost.fishing: true
mcmmo.perks.xp.10percentboost.herbalism: true
mcmmo.perks.xp.10percentboost.mining: true
mcmmo.perks.xp.10percentboost.repair: true
mcmmo.perks.xp.10percentboost.smelting: true
mcmmo.perks.xp.10percentboost.swords: true
mcmmo.perks.xp.10percentboost.taming: true
mcmmo.perks.xp.10percentboost.unarmed: true
mcmmo.perks.xp.10percentboost.woodcutting: true
mcmmo.perks.xp.10percentboost.acrobatics:
default: false
description: Multiplies incoming Acrobatics XP by 1.1
mcmmo.perks.xp.10percentboost.alchemy:
default: false
description: Multiplies incoming Acrobatics XP by 1.1
mcmmo.perks.xp.10percentboost.archery:
default: false
description: Multiplies incoming Archery XP by 1.1
mcmmo.perks.xp.10percentboost.axes:
default: false
description: Multiplies incoming Axes XP by 1.1
mcmmo.perks.xp.10percentboost.excavation:
default: false
description: Multiplies incoming Excavation XP by 1.1
mcmmo.perks.xp.10percentboost.fishing:
default: false
description: Multiplies incoming Fishing XP by 1.1
mcmmo.perks.xp.10percentboost.herbalism:
default: false
description: Multiplies incoming Herbalism XP by 1.1
mcmmo.perks.xp.10percentboost.mining:
default: false
description: Multiplies incoming Mining XP by 1.1
mcmmo.perks.xp.10percentboost.repair:
default: false
description: Multiplies incoming Repair XP by 1.1
mcmmo.perks.xp.10percentboost.smelting:
default: false
description: Multiplies incoming Smelting XP by 1.1
mcmmo.perks.xp.10percentboost.swords:
default: false
description: Multiplies incoming Swords XP by 1.1
mcmmo.perks.xp.10percentboost.taming:
default: false
description: Multiplies incoming Taming XP by 1.1
mcmmo.perks.xp.10percentboost.unarmed:
default: false
description: Multiplies incoming Unarmed XP by 1.1
mcmmo.perks.xp.10percentboost.woodcutting:
default: false
description: Multiplies incoming Woodcutting XP by 1.1
mcmmo.perks.xp.double.*: mcmmo.perks.xp.double.*:
default: false default: false
description: Doubles incoming XP description: Doubles incoming XP