mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 13:16:45 +01:00
Add setting for ignoring attack cooldown Fixes #5048
This commit is contained in:
parent
25a55d6d4d
commit
99d8b64589
@ -1,8 +1,15 @@
|
|||||||
Version 2.2.017
|
Version 2.2.017
|
||||||
|
Added a setting in advanced.yml to ignore attack cooldowns (see notes)
|
||||||
Fixed a bug with Mace permissions (thanks SrBedrock)
|
Fixed a bug with Mace permissions (thanks SrBedrock)
|
||||||
Updated zh_CN locale (thanks libook)
|
Updated zh_CN locale (thanks libook)
|
||||||
Updated pt_BR locale (thanks JesusRuescas)
|
Updated pt_BR locale (thanks JesusRuescas)
|
||||||
Updated fr locale (thanks Ted-18)
|
Updated fr locale (thanks Ted-18)
|
||||||
|
|
||||||
|
NOTES:
|
||||||
|
Skills.General.Attack_Cooldown.Adjust_Skills_For_Attack_Cooldown is a new setting in advanced.yml that will allow you to ignore attack cooldowns for the combat skills.
|
||||||
|
When a player spams an attack, have a reduced amount of bonus damage from mcMMO and reduced chance for chance-on-hit subskills to activate.
|
||||||
|
You can have mcMMO ignore this value and apply full bonus damage and full chance to proc abilities by setting this to false.
|
||||||
|
|
||||||
Version 2.2.016
|
Version 2.2.016
|
||||||
(SQL) Fixed a bug where skill cooldowns were being loaded for players incorrectly
|
(SQL) Fixed a bug where skill cooldowns were being loaded for players incorrectly
|
||||||
|
|
||||||
|
@ -409,6 +409,10 @@ public class AdvancedConfig extends BukkitConfig {
|
|||||||
|
|
||||||
/* GENERAL */
|
/* GENERAL */
|
||||||
|
|
||||||
|
public boolean useAttackCooldown() {
|
||||||
|
return config.getBoolean("Skills.General.Attack_Cooldown.Adjust_Skills_For_Attack_Cooldown", true);
|
||||||
|
}
|
||||||
|
|
||||||
public boolean canApplyLimitBreakPVE() {
|
public boolean canApplyLimitBreakPVE() {
|
||||||
return config.getBoolean("Skills.General.LimitBreak.AllowPVE", false);
|
return config.getBoolean("Skills.General.LimitBreak.AllowPVE", false);
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@ package com.gmail.nossr50.datatypes.player;
|
|||||||
|
|
||||||
import com.gmail.nossr50.api.exceptions.InvalidSkillException;
|
import com.gmail.nossr50.api.exceptions.InvalidSkillException;
|
||||||
import com.gmail.nossr50.chat.author.PlayerAuthor;
|
import com.gmail.nossr50.chat.author.PlayerAuthor;
|
||||||
|
import com.gmail.nossr50.config.AdvancedConfig;
|
||||||
import com.gmail.nossr50.config.ChatConfig;
|
import com.gmail.nossr50.config.ChatConfig;
|
||||||
import com.gmail.nossr50.config.WorldBlacklist;
|
import com.gmail.nossr50.config.WorldBlacklist;
|
||||||
import com.gmail.nossr50.config.experience.ExperienceConfig;
|
import com.gmail.nossr50.config.experience.ExperienceConfig;
|
||||||
@ -239,7 +240,11 @@ public class McMMOPlayer implements Identified {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public double getAttackStrength() {
|
public double getAttackStrength() {
|
||||||
return player.getAttackCooldown();
|
if (mcMMO.p.getAdvancedConfig().useAttackCooldown()) {
|
||||||
|
return player.getAttackCooldown();
|
||||||
|
} else {
|
||||||
|
return 1.0D;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public @NotNull PrimarySkillType getLastSkillShownScoreboard() {
|
public @NotNull PrimarySkillType getLastSkillShownScoreboard() {
|
||||||
|
@ -83,6 +83,11 @@ Feedback:
|
|||||||
SendCopyOfMessageToChat: false
|
SendCopyOfMessageToChat: false
|
||||||
Skills:
|
Skills:
|
||||||
General:
|
General:
|
||||||
|
# Attack Cooldown refers to the strength of attacks in Minecraft.
|
||||||
|
# If an attack is spammed, it will have less bonus damage and RNG for skills to activate from mcMMO.
|
||||||
|
# If you want, you can turn this behavior off by setting it to false.
|
||||||
|
Attack_Cooldown:
|
||||||
|
Adjust_Skills_For_Attack_Cooldown: true
|
||||||
LimitBreak:
|
LimitBreak:
|
||||||
AllowPVE: false
|
AllowPVE: false
|
||||||
StartingLevel: 0
|
StartingLevel: 0
|
||||||
|
Loading…
Reference in New Issue
Block a user