mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 23:26:45 +01:00
Updates to PlayerProfile.java
This commit is contained in:
parent
ae8997b4f3
commit
6a8737547f
File diff suppressed because it is too large
Load Diff
@ -7,41 +7,44 @@ import com.gmail.nossr50.config.LoadProperties;
|
|||||||
|
|
||||||
public enum SkillType
|
public enum SkillType
|
||||||
{
|
{
|
||||||
ACROBATICS(LoadProperties.levelCapAcrobatics),
|
ACROBATICS(LoadProperties.levelCapAcrobatics, LoadProperties.acrobaticsxpmodifier),
|
||||||
ALL, //This one is just for convenience
|
ALL, //This one is just for convenience
|
||||||
ARCHERY(LoadProperties.levelCapArchery),
|
ARCHERY(LoadProperties.levelCapArchery, LoadProperties.archeryxpmodifier),
|
||||||
AXES(AbilityType.SKULL_SPLIITER, LoadProperties.levelCapAxes, ToolType.AXE),
|
AXES(AbilityType.SKULL_SPLIITER, LoadProperties.levelCapAxes, ToolType.AXE, LoadProperties.axesxpmodifier),
|
||||||
EXCAVATION(AbilityType.GIGA_DRILL_BREAKER, LoadProperties.levelCapExcavation, ToolType.SHOVEL),
|
EXCAVATION(AbilityType.GIGA_DRILL_BREAKER, LoadProperties.levelCapExcavation, ToolType.SHOVEL, LoadProperties.excavationxpmodifier),
|
||||||
FISHING(LoadProperties.levelCapFishing),
|
FISHING(LoadProperties.levelCapFishing, LoadProperties.fishingxpmodifier),
|
||||||
HERBALISM(AbilityType.GREEN_TERRA, LoadProperties.levelCapHerbalism, ToolType.HOE),
|
HERBALISM(AbilityType.GREEN_TERRA, LoadProperties.levelCapHerbalism, ToolType.HOE, LoadProperties.herbalismxpmodifier),
|
||||||
MINING(AbilityType.SUPER_BREAKER, LoadProperties.levelCapMining, ToolType.PICKAXE),
|
MINING(AbilityType.SUPER_BREAKER, LoadProperties.levelCapMining, ToolType.PICKAXE, LoadProperties.miningxpmodifier),
|
||||||
REPAIR(LoadProperties.levelCapRepair),
|
REPAIR(LoadProperties.levelCapRepair, LoadProperties.repairxpmodifier),
|
||||||
SWORDS(AbilityType.SERRATED_STRIKES, LoadProperties.levelCapSwords, ToolType.SWORD),
|
SWORDS(AbilityType.SERRATED_STRIKES, LoadProperties.levelCapSwords, ToolType.SWORD, LoadProperties.swordsxpmodifier),
|
||||||
TAMING(LoadProperties.levelCapTaming),
|
TAMING(LoadProperties.levelCapTaming, LoadProperties.tamingxpmodifier),
|
||||||
UNARMED(AbilityType.BERSERK, LoadProperties.levelCapUnarmed, ToolType.FISTS),
|
UNARMED(AbilityType.BERSERK, LoadProperties.levelCapUnarmed, ToolType.FISTS, LoadProperties.unarmedxpmodifier),
|
||||||
WOODCUTTING(AbilityType.TREE_FELLER, LoadProperties.levelCapWoodcutting, ToolType.AXE);
|
WOODCUTTING(AbilityType.TREE_FELLER, LoadProperties.levelCapWoodcutting, ToolType.AXE, LoadProperties.woodcuttingxpmodifier);
|
||||||
|
|
||||||
private AbilityType ability;
|
private AbilityType ability;
|
||||||
private int maxLevel;
|
private int maxLevel;
|
||||||
private ToolType tool;
|
private ToolType tool;
|
||||||
|
private double xpModifier;
|
||||||
|
|
||||||
private SkillType()
|
private SkillType()
|
||||||
{
|
{
|
||||||
this.ability = null;
|
this.ability = null;
|
||||||
this.maxLevel = 0;
|
this.maxLevel = 0;
|
||||||
this.tool = null;
|
this.tool = null;
|
||||||
|
this.xpModifier = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
private SkillType(AbilityType ability, int maxLevel, ToolType tool)
|
private SkillType(AbilityType ability, int maxLevel, ToolType tool, double xpModifier)
|
||||||
{
|
{
|
||||||
this.ability = ability;
|
this.ability = ability;
|
||||||
this.maxLevel = maxLevel;
|
this.maxLevel = maxLevel;
|
||||||
this.tool = tool;
|
this.tool = tool;
|
||||||
|
this.xpModifier = xpModifier;
|
||||||
}
|
}
|
||||||
|
|
||||||
private SkillType(int maxLevel)
|
private SkillType(int maxLevel, double xpModifier)
|
||||||
{
|
{
|
||||||
this(null, maxLevel, null);
|
this(null, maxLevel, null, xpModifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
public AbilityType getAbility()
|
public AbilityType getAbility()
|
||||||
@ -57,9 +60,8 @@ public enum SkillType
|
|||||||
return Integer.MAX_VALUE;
|
return Integer.MAX_VALUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
public ToolType getTool()
|
public ToolType getTool() {
|
||||||
{
|
return tool;
|
||||||
return this.tool;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public boolean getPermissions(Player player)
|
public boolean getPermissions(Player player)
|
||||||
@ -93,4 +95,8 @@ public enum SkillType
|
|||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public double getXpModifier() {
|
||||||
|
return xpModifier;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user