Changes

→‎Custom objects: update for build 24071 (can now have multiple buffs)
Line 1,857: Line 1,857:  
| ''(Optional)'' Whether to drink the item instead of eating it. Default false.
 
| ''(Optional)'' Whether to drink the item instead of eating it. Default false.
 
|-
 
|-
| <samp>Buff</samp>
+
| <samp>Buffs</samp>
| ''(Optional)'' The buff to apply to the player when this item is eaten, if any. Default none.
+
| ''(Optional)'' The buffs to apply to the player when this item is eaten, if any. Default none.
   −
This consists of a model with these fields:
+
This consists of a list of models with these fields:
 
{| class="wikitable"
 
{| class="wikitable"
 
|-
 
|-
 
! field
 
! field
 
! purpose
 
! purpose
 +
|-
 +
| <samp>Id</samp>
 +
| The [[Modding:Common data field types#Unique string ID|unique string ID]] for this entry within the list.
 
|-
 
|-
 
| <samp>Duration</samp>
 
| <samp>Duration</samp>
| The buff duration measured in in-game minutes. This can be set to value <samp>-2</samp> for a buff that should last for the rest of the day.
+
| ''(Optional if <samp>BuffId</samp> is set)'' The buff duration measured in in-game minutes. This can be set to <samp>-2</samp> for a buff that should last for the rest of the day.
 
|-
 
|-
 
| <samp>BuffId</samp>
 
| <samp>BuffId</samp>
translators
8,437

edits