@occultus/api-root - v0.29.3
    Preparing search index...

    物品标签条件

    Hierarchy (View Summary)

    Index

    Constructors

    • Parameters

      • tag: string

        满足条件所需要的物品标签

      • amount: number = 1

        满足条件所需要的物品数量,默认为 1

      • translateKey: string

        条件对应的翻译键

      • consumeAmount: boolean = false

        检查通过时是否消耗物品,默认为 false

      Returns ItemTagConditions

    Properties

    amount: number = 1

    满足条件所需要的物品数量,默认为 1

    consumeAmount: boolean = false

    检查通过时是否消耗物品,默认为 false

    tag: string

    满足条件所需要的物品标签

    translateKey: string

    条件对应的翻译键

    Methods

    • 检查玩家是否符合该条件的要求

      IMPORTANT: 若consumeAmount属性被设置为true,则当检查通过时将对玩家的背包进行修改

      Parameters

      • player: Player
      • visual: boolean = false

      Returns boolean