Line 536: |
Line 536: |
| | | |
| ===Custom machines=== | | ===Custom machines=== |
− | You can now add/edit machine logic by editing the <samp>Data/MachinesData</samp> asset. This consists of a string → model lookup, where the key matches the <samp>ID</samp> field and the value is a model with these fields: | + | You can now add/edit machine logic by editing the <samp>Data/Machines</samp> asset. This consists of a string → model lookup, where the key matches the <samp>ID</samp> field and the value is a model with these fields: |
| | | |
| ====Required fields==== | | ====Required fields==== |
Line 1,220: |
Line 1,220: |
| |- | | |- |
| | <samp>is_machine</samp> | | | <samp>is_machine</samp> |
− | | Indicates the item has [[#Custom machines|machine logic]]. This is added automatically based on <samp>Data/MachinesData</samp> and is informational only (it has no effect on the game logic). | + | | Indicates the item has [[#Custom machines|machine logic]]. This is added automatically based on <samp>Data/Machines</samp> and is informational only (it has no effect on the game logic). |
| |- | | |- |
| | <samp>keg_juice</samp><br /><samp>keg_wine</samp> | | | <samp>keg_juice</samp><br /><samp>keg_wine</samp> |
Line 1,228: |
Line 1,228: |
| | Whether the item is a machine which accepts items from the player (<samp>machine_input</samp>) and/or which produces items for the player to collect (<samp>machine_output</samp>). If the [[#Custom machines|machine data]] sets the <samp>ConversionMethod</samp> field, both tags are added since there's no way to know what the method does. | | | Whether the item is a machine which accepts items from the player (<samp>machine_input</samp>) and/or which produces items for the player to collect (<samp>machine_output</samp>). If the [[#Custom machines|machine data]] sets the <samp>ConversionMethod</samp> field, both tags are added since there's no way to know what the method does. |
| | | |
− | These are added automatically based on <samp>Data/MachinesData</samp> and are informational only (they have no effect on the game logic). The <samp>is_machine</samp> tag is always added if these are. | + | These are added automatically based on <samp>Data/Machines</samp> and are informational only (they have no effect on the game logic). The <samp>is_machine</samp> tag is always added if these are. |
| |- | | |- |
| | <samp>preserves_jelly</samp><br /><samp>preserves_pickle</samp> | | | <samp>preserves_jelly</samp><br /><samp>preserves_pickle</samp> |
Line 4,278: |
Line 4,278: |
| ! effect | | ! effect |
| |- | | |- |
− | | <samp>Data/MachinesData</samp> | + | | <samp>Data/Machines</samp> |
| | The location containing the machine. | | | The location containing the machine. |
| |- | | |- |
Line 4,352: |
Line 4,352: |
| | | |
| ===Quantity modifiers=== | | ===Quantity modifiers=== |
− | ''Quantity modifiers'' apply dynamic changes to a numeric field in a data asset like [[#Custom shops|<samp>Data/Shops</samp>]] or [[#Custom machines|<samp>Data/MachinesData</samp>]]. For example, you can multiply a shop item's price or increase a machine output's quality. You can specify any number of modifiers for the same field. | + | ''Quantity modifiers'' apply dynamic changes to a numeric field in a data asset like [[#Custom shops|<samp>Data/Shops</samp>]] or [[#Custom machines|<samp>Data/Machines</samp>]]. For example, you can multiply a shop item's price or increase a machine output's quality. You can specify any number of modifiers for the same field. |
| | | |
| ====Modifier format==== | | ====Modifier format==== |