mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-23 13:46:46 +01:00
Remove more old code from PlayerProfile
This commit is contained in:
parent
cc50428646
commit
49de6614c0
@ -960,48 +960,4 @@ public class PlayerProfile {
|
|||||||
public int getXpToLevel(SkillType skillType) {
|
public int getXpToLevel(SkillType skillType) {
|
||||||
return 1020 + (skills.get(skillType) * Config.getInstance().getFormulaMultiplierCurve());
|
return 1020 + (skills.get(skillType) * Config.getInstance().getFormulaMultiplierCurve());
|
||||||
}
|
}
|
||||||
|
|
||||||
// /**
|
|
||||||
// * Gets the power level of a player.
|
|
||||||
// *
|
|
||||||
// * @return the power level of the player
|
|
||||||
// */
|
|
||||||
// public int getPowerLevel() {
|
|
||||||
// int powerLevel = 0;
|
|
||||||
//
|
|
||||||
// for (SkillType type : SkillType.values()) {
|
|
||||||
// if (type.getPermissions(player)) {
|
|
||||||
// powerLevel += getSkillLevel(type);
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return powerLevel;
|
|
||||||
// }
|
|
||||||
|
|
||||||
// /**
|
|
||||||
// * Calculate the party Xp modifier.
|
|
||||||
// *
|
|
||||||
// * @param skillType Type of skill to check
|
|
||||||
// * @return the party bonus multiplier
|
|
||||||
// */
|
|
||||||
// private double partyModifier(SkillType skillType) {
|
|
||||||
// double bonusModifier = 0.0;
|
|
||||||
//
|
|
||||||
// for (Player member : party.getOnlineMembers()) {
|
|
||||||
// if (party.getLeader().equals(member.getName())) {
|
|
||||||
// if (Misc.isNear(player.getLocation(), member.getLocation(), 25.0)) {
|
|
||||||
// PlayerProfile PartyLeader = Users.getProfile(member);
|
|
||||||
// int leaderSkill = PartyLeader.getSkillLevel(skillType);
|
|
||||||
// int playerSkill = getSkillLevel(skillType);
|
|
||||||
//
|
|
||||||
// if (leaderSkill >= playerSkill) {
|
|
||||||
// int difference = leaderSkill - playerSkill;
|
|
||||||
// bonusModifier = (difference * 0.75) / 100.0;
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
// }
|
|
||||||
//
|
|
||||||
// return bonusModifier;
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user