Valheim
You are viewing a potentially older version of this package. View Latest Version
Install with App

Details

Date Uploaded
Downloads
100
Size
198KB
ADDatHost Valheim hosting
30% off

Storage Upgrade

Allows to upgrade size of containers

Features

  • Upgrade container rows
  • Upgrade container column (off by default)
  • refund upgrade cost on destroy

Notes

Base game handles items within container outside of inventory size rows, but not column ( which is why upgrade container column is off by default ); Thus, if you allow to upgrade container columns and upgrade column, do not remove plugin or else the UI for that specific container will break.

Cost Calculation

  • Full: the cost to upgrade is determined by the total cost of the piece
  • Half: the cost to upgrade is determined by half the cost of the piece
  • Percentage: the cost to upgrade is determined by the added slots difference from the base size as a percentage of the cost of the piece

Percentage example:

Wooden chest: 
  original cost: 10x Wood
  base size: 5 columns x 2 rows ( 10 slots )
  added row: 1
  new size: 5 columns x 3 rows
  slot difference: 5 (50%)
  cost: 5x Wood

Let's say you upgraded the column by 1 and now upgrade row by 1:

Wooden chest:
  original cost: 10x Wood
  base size: 5 columns x 2 rows ( 10 slots )
  previously added column: 1
  added row: 1
  new size: 6 columns x 3 rows
  slot difference: 6 (60%)
  cost: 6x Wood

Custom Upgrade Map

If you want to define custom cost to upgrade, find config entry Custom Upgrade Map

## Define upgrade costs, [prefabId]:[itemId]*[amount],...;... [Synced with Server]
# Setting type: String
# Default value:
Custom Upgrade Map = piece_chest_wood:Wood*5,Iron*1

This example shows how to define upgrade cost of piece_chest_wood, for a cost of 5x Wood and 1x Iron

  • Multiple prefab entries are separated by ;
  • Multiple item entries are separated by ,

This will change the base cost of the upgrade ( the default is the cost to build the piece container ), then the actual cost will be calculated based on desired configured option (Full, Half, Percentage)

Need a dedicated server ?

Use this link: https://www.survivalservers.com/?ref=rustymods , I'll get a 20% commission. Thanks

Donations

If you enjoy this mod and want to support me: PayPal

https://www.buymeacoffee.com/peimalcolm2
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.