BackpackCapacity
A refork of PI's BackpackCapacity, fixed for PEAK 1.0. Configurable backpack capacity (default 6 slots, min 1, max 100), adjustable in airport.
By Aolion
CHANGELOG
v1.0.2
添加:房主同步背包容量
v1.0.3
修复:增加、减少容量时的bug
v1.0.4
修复:同步时的bug
v1.0.4-fix1 (community patch)
Fixed for PEAK 1.0 final release:
- ItemSlot.prefab / ItemSlot.data are now properties (not public fields) in 1.0; direct field access in DeserializeValue/RefreshVisuals patches was throwing MissingFieldException at runtime, corrupting backpack state (inaccessible backpack, duplicate spawned on equip). Now routed through ItemSlot.SetItem() / get_prefab() / get_data() like vanilla 1.0 does.
- BackpackWheel.InitWheel gained a new
slotCountparameter in 1.0 that vanilla now uses to decide how many wheel slices actually get populated with item data (extra slots beyond the base default were being hidden/deactivated even though the mod had expanded capacity). InitWheelPrefix now overrides this value to match the configured capacity.
Original mod and all core design/functionality by PI (https://thunderstore.io/c/peak/p/PI/). This release is a binary-level compatibility patch only.