Sfoglia il codice sorgente

Vamprirism updates.

nossr50 13 anni fa
parent
commit
e1cf89c3bf
2 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. 1 0
      Changelog.txt
  2. 1 1
      src/main/java/com/gmail/nossr50/util/Hardcore.java

+ 1 - 0
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

+ 1 - 1
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));
         }