From 49de6614c098de1f8c829a848f68253deffb90f7 Mon Sep 17 00:00:00 2001 From: GJ Date: Mon, 4 Feb 2013 11:28:59 -0500 Subject: [PATCH] Remove more old code from PlayerProfile --- .../nossr50/datatypes/PlayerProfile.java | 44 ------------------- 1 file changed, 44 deletions(-) diff --git a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java index dcee3dd80..ac09f82ce 100644 --- a/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java +++ b/src/main/java/com/gmail/nossr50/datatypes/PlayerProfile.java @@ -960,48 +960,4 @@ public class PlayerProfile { public int getXpToLevel(SkillType skillType) { 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; - // } }