L2J-like skill operate types.

This commit is contained in:
MobiusDev
2016-10-21 19:32:44 +00:00
parent 185f02a26f
commit 4247fae039
222 changed files with 19234 additions and 19234 deletions

View File

@@ -19,16 +19,16 @@ package com.l2jmobius.gameserver.model.skills;
/**
* This enum class holds the skill operative types:
* <ul>
* <li>ACTIVE_INSTANT</li>
* <li>ACTIVE_CONTINUOUS</li>
* <li>ACTIVE_WITH_TRIGGER</li>
* <li>SPECIAL_HERB</li>
* <li>CHANNELING_INSTANT</li>
* <li>CHANNELING_CONTINUOUS</li>
* <li>DIRECTIONAL_INSTANT</li>
* <li>DIRECTIONAL_CONTINUOUS</li>
* <li>PASSIVE</li>
* <li>TOGGLE</li>
* <li>A1</li>
* <li>A2</li>
* <li>A3</li>
* <li>A4</li>
* <li>CA1</li>
* <li>CA5</li>
* <li>DA1</li>
* <li>DA2</li>
* <li>P</li>
* <li>T</li>
* </ul>
* @author Zoey76
*/
@@ -37,52 +37,52 @@ public enum SkillOperateType
/**
* Active Skill with "Instant Effect" (for example damage skills heal/pdam/mdam/cpdam skills).
*/
ACTIVE_INSTANT,
A1,
/**
* Active Skill with "Continuous effect + Instant effect" (for example buff/debuff or damage/heal over time skills).
*/
ACTIVE_CONTINUOUS,
A2,
/**
* Active Skill with "Instant effect + Continuous effect"
*/
ACTIVE_WITH_TRIGGER,
A3,
/**
* Active Skill with "Instant effect + ?" used for special event herb (itemId 20903, skillId 22158).
*/
SPECIAL_HERB,
A4,
/**
* Continuous Active Skill with "instant effect" (instant effect casted by ticks).
*/
CHANNELING_INSTANT,
CA1,
/**
* Continuous Active Skill with "continuous effect" (continuous effect casted by ticks).
*/
CHANNELING_CONTINUOUS,
CA5,
/**
* Directional Active Skill with "Charge/Rush instant effect".
*/
DIRECTIONAL_INSTANT,
DA1,
/**
* Directional Active Skill with "Charge/Rush Continuous effect".
*/
DIRECTIONAL_CONTINUOUS,
DA2,
/**
* Passive Skill.
*/
PASSIVE,
P,
/**
* Toggle Skill.
*/
TOGGLE;
T;
/**
* Verifies if the operative type correspond to an active skill.
@@ -92,14 +92,14 @@ public enum SkillOperateType
{
switch (this)
{
case ACTIVE_INSTANT:
case ACTIVE_CONTINUOUS:
case ACTIVE_WITH_TRIGGER:
case CHANNELING_INSTANT:
case CHANNELING_CONTINUOUS:
case DIRECTIONAL_INSTANT:
case DIRECTIONAL_CONTINUOUS:
case SPECIAL_HERB:
case A1:
case A2:
case A3:
case A4:
case CA1:
case CA5:
case DA1:
case DA2:
{
return true;
}
@@ -118,9 +118,9 @@ public enum SkillOperateType
{
switch (this)
{
case ACTIVE_CONTINUOUS:
case DIRECTIONAL_CONTINUOUS:
case SPECIAL_HERB:
case A2:
case A4:
case DA2:
{
return true;
}
@@ -137,7 +137,7 @@ public enum SkillOperateType
*/
public boolean isSelfContinuous()
{
return this == ACTIVE_WITH_TRIGGER;
return this == A3;
}
/**
@@ -146,7 +146,7 @@ public enum SkillOperateType
*/
public boolean isPassive()
{
return this == PASSIVE;
return this == P;
}
/**
@@ -155,7 +155,7 @@ public enum SkillOperateType
*/
public boolean isToggle()
{
return this == TOGGLE;
return this == T;
}
/**
@@ -166,8 +166,8 @@ public enum SkillOperateType
{
switch (this)
{
case CHANNELING_INSTANT:
case CHANNELING_CONTINUOUS:
case CA1:
case CA5:
{
return true;
}