Fixed CharEffectList exceeded effect limitation method.

This commit is contained in:
MobiusDev 2018-06-24 15:37:14 +00:00
parent d265813c40
commit 77b0300712
7 changed files with 112 additions and 28 deletions

View File

@ -535,20 +535,32 @@ public final class CharEffectList
{ {
case TRIGGER: case TRIGGER:
{ {
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT); if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
{
return true;
}
} }
case DANCE: case DANCE:
{ {
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT); if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
{
return true;
}
} }
// case TOGGLE: Do toggles have limit? // case TOGGLE: Do toggles have limit?
case DEBUFF: case DEBUFF:
{ {
return (_debuffCount.get() > 24); if (_debuffCount.get() > 24)
{
return true;
}
} }
case BUFF: case BUFF:
{ {
return (getBuffCount() > _owner.getStat().getMaxBuffCount()); if (getBuffCount() > _owner.getStat().getMaxBuffCount())
{
return true;
}
} }
} }
} }

View File

@ -535,20 +535,32 @@ public final class CharEffectList
{ {
case TRIGGER: case TRIGGER:
{ {
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT); if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
{
return true;
}
} }
case DANCE: case DANCE:
{ {
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT); if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
{
return true;
}
} }
// case TOGGLE: Do toggles have limit? // case TOGGLE: Do toggles have limit?
case DEBUFF: case DEBUFF:
{ {
return (_debuffCount.get() > 24); if (_debuffCount.get() > 24)
{
return true;
}
} }
case BUFF: case BUFF:
{ {
return (getBuffCount() > _owner.getStat().getMaxBuffCount()); if (getBuffCount() > _owner.getStat().getMaxBuffCount())
{
return true;
}
} }
} }
} }

View File

@ -535,20 +535,32 @@ public final class CharEffectList
{ {
case TRIGGER: case TRIGGER:
{ {
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT); if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
{
return true;
}
} }
case DANCE: case DANCE:
{ {
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT); if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
{
return true;
}
} }
// case TOGGLE: Do toggles have limit? // case TOGGLE: Do toggles have limit?
case DEBUFF: case DEBUFF:
{ {
return (_debuffCount.get() > 24); if (_debuffCount.get() > 24)
{
return true;
}
} }
case BUFF: case BUFF:
{ {
return (getBuffCount() > _owner.getStat().getMaxBuffCount()); if (getBuffCount() > _owner.getStat().getMaxBuffCount())
{
return true;
}
} }
} }
} }

View File

@ -535,20 +535,32 @@ public final class CharEffectList
{ {
case TRIGGER: case TRIGGER:
{ {
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT); if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
{
return true;
}
} }
case DANCE: case DANCE:
{ {
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT); if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
{
return true;
}
} }
// case TOGGLE: Do toggles have limit? // case TOGGLE: Do toggles have limit?
case DEBUFF: case DEBUFF:
{ {
return (_debuffCount.get() > 24); if (_debuffCount.get() > 24)
{
return true;
}
} }
case BUFF: case BUFF:
{ {
return (getBuffCount() > _owner.getStat().getMaxBuffCount()); if (getBuffCount() > _owner.getStat().getMaxBuffCount())
{
return true;
}
} }
} }
} }

View File

@ -535,20 +535,32 @@ public final class CharEffectList
{ {
case TRIGGER: case TRIGGER:
{ {
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT); if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
{
return true;
}
} }
case DANCE: case DANCE:
{ {
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT); if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
{
return true;
}
} }
// case TOGGLE: Do toggles have limit? // case TOGGLE: Do toggles have limit?
case DEBUFF: case DEBUFF:
{ {
return (_debuffCount.get() > 24); if (_debuffCount.get() > 24)
{
return true;
}
} }
case BUFF: case BUFF:
{ {
return (getBuffCount() > _owner.getStat().getMaxBuffCount()); if (getBuffCount() > _owner.getStat().getMaxBuffCount())
{
return true;
}
} }
} }
} }

View File

@ -535,20 +535,32 @@ public final class CharEffectList
{ {
case TRIGGER: case TRIGGER:
{ {
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT); if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
{
return true;
}
} }
case DANCE: case DANCE:
{ {
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT); if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
{
return true;
}
} }
// case TOGGLE: Do toggles have limit? // case TOGGLE: Do toggles have limit?
case DEBUFF: case DEBUFF:
{ {
return (_debuffCount.get() > 24); if (_debuffCount.get() > 24)
{
return true;
}
} }
case BUFF: case BUFF:
{ {
return (getBuffCount() > _owner.getStat().getMaxBuffCount()); if (getBuffCount() > _owner.getStat().getMaxBuffCount())
{
return true;
}
} }
} }
} }

View File

@ -535,20 +535,32 @@ public final class CharEffectList
{ {
case TRIGGER: case TRIGGER:
{ {
return (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT); if (_triggerBuffCount.get() > Config.TRIGGERED_BUFFS_MAX_AMOUNT)
{
return true;
}
} }
case DANCE: case DANCE:
{ {
return (_danceCount.get() > Config.DANCES_MAX_AMOUNT); if (_danceCount.get() > Config.DANCES_MAX_AMOUNT)
{
return true;
}
} }
// case TOGGLE: Do toggles have limit? // case TOGGLE: Do toggles have limit?
case DEBUFF: case DEBUFF:
{ {
return (_debuffCount.get() > 24); if (_debuffCount.get() > 24)
{
return true;
}
} }
case BUFF: case BUFF:
{ {
return (getBuffCount() > _owner.getStat().getMaxBuffCount()); if (getBuffCount() > _owner.getStat().getMaxBuffCount())
{
return true;
}
} }
} }
} }