Enum Class MapleFamilyBuff

java.lang.Object
java.lang.Enum<MapleFamilyBuff>
handling.world.family.MapleFamilyBuff
All Implemented Interfaces:
Serializable, Comparable<MapleFamilyBuff>, Constable

public enum MapleFamilyBuff extends Enum<MapleFamilyBuff>
家族聲望兌換的 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

  • Enum Constant Details

  • Field Details

    • name

      public String name
    • desc

      public String desc
    • rep

      public int rep
    • type

      public int type
    • questID

      public int questID
    • duration

      public int duration
    • effect

      public int effect
    • effects

      public EnumMap<MapleBuffStat, Integer> effects
  • Method Details

    • values

      public static MapleFamilyBuff[] 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

      public static MapleFamilyBuff valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • getEffectId

      public int getEffectId()
    • setEffects

      public final void setEffects()
    • applyTo

      public void applyTo(MapleCharacter chr)