@@ -6097,17 +6097,17 @@ Functions
60976097 this as default power consumption/production. Note: due to implementation limitations
60986098 workshop only connects to other machines if the other machine is build later than this one.
60996099
6100- :workshop_type: custom workshop string id e.g. ``SOAPMAKER `` or numeric id
6101- :needs_power: only function if it has sufficient power
6102- :power_consumed: building consumes this amount of power
6103- :power_produced: output this amount of power
6104- :connection_points: a table of ``{x=?,y=?} `` points that can connect to other machines
6100+ :workshop_type: custom workshop string id e.g. ``SOAPMAKER `` or numeric id
6101+ :needs_power: only function if it has sufficient power
6102+ :power_consumed: building consumes this amount of power
6103+ :power_produced: output this amount of power
6104+ :connection_points: a table of ``{x=?,y=?} `` zero-based coordinates that can connect to other machines
61056105
6106- * ``setMachineInfoAuto(workshop_type, needs_power, power_consumed, power_produced, gear_tiles) ``
6106+ * ``setMachineInfoAuto(workshop_type, needs_power, power_consumed, power_produced, [ gear_tiles] ) ``
61076107
61086108 Same as ``setMachineInfo `` but fills out the ``connection_points `` table from raws placing connection
61096109 points on tiles which have the gear tile. ``gear_tiles `` is an optional array of two tiles that are
6110- counted as gears in the workshop ascii tile raws.
6110+ counted as gears in the workshop ascii tile raws. The default gear tiles are `` 42 `` and `` 15 ``.
61116111
61126112* ``setAnimationInfo(workshop_type, frames, frame_skip) ``
61136113
@@ -6123,26 +6123,27 @@ Functions
61236123 :frame_skip: How many ticks to display one frame. If set to negative number (or skipped) frames
61246124 are synchronized with machine animation.
61256125
6126- * ``setAnimationInfoAuto(name , make_graphics_too, frame_skip, gear_tiles) ``
6126+ * ``setAnimationInfoAuto(workshop_type , make_graphics_too, [frame_length], [ gear_tiles] ) ``
61276127
61286128 Animate workshop as with function above but generate frames automatically. This works by finding
61296129 tiles which have gears and animating them with alternating gear tiles.
61306130
6131- :name : custom workshop string id e.g. ``SOAPMAKER ``
6131+ :workshop_type : custom workshop string id e.g. ``SOAPMAKER `` or numeric id
61326132 :make_graphics_too: replace same tiles in graphics mode with tiles from vanilla df mechanism
6133- :frame_skip: How many ticks to display one frame. If set to negative number (or skipped) frames
6134- are synchronized with machine animation.
6135- :gear_tiles: Optional array of 2 or 4 indexes. First two define ascii tiles and next two graphics tiles
6133+ :frame_length: How many ticks to display one frame. If set to negative number (or skipped) frames
6134+ are synchronized with machine animation.
6135+ :gear_tiles: Optional array of 2 or 4 indexes. First two define ascii tiles and next two graphics tiles.
6136+ This overrides default gear tiles.
61366137
6137- * ``setOnUpdate(name ,interval,callback) ``
6138+ * ``setOnUpdate(workshop_type ,interval,callback) ``
61386139
61396140 Setup callback to be called every ``interval `` of ticks for each building of this type. Note: low interval
61406141 numbers and/or many workshops that use this might reduce DF performance.
61416142
6142- :name : custom workshop string id e.g. ``SOAPMAKER ``
6143- :interval: how many ticks to skip between event triggers
6144- :callback: function to call. Function signature is ``func(workshop) `` where ``workshop `` is of type
6145- ``df.building_workshopst ``
6143+ :workshop_type : custom workshop string id e.g. ``SOAPMAKER `` or numeric id
6144+ :interval: how many ticks to skip between event triggers
6145+ :callback: function to call. Function signature is ``func(workshop) `` where ``workshop `` is of type
6146+ ``df.building_workshopst ``
61466147
61476148* ``getPower(building) ``
61486149
0 commit comments