Storage Refactor (EmoGarbage) #21358
mirrorcult
announced in
Code announcements
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Storage Refactor #21270
Items no longer are sized with numerical values. They now use the
ItemSize
enum, which has the following values:Additionally,
StorageComponent
no longer uses capacity. For defining a basic storage item, like a backpack,maxTotalWeight
functions equivalently. Make sure you update the values accordingly: the value for backpacks is 28 and 40 for duffels.maxItemSize
can also be specified, which limits what items can be inserted based on their size enum value. If this is null, it will default to one size less than the storage item's size.If you wish to use slots for your storage, like belts, simply define
maxSlots
, which overrides the logic formaxTotalWeight
. It is simply a fixed number of items that can fit in a given container (assuming that they are of appropriate size and match the whitelist).Beta Was this translation helpful? Give feedback.
All reactions