Skip to main content

ValidationSanitizeEffects

Callable


  • Sanitizes the Effect array on an item's Property object, if present. This ensures that it is a valid array of strings, and that each item in the array is present in the asset's AllowEffect array.


    Parameters

    • C: Character

      The character on whom the item is equipped

    • item: Item

      The item whose Effect property should be sanitized

    Returns boolean

    • TRUE if the item's Effect property was modified as part of the sanitization process (indicating it was not a valid string array, or that invalid effects were present), FALSE otherwise