actual freya branch
This commit is contained in:
@@ -0,0 +1,79 @@
|
||||
/*
|
||||
* This program is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License as published by the Free Software
|
||||
* Foundation, either version 3 of the License, or (at your option) any later
|
||||
* version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jserver.gameserver.templates.skills;
|
||||
|
||||
/**
|
||||
* @author nBd
|
||||
*/
|
||||
public enum L2EffectType
|
||||
{
|
||||
BUFF,
|
||||
DEBUFF,
|
||||
CANCEL_DEBUFF,
|
||||
CHARGE,
|
||||
DMG_OVER_TIME,
|
||||
HEAL_OVER_TIME,
|
||||
COMBAT_POINT_HEAL,
|
||||
COMBAT_POINT_HEAL_OVER_TIME,
|
||||
CPDAMPERCENT,
|
||||
MANA_DMG_OVER_TIME,
|
||||
MANA_HEAL_OVER_TIME,
|
||||
MP_CONSUME_PER_LEVEL,
|
||||
RELAXING,
|
||||
STUN,
|
||||
ROOT,
|
||||
SLEEP,
|
||||
HATE,
|
||||
FAKE_DEATH,
|
||||
CONFUSION,
|
||||
CONFUSE_MOB_ONLY,
|
||||
MUTE,
|
||||
FEAR,
|
||||
SILENT_MOVE,
|
||||
SEED,
|
||||
PARALYZE,
|
||||
STUN_SELF,
|
||||
PHYSICAL_MUTE,
|
||||
PHYSICAL_ATTACK_MUTE,
|
||||
REMOVE_TARGET,
|
||||
TARGET_ME,
|
||||
SILENCE_MAGIC_PHYSICAL,
|
||||
BETRAY,
|
||||
NOBLESSE_BLESSING,
|
||||
PHOENIX_BLESSING,
|
||||
PETRIFICATION,
|
||||
BLUFF,
|
||||
CHARM_OF_LUCK,
|
||||
LUCKY,
|
||||
INVINCIBLE,
|
||||
TRANSFORMATION,
|
||||
DISARM,
|
||||
CHARMOFCOURAGE,
|
||||
SIGNET_EFFECT,
|
||||
SIGNET_GROUND,
|
||||
WARP,
|
||||
SPOIL,
|
||||
PROTECTION_BLESSING,
|
||||
FUSION,
|
||||
CHANCE_SKILL_TRIGGER,
|
||||
CLAN_GATE,
|
||||
CANCEL,
|
||||
NEGATE,
|
||||
THROW_UP,
|
||||
HIDE,
|
||||
ABORT_CAST,
|
||||
INCREASE_CHARGES,
|
||||
BLOCK_RESURRECTION
|
||||
}
|
||||
@@ -0,0 +1,229 @@
|
||||
/*
|
||||
* This program is free software: you can redistribute it and/or modify it under
|
||||
* the terms of the GNU General Public License as published by the Free Software
|
||||
* Foundation, either version 3 of the License, or (at your option) any later
|
||||
* version.
|
||||
*
|
||||
* This program is distributed in the hope that it will be useful, but WITHOUT
|
||||
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
||||
* FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
|
||||
* details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along with
|
||||
* this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
package com.l2jserver.gameserver.templates.skills;
|
||||
|
||||
import java.lang.reflect.Constructor;
|
||||
|
||||
import com.l2jserver.gameserver.model.L2Skill;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillAgathion;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillAppearance;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillChangeWeapon;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillChargeDmg;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillCreateItem;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillDecoy;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillDefault;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillDrain;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillLearnSkill;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillMount;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillSiegeFlag;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillSignet;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillSignetCasttime;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillSpawn;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillSummon;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillSweeper;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillTeleport;
|
||||
import com.l2jserver.gameserver.skills.l2skills.L2SkillTrap;
|
||||
import com.l2jserver.gameserver.templates.StatsSet;
|
||||
|
||||
/**
|
||||
* @author nBd
|
||||
*/
|
||||
public enum L2SkillType
|
||||
{
|
||||
// Damage
|
||||
PDAM,
|
||||
MDAM,
|
||||
CPDAM,
|
||||
MANADAM,
|
||||
CPDAMPERCENT,
|
||||
DOT,
|
||||
MDOT,
|
||||
DRAIN_SOUL,
|
||||
DRAIN(L2SkillDrain.class),
|
||||
DEATHLINK,
|
||||
FATAL,
|
||||
BLOW,
|
||||
SIGNET(L2SkillSignet.class),
|
||||
SIGNET_CASTTIME(L2SkillSignetCasttime.class),
|
||||
|
||||
// Disablers
|
||||
BLEED,
|
||||
POISON,
|
||||
STUN,
|
||||
ROOT,
|
||||
CONFUSION,
|
||||
FEAR,
|
||||
SLEEP,
|
||||
CONFUSE_MOB_ONLY,
|
||||
MUTE,
|
||||
PARALYZE,
|
||||
DISARM,
|
||||
|
||||
// hp, mp, cp
|
||||
HEAL,
|
||||
HOT,
|
||||
BALANCE_LIFE,
|
||||
HEAL_PERCENT,
|
||||
HEAL_STATIC,
|
||||
COMBATPOINTHEAL,
|
||||
CPHEAL_PERCENT,
|
||||
CPHOT,
|
||||
MANAHEAL,
|
||||
MANA_BY_LEVEL,
|
||||
MANAHEAL_PERCENT,
|
||||
MANARECHARGE,
|
||||
MPHOT,
|
||||
HPMPCPHEAL_PERCENT,
|
||||
HPMPHEAL_PERCENT,
|
||||
HPCPHEAL_PERCENT,
|
||||
|
||||
// sp
|
||||
GIVE_SP,
|
||||
// reco
|
||||
GIVE_RECO,
|
||||
// vitality
|
||||
GIVE_VITALITY,
|
||||
|
||||
// Aggro
|
||||
AGGDAMAGE,
|
||||
AGGREDUCE,
|
||||
AGGREMOVE,
|
||||
AGGREDUCE_CHAR,
|
||||
AGGDEBUFF,
|
||||
|
||||
// Fishing
|
||||
FISHING,
|
||||
PUMPING,
|
||||
REELING,
|
||||
|
||||
// MISC
|
||||
UNLOCK,
|
||||
UNLOCK_SPECIAL,
|
||||
ENCHANT_ARMOR,
|
||||
ENCHANT_WEAPON,
|
||||
ENCHANT_ATTRIBUTE,
|
||||
SOULSHOT,
|
||||
SPIRITSHOT,
|
||||
SIEGEFLAG(L2SkillSiegeFlag.class),
|
||||
TAKECASTLE,
|
||||
TAKEFORT,
|
||||
WEAPON_SA,
|
||||
DELUXE_KEY_UNLOCK,
|
||||
SOW,
|
||||
HARVEST,
|
||||
GET_PLAYER,
|
||||
AGATHION(L2SkillAgathion.class),
|
||||
MOUNT(L2SkillMount.class),
|
||||
INSTANT_JUMP,
|
||||
DETECTION,
|
||||
DUMMY,
|
||||
|
||||
// Creation
|
||||
COMMON_CRAFT,
|
||||
DWARVEN_CRAFT,
|
||||
CREATE_ITEM(L2SkillCreateItem.class),
|
||||
EXTRACTABLE,
|
||||
EXTRACTABLE_FISH,
|
||||
LEARN_SKILL(L2SkillLearnSkill.class),
|
||||
|
||||
// Summons
|
||||
SUMMON(L2SkillSummon.class),
|
||||
FEED_PET,
|
||||
DEATHLINK_PET,
|
||||
STRSIEGEASSAULT,
|
||||
ERASE,
|
||||
BETRAY,
|
||||
DECOY(L2SkillDecoy.class),
|
||||
SPAWN(L2SkillSpawn.class),
|
||||
|
||||
// Cancel
|
||||
CANCEL,
|
||||
CANCEL_STATS,
|
||||
CANCEL_DEBUFF,
|
||||
NEGATE,
|
||||
|
||||
BUFF,
|
||||
DEBUFF,
|
||||
PASSIVE,
|
||||
CONT,
|
||||
FUSION,
|
||||
|
||||
RESURRECT,
|
||||
CHARGEDAM(L2SkillChargeDmg.class),
|
||||
MHOT,
|
||||
DETECT_WEAKNESS,
|
||||
RECALL(L2SkillTeleport.class),
|
||||
TELEPORT(L2SkillTeleport.class),
|
||||
SUMMON_FRIEND,
|
||||
SPOIL,
|
||||
SWEEP(L2SkillSweeper.class),
|
||||
FAKE_DEATH,
|
||||
UNDEAD_DEFENSE,
|
||||
BEAST_FEED,
|
||||
BEAST_RELEASE,
|
||||
BEAST_RELEASE_ALL,
|
||||
BEAST_SKILL,
|
||||
BEAST_ACCOMPANY,
|
||||
CHARGESOUL,
|
||||
TRANSFORMDISPEL,
|
||||
SUMMON_TRAP(L2SkillTrap.class),
|
||||
DETECT_TRAP,
|
||||
REMOVE_TRAP,
|
||||
SHIFT_TARGET,
|
||||
// Kamael WeaponChange
|
||||
CHANGEWEAPON(L2SkillChangeWeapon.class),
|
||||
|
||||
STEAL_BUFF,
|
||||
|
||||
// Skill is done within the core.
|
||||
COREDONE,
|
||||
|
||||
CHANGE_APPEARANCE(L2SkillAppearance.class),
|
||||
|
||||
// Refuel airship
|
||||
REFUEL,
|
||||
// Nornil's Power (Nornil's Garden instance)
|
||||
NORNILS_POWER,
|
||||
|
||||
// unimplemented
|
||||
NOTDONE,
|
||||
BALLISTA;
|
||||
|
||||
private final Class<? extends L2Skill> _class;
|
||||
|
||||
public L2Skill makeSkill(StatsSet set)
|
||||
{
|
||||
try
|
||||
{
|
||||
Constructor<? extends L2Skill> c = _class.getConstructor(StatsSet.class);
|
||||
|
||||
return c.newInstance(set);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
throw new RuntimeException(e);
|
||||
}
|
||||
}
|
||||
|
||||
private L2SkillType()
|
||||
{
|
||||
_class = L2SkillDefault.class;
|
||||
}
|
||||
|
||||
private L2SkillType(Class<? extends L2Skill> classType)
|
||||
{
|
||||
_class = classType;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user