• Adds an item of the type itemId with current stock of currentStock and max stock of stockMax to all shops in game.

    Parameters

    • itemId: number

      The item to add to the stock.

    • currentStock: number

      Determines the amount of that item in stock upon being added to the buildings.

    • stockMax: number

      The item will grow in stock count up to the value of stockMax. The rate at which the item grows in stock is determined by its stock replenish interval, which can be modified in the object editor.

    Returns void

    Note

    Some issues with default Blizzard initialization and that function were met. See http://www.hiveworkshop.com/forums/l-715/a-251815/ for details.

    Note

    Adding an item which already is in stock for a building will replace it and refresh the interval and stock count.

Generated using TypeDoc