Inherits some property from context to looted

inheritContext({looted, looter, {
contextProperty: 'dyed.color',
lootedProperty: 'item.color'
default: 'brown',
}})
  • Parameters

    • args: {
          args: {
              contextProperty?: string;
              default?: any;
              lootedProperty?: string;
              property?: string;
          };
          context: any;
          looted: LootTableEntryResult;
      }
      • args: {
            contextProperty?: string;
            default?: any;
            lootedProperty?: string;
            property?: string;
        }
        • OptionalcontextProperty?: string
        • Optionaldefault?: any
        • OptionallootedProperty?: string
        • Optionalproperty?: string
      • context: any
      • looted: LootTableEntryResult

    Returns void