Shared Storage: Difference between revisions

From Desynced Wiki
mNo edit summary
mNo edit summary
Line 9: Line 9:
======Example 1:<br />======
======Example 1:<br />======
You have an {{IL|Assembler}} creating {{IL|Circuit Board}}s<br />
You have an {{IL|Assembler}} creating {{IL|Circuit Board}}s<br />
You have a Storage with a {{IL|Shared Storage}} component<br />
You have a {{IL|Storage_Block_(8)}} with a {{IL|Shared Storage}} component<br />
The Storage has a slot locked to Circuit Boards<br />
The {{IL|Storage_Block_(8)}} has a slot locked to {{IL|Circuit Board}}s<br />
When the Assembler fills up to its maximum capacity, the Shared Storage will request a stack of Circuit Boards to be transferred, freeing up a slot in the Assembler building.<br />
When the {{IL|Assembler}} fills up to its maximum capacity, the Shared Storage will request a stack of {{IL|Circuit Board}}s to be transferred, freeing up a slot in the {{IL|Assembler}} building.<br />


======Example 2:<br />======
======Example 2:<br />======
You have decided that the {{IL|Assembler}} building above is to be re-tasked to Reinforced {{IL|Metal Plate}}s production.<br />
You have decided that the {{IL|Assembler}} building above is to be re-tasked to {{IL|Reinforced Plate}}s production.<br />
Upon switching to Reinforced Metal Plates, the Shared Storage will request the remaining Circuit Boards if they need to be removed in order for the Assembler to produce.<br />
Upon switching to {{IL|Reinforced Plate}}s, the {{IL|Shared Storage}} will request the remaining {{IL|Circuit Board}}s if they need to be removed in order for the {{IL|Assembler}} to produce.<br />


{{:GameData:Recipe:{{PAGENAME}}}}
{{:GameData:Recipe:{{PAGENAME}}}}

Revision as of 05:02, 19 August 2023

Shared Storage
     
     Set locked slots on unit to allow dumping of excess items
Lua ID c_shared_storage
Size Internal


Set locked slots on unit to allow dumping of excess items

Function:

When a building or unit is full it looks for a Shared Storage with the appropriately locked slots to transfer its storage

Example 1:

You have an Assembler creating Circuit Boards
You have a Storage_Block_(8) with a Shared Storage component
The Storage_Block_(8) has a slot locked to Circuit Boards
When the Assembler fills up to its maximum capacity, the Shared Storage will request a stack of Circuit Boards to be transferred, freeing up a slot in the Assembler building.

Example 2:

You have decided that the Assembler building above is to be re-tasked to Reinforced Plates production.
Upon switching to Reinforced Plates, the Shared Storage will request the remaining Circuit Boards if they need to be removed in order for the Assembler to produce.


Recipe
Cable Refined Crystal Shared Storage
Cable 5 Refined Crystal 3 Arrow Right Shared Storage
Produced by
Assembler Time
4.0 seconds
[[{{{14}}}]] Time
[[File:{{{14}}}.png|64x64px|link={{{14}}}]] {{{15}}} seconds
[[{{{16}}}]] Time
[[File:{{{16}}}.png|64x64px|link={{{16}}}]] {{{17}}} seconds


Technology Group
Behaviors