Skip to main content

VibratorModeValidate

Callable



  • Parameters

    • data: VibratingItemData
    • C: Character

      The character on whom the item is equipped

    • item: Item

      The item whose options are being validated

    • newOption: VibratingItemOption

      The new option

    • previousOption: VibratingItemOption

      The previously applied option

    • permitExisting: boolean = false

      Determines whether the validation should allow the new option and previous option to be identical. Defaults to false.

    Returns string

    • undefined or an empty string if the validation passes. Otherwise, returns a string message informing the player of the requirements that are not met.