Addition of Lucky Clover rate configuration.

This commit is contained in:
MobiusDevelopment
2019-03-16 10:45:44 +00:00
parent d33803e61a
commit 65217291d0
21 changed files with 77 additions and 7 deletions

View File

@ -14142,7 +14142,7 @@ public final class L2PcInstance extends L2Playable
public boolean tryLuck()
{
if (((Rnd.nextDouble() * 100) < BaseStats.LUC.getValue(getLUC())) && !hasSkillReuse(CommonSkill.LUCKY_CLOVER.getSkill().getReuseHashCode()))
if (((Rnd.nextDouble() * 100) < (BaseStats.LUC.getValue(getLUC()) * Config.LUCKY_CHANCE_MULTIPLIER)) && !hasSkillReuse(CommonSkill.LUCKY_CLOVER.getSkill().getReuseHashCode()))
{
SkillCaster.triggerCast(this, this, CommonSkill.LUCKY_CLOVER.getSkill());
sendPacket(SystemMessageId.LADY_LUCK_SMILES_UPON_YOU);