Line 1,870: |
Line 1,870: |
| |- | | |- |
| | <samp>BuffId</samp> | | | <samp>BuffId</samp> |
− | | ''(Optional)'' The buff ID to apply. If this matches an entry in [[#Custom buffs|<samp>Data/Buffs</samp>]], its data fields will be applied unless overridden by one of the other fields. Defaults to <samp>food</samp> or <samp>drink</samp> depending on the item's <samp>IsDrink</samp> field. | + | | ''(Optional)'' The unique ID of a buff from [[#Custom buffs|<samp>Data/Buffs</samp>]] to apply, or <samp>null</samp> to ignore <samp>Data/Buffs</samp> and set the ID to <samp>food</samp> or <samp>drink</samp> depending on the item's <samp>IsDrink</samp> field. |
| + | |
| + | If a buff from <samp>Data/Buffs</samp> is applied, here is how each field is combined: |
| + | {| class="wikitable" |
| + | |- |
| + | ! field |
| + | ! result |
| + | |- |
| + | | <samp>Duration</samp><br /><samp>IconTexture</samp><br /><samp>SpriteIndex</samp><br /><samp>GlowColor</samp> |
| + | | If specified, the value in <samp>Data/Objects</samp> is used instead of the one in <samp>Data/Buffs</samp>. If omitted, defaults to the value from <samp>Data/Buffs</samp>. |
| + | |- |
| + | | <samp>CustomAttributes</samp> |
| + | | The values from both entries are combined (e.g. +1 speed in <samp>Data/Objects</samp> and +1 speed in <samp>Data/Buffs</samp> results in +2 speed). |
| + | |- |
| + | | <samp>IsDebuff</samp> |
| + | | The value in <samp>Data/Objects</samp> is used. |
| + | |} |
| |- | | |- |
| | <samp>IsDebuff</samp> | | | <samp>IsDebuff</samp> |