Skip to main content

ExtendedItemInitNoArch

Callable


  • Helper init function for extended items without an archetype. Note that on the long term this function should ideally be removed in favor of adding appropriate archetypes.


    Parameters

    • C: Character

      The character that has the item equiped

    • Item: Item

      The item in question

    • Properties: ItemProperties

      A record that maps property keys to their default value. The type of each value is used for basic validation.

    • Push: boolean = true

      Whether to push to changes to the server

    • Refresh: boolean = true

      Whether to refresh the character. This should generally be true, with custom script hooks being a potential exception.

    Returns boolean

    Whether properties were updated or not