Enum Class MapleFamilyBuff
- All Implemented Interfaces:
Serializable, Comparable<MapleFamilyBuff>, Constable
家族聲望兌換的 Buff 種類定義,涵蓋傳送、召喚、掉寶率、經驗值加成與家族團結加成。
每個列舉值攜帶:
name/desc:顯示名稱與說明文字(繁體中文)。type:Buff 種類代碼(0=傳送、1=召喚、2=掉寶、3=經驗、4=兩者)。duration:持續分鐘數;effect:加成數值(百分比基底)。rep:兌換所需聲望值;questID:對應的任務 ID。effects:以client.MapleBuffStat為鍵的EnumMap, 由setEffects()依type填入DROP_RATE/MESO_RATE/EXPRATE。
applyTo(MapleCharacter) 透過 tools.packet.BuffPacket 送出 Buff 封包,
並向 server.Timer.BuffTimer 排程取消效果任務;
由家族相關腳本或處理器呼叫套用至 MapleCharacter。
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoidapplyTo(MapleCharacter chr) intfinal voidstatic MapleFamilyBuffReturns the enum constant of this class with the specified name.static MapleFamilyBuff[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
Teleport
-
Summon
-
Drop_12_15
-
EXP_12_15
-
Drop_12_30
-
EXP_12_30
-
Bonding
-
-
Field Details
-
name
-
desc
-
rep
public int rep -
type
public int type -
questID
public int questID -
duration
public int duration -
effect
public int effect -
effects
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
getEffectId
public int getEffectId() -
setEffects
public final void setEffects() -
applyTo
-