Changes

Jump to navigation Jump to search
→‎Custom garbage cans: update for build 22300: split Stack into MinStack + MaxStack, add QualityModifiers + QualityModifierMode
Line 1,810: Line 1,810:  
| ''(Optional)'' The quality of the item to find. One of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or <samp>4</samp> (iridium). Invalid values will snap to the closest valid one (e.g. <samp>7</samp> will become iridium). Default normal quality.
 
| ''(Optional)'' The quality of the item to find. One of <samp>0</samp> (normal), <samp>1</samp> (silver), <samp>2</samp> (gold), or <samp>4</samp> (iridium). Invalid values will snap to the closest valid one (e.g. <samp>7</samp> will become iridium). Default normal quality.
 
|-
 
|-
| <samp>Stack</samp>
+
| <samp>MinStack</samp>
| ''(Optional)'' The item's stack size. For example, setting this to <samp>5</samp> will give the player five items when they find it. Default 1.
+
| ''(Optional)'' The item's stack size after it's purchased. For example, setting this to <samp>5</samp> will give the player five items when they find it. This is only applied after the item is purchased, so it has no effect on the price or <samp>Stock</samp> limit. Default -1, which keeps the value set by the item query (usually 1).
 +
|-
 +
| <samp>MaxStack</samp>
 +
| ''(Optional)'' If set to a value higher than <samp>MinStack</samp>, the stack is set to a random value between them (inclusively).
 
|-
 
|-
 
| <samp>ToolUpgradeLevel</samp>
 
| <samp>ToolUpgradeLevel</samp>
Line 1,828: Line 1,831:  
| ''(Optional)'' Whether to add the item to the player's inventory directly, opening an item grab menu if they don't have room in their inventory. If false, the item will be dropped on the ground next to the garbage can instead. Default false.
 
| ''(Optional)'' Whether to add the item to the player's inventory directly, opening an item grab menu if they don't have room in their inventory. If false, the item will be dropped on the ground next to the garbage can instead. Default false.
 
|-
 
|-
| <samp>StackModifiers</samp>
+
| <samp>QualityModifiers</samp><br /><samp>StackModifiers</samp>
| ''(Optional)'' [[#Quantity modifiers|Quantity modifiers]] applied to the <samp>Stack</samp> value. Default none.
+
| ''(Optional)'' [[#Quantity modifiers|Quantity modifiers]] applied to the <samp>Quality</samp> or <samp>Stack</samp> value. Default none.
 +
 
 +
The quality modifiers operate on the numeric quality values (''i.e.'' <samp>0</samp> = normal, <samp>1</samp> = silver, <samp>2</samp> = gold, and <samp>4</samp> = iridium). For example, silver × 2 is gold.
 
|-
 
|-
| <samp>StackModifierMode</samp>
+
| <samp>QualityModifierMode</samp><br /><samp>StackModifierMode</samp>
| ''(Optional)'' [[#Quantity modifiers|quantity modifier modes]] which indicate what to do if multiple modifiers in the <samp>StackModifiers</samp> field apply at the same time. Default <samp>Stack</samp>.
+
| ''(Optional)'' [[#Quantity modifiers|quantity modifier modes]] which indicate what to do if multiple modifiers in the <samp>QualityModifiers</samp> or <samp>StackModifiers</samp> field apply at the same time. Default <samp>Stack</samp>.
 
|}
 
|}
 
|}
 
|}
translators
8,447

edits

Navigation menu