From e1cf89c3bfea5548dd741cf055950efe7141397c Mon Sep 17 00:00:00 2001 From: nossr50 Date: Tue, 1 May 2012 09:04:29 -0700 Subject: [PATCH] Vamprirism updates. --- Changelog.txt | 1 + src/main/java/com/gmail/nossr50/util/Hardcore.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.txt b/Changelog.txt index b2113c791..ec8b5b392 100644 --- a/Changelog.txt +++ b/Changelog.txt @@ -9,6 +9,7 @@ Key: Version 1.3.07 + Added new configurable Hardcore mode functionality to mcMMO + + Added new configurable Vampirism PVP stat leech for Hardcore mode + Added new bypass permission node for the negative penalties of Hardcore mode 'mcmmo.bypass.hardcoremode' + Added a permission node for Archery bonus damage + Added a permission node for Greater Impact ability diff --git a/src/main/java/com/gmail/nossr50/util/Hardcore.java b/src/main/java/com/gmail/nossr50/util/Hardcore.java index 55faeb7e1..9ab3ffc45 100644 --- a/src/main/java/com/gmail/nossr50/util/Hardcore.java +++ b/src/main/java/com/gmail/nossr50/util/Hardcore.java @@ -32,7 +32,7 @@ public class Hardcore { for(SkillType st : SkillType.values()) { if(st.equals(SkillType.ALL)) continue; - int newValue = (int) (PPd.getSkillLevel(st) - (PPd.getSkillLevel(st) * (Config.getInstance().getHardcoreVampirismStatLeechPercentage() * 0.01D))); + int newValue = (int) (PPd.getSkillLevel(st) * (Config.getInstance().getHardcoreVampirismStatLeechPercentage() * 0.01D)); PPk.modifySkill(st, newValue+PPk.getSkillLevel(st)); }