removed comment, added MMOCore stats

This commit is contained in:
Indyuce 2019-08-29 14:13:24 +02:00
parent e85274e39a
commit be97754168
3 changed files with 3 additions and 5 deletions

View File

@ -55,7 +55,6 @@ public class AttackResult {
return damage;
}
// not used in MMOItems
public boolean isDamageModified() {
return initial != damage;
}

View File

@ -33,8 +33,8 @@ public class MMOCoreHook implements RPGHandler, Listener {
*/
MMOCore.plugin.damage.registerHandler(new MMOCoreDamageHandler());
MMOItems.plugin.getStats().register(StatType.COOLDOWN_REDUCTION.name(), new DoubleStat(new ItemStack(Material.BOOK), "Skill Cooldown Reduction", new String[] { "(%) Reduces cooldowns of MMOCore skills." }, "skill-cooldown-reduction"));
MMOItems.plugin.getStats().register(StatType.ADDITIONAL_EXPERIENCE.name(), new DoubleStat(new ItemStack(Material.EXPERIENCE_BOTTLE), "Additional Experience", new String[] { "Additional % MMOCore main class experience." }, "additional-experience"));
MMOItems.plugin.getStats().register("COOLDOWN_REDUCTION", new DoubleStat(new ItemStack(Material.BOOK), "Skill Cooldown Reduction", new String[] { "(%) Reduces cooldowns of MMOCore skills." }, "skill-cooldown-reduction"));
MMOItems.plugin.getStats().register("ADDITIONAL_EXPERIENCE", new DoubleStat(new ItemStack(Material.EXPERIENCE_BOTTLE), "Additional Experience", new String[] { "Additional % MMOCore main class experience." }, "additional-experience"));
for (DamageType type : DamageType.values())
MMOItems.plugin.getStats().register(type.name() + "_DAMAGE", new DoubleStat(new ItemStack(Material.GRAY_DYE), MMOUtils.caseOnWords(type.name().toLowerCase().replace("_", " ")) + " Damage (MMOCore)", new String[] { "Additional % MMOCore main class experience." }, "additional-experience"));
}

View File

@ -31,8 +31,7 @@ public class MMOCoreMMOLoader implements MMOLoader {
* register extra conditions for MMOItems crafting.
*/
MMOItems.plugin.getCrafting().registerCondition(new ProfessionCondition());
MMOItems.plugin.getCrafting().registerTrigger(new ExperienceCraftingTrigger());
}
MMOItems.plugin.getCrafting().registerTrigger(new ExperienceCraftingTrigger());}
@Override
public Condition loadCondition(MMOLineConfig config) {