mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2024-11-22 21:26:46 +01:00
Roll will not have an mmoinfo read out for now
This commit is contained in:
parent
fdefea3235
commit
6b309f628a
@ -4,10 +4,12 @@ Version 2.1.183
|
|||||||
Added Donkeys to beat lore (thanks QuantumToasted)
|
Added Donkeys to beat lore (thanks QuantumToasted)
|
||||||
Alchemy guide now correctly labels Rabbit's foot for potion of leaping (thanks mldriscoll)
|
Alchemy guide now correctly labels Rabbit's foot for potion of leaping (thanks mldriscoll)
|
||||||
Fixed a bug where sweet berry bushes would give XP in situations where they shouldn't
|
Fixed a bug where sweet berry bushes would give XP in situations where they shouldn't
|
||||||
|
The /mmoinfo for Roll is removed for the time being, it will return in a future update (see notes)
|
||||||
|
|
||||||
NOTES:
|
NOTES:
|
||||||
Previously treasures.yml would take drop_level and multiply it by 10 if you were on Retro Mode, this is confusing so it has been changed
|
Previously treasures.yml would take drop_level and multiply it by 10 if you were on Retro Mode, this is confusing so it has been changed
|
||||||
treasures.yml will update old entries to follow the new format automatically, please review them to make sure they match expected values, and if not edit them and save then reboot your server
|
treasures.yml will update old entries to follow the new format automatically, please review them to make sure they match expected values, and if not edit them and save then reboot your server
|
||||||
|
Roll is actually the only skill that had an /mmoinfo, its one big mess, I'll fix it in the future
|
||||||
|
|
||||||
Version 2.1.182
|
Version 2.1.182
|
||||||
Players now receive XP from harvesting Sweet Berry bushes (double XP for harvesting fully grown berries)
|
Players now receive XP from harvesting Sweet Berry bushes (double XP for harvesting fully grown berries)
|
||||||
|
@ -370,31 +370,34 @@ public class Roll extends AcrobaticsSubSkill {
|
|||||||
MaxBonusLevel: 100
|
MaxBonusLevel: 100
|
||||||
DamageThreshold: 7.0
|
DamageThreshold: 7.0
|
||||||
*/
|
*/
|
||||||
double rollChanceHalfMax, graceChanceHalfMax, damageThreshold, chancePerLevel;
|
|
||||||
|
|
||||||
//Chance to roll at half max skill
|
return "Under Construction: This will work in a future update.";
|
||||||
RandomChanceSkill rollHalfMaxSkill = new RandomChanceSkill(null, subSkillType);
|
//
|
||||||
int halfMaxSkillValue = AdvancedConfig.getInstance().getMaxBonusLevel(SubSkillType.ACROBATICS_ROLL)/2;
|
// double rollChanceHalfMax, graceChanceHalfMax, damageThreshold, chancePerLevel;
|
||||||
rollHalfMaxSkill.setSkillLevel(halfMaxSkillValue);
|
//
|
||||||
|
// //Chance to roll at half max skill
|
||||||
//Chance to graceful roll at full skill
|
// RandomChanceSkill rollHalfMaxSkill = new RandomChanceSkill(null, subSkillType);
|
||||||
RandomChanceSkill rollGraceHalfMaxSkill = new RandomChanceSkill(null, subSkillType);
|
// int halfMaxSkillValue = AdvancedConfig.getInstance().getMaxBonusLevel(SubSkillType.ACROBATICS_ROLL)/2;
|
||||||
rollGraceHalfMaxSkill.setSkillLevel(halfMaxSkillValue * 2); //Double the effective odds
|
// rollHalfMaxSkill.setSkillLevel(halfMaxSkillValue);
|
||||||
|
//
|
||||||
//Chance to roll per level
|
// //Chance to graceful roll at full skill
|
||||||
RandomChanceSkill rollOneSkillLevel = new RandomChanceSkill(null, subSkillType);
|
// RandomChanceSkill rollGraceHalfMaxSkill = new RandomChanceSkill(null, subSkillType);
|
||||||
rollGraceHalfMaxSkill.setSkillLevel(1); //Level 1 skill
|
// rollGraceHalfMaxSkill.setSkillLevel(halfMaxSkillValue * 2); //Double the effective odds
|
||||||
|
//
|
||||||
//Chance Stat Calculations
|
// //Chance to roll per level
|
||||||
rollChanceHalfMax = RandomChanceUtil.getRandomChanceExecutionChance(rollHalfMaxSkill);
|
// RandomChanceSkill rollOneSkillLevel = new RandomChanceSkill(null, subSkillType);
|
||||||
graceChanceHalfMax = RandomChanceUtil.getRandomChanceExecutionChance(rollGraceHalfMaxSkill);
|
// rollGraceHalfMaxSkill.setSkillLevel(1); //Level 1 skill
|
||||||
damageThreshold = AdvancedConfig.getInstance().getRollDamageThreshold();
|
//
|
||||||
|
// //Chance Stat Calculations
|
||||||
chancePerLevel = RandomChanceUtil.getRandomChanceExecutionChance(rollOneSkillLevel);
|
// rollChanceHalfMax = RandomChanceUtil.getRandomChanceExecutionChance(rollHalfMaxSkill);
|
||||||
|
// graceChanceHalfMax = RandomChanceUtil.getRandomChanceExecutionChance(rollGraceHalfMaxSkill);
|
||||||
double maxLevel = AdvancedConfig.getInstance().getMaxBonusLevel(SubSkillType.ACROBATICS_ROLL);
|
// damageThreshold = AdvancedConfig.getInstance().getRollDamageThreshold();
|
||||||
|
//
|
||||||
return LocaleLoader.getString("Acrobatics.SubSkill.Roll.Mechanics", rollChanceHalfMax, graceChanceHalfMax, maxLevel, chancePerLevel, damageThreshold, damageThreshold * 2,halfMaxSkillValue);
|
// chancePerLevel = RandomChanceUtil.getRandomChanceExecutionChance(rollOneSkillLevel);
|
||||||
|
//
|
||||||
|
// double maxLevel = AdvancedConfig.getInstance().getMaxBonusLevel(SubSkillType.ACROBATICS_ROLL);
|
||||||
|
//
|
||||||
|
// return LocaleLoader.getString("Acrobatics.SubSkill.Roll.Mechanics", rollChanceHalfMax, graceChanceHalfMax, maxLevel, chancePerLevel, damageThreshold, damageThreshold * 2,halfMaxSkillValue);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -1,13 +1,10 @@
|
|||||||
package com.gmail.nossr50.listeners;
|
package com.gmail.nossr50.listeners;
|
||||||
|
|
||||||
import com.gmail.nossr50.api.ItemSpawnReason;
|
|
||||||
import com.gmail.nossr50.config.AdvancedConfig;
|
import com.gmail.nossr50.config.AdvancedConfig;
|
||||||
import com.gmail.nossr50.config.Config;
|
import com.gmail.nossr50.config.Config;
|
||||||
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;
|
||||||
import com.gmail.nossr50.datatypes.meta.BonusDropMeta;
|
|
||||||
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
import com.gmail.nossr50.datatypes.player.McMMOPlayer;
|
||||||
import com.gmail.nossr50.datatypes.skills.PrimarySkillType;
|
|
||||||
import com.gmail.nossr50.datatypes.skills.SubSkillType;
|
import com.gmail.nossr50.datatypes.skills.SubSkillType;
|
||||||
import com.gmail.nossr50.datatypes.skills.subskills.interfaces.InteractType;
|
import com.gmail.nossr50.datatypes.skills.subskills.interfaces.InteractType;
|
||||||
import com.gmail.nossr50.events.fake.FakeEntityDamageByEntityEvent;
|
import com.gmail.nossr50.events.fake.FakeEntityDamageByEntityEvent;
|
||||||
@ -34,7 +31,6 @@ import com.gmail.nossr50.util.skills.CombatUtils;
|
|||||||
import com.gmail.nossr50.util.skills.SkillActivationType;
|
import com.gmail.nossr50.util.skills.SkillActivationType;
|
||||||
import com.gmail.nossr50.worldguard.WorldGuardManager;
|
import com.gmail.nossr50.worldguard.WorldGuardManager;
|
||||||
import com.gmail.nossr50.worldguard.WorldGuardUtils;
|
import com.gmail.nossr50.worldguard.WorldGuardUtils;
|
||||||
import org.bukkit.Bukkit;
|
|
||||||
import org.bukkit.Material;
|
import org.bukkit.Material;
|
||||||
import org.bukkit.NamespacedKey;
|
import org.bukkit.NamespacedKey;
|
||||||
import org.bukkit.OfflinePlayer;
|
import org.bukkit.OfflinePlayer;
|
||||||
@ -45,7 +41,6 @@ import org.bukkit.event.Cancellable;
|
|||||||
import org.bukkit.event.EventHandler;
|
import org.bukkit.event.EventHandler;
|
||||||
import org.bukkit.event.EventPriority;
|
import org.bukkit.event.EventPriority;
|
||||||
import org.bukkit.event.Listener;
|
import org.bukkit.event.Listener;
|
||||||
import org.bukkit.event.block.BlockDropItemEvent;
|
|
||||||
import org.bukkit.event.entity.*;
|
import org.bukkit.event.entity.*;
|
||||||
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
|
import org.bukkit.event.entity.EntityDamageEvent.DamageCause;
|
||||||
import org.bukkit.inventory.ItemStack;
|
import org.bukkit.inventory.ItemStack;
|
||||||
@ -57,8 +52,6 @@ import org.bukkit.potion.PotionEffectType;
|
|||||||
import org.bukkit.projectiles.ProjectileSource;
|
import org.bukkit.projectiles.ProjectileSource;
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
|
|
||||||
import java.util.HashSet;
|
|
||||||
|
|
||||||
public class EntityListener implements Listener {
|
public class EntityListener implements Listener {
|
||||||
private final mcMMO pluginRef;
|
private final mcMMO pluginRef;
|
||||||
private final @NotNull AbstractPersistentDataLayer persistentDataLayer;
|
private final @NotNull AbstractPersistentDataLayer persistentDataLayer;
|
||||||
|
Loading…
Reference in New Issue
Block a user