mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-26 07:06:45 +01:00
Vamprirism updates.
This commit is contained in:
parent
8cd1541893
commit
e1cf89c3bf
@ -9,6 +9,7 @@ Key:
|
|||||||
|
|
||||||
Version 1.3.07
|
Version 1.3.07
|
||||||
+ Added new configurable Hardcore mode functionality to mcMMO
|
+ 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 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 Archery bonus damage
|
||||||
+ Added a permission node for Greater Impact ability
|
+ Added a permission node for Greater Impact ability
|
||||||
|
@ -32,7 +32,7 @@ public class Hardcore {
|
|||||||
for(SkillType st : SkillType.values()) {
|
for(SkillType st : SkillType.values()) {
|
||||||
if(st.equals(SkillType.ALL))
|
if(st.equals(SkillType.ALL))
|
||||||
continue;
|
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));
|
PPk.modifySkill(st, newValue+PPk.getSkillLevel(st));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user