MoreUpgrades
Adds more upgrade items to the game.
Items
- Sprint Usage: It uses less stamina when sprinting. Can be upgraded multiple times.
- Valuable Count: Displays the number of valuables under the mission text. Can be upgraded only once.
- Map Enemy Display: Displays enemies in the map radar. Can be upgraded only once.
Configuration
- Enabled: Whether the upgrade item can be added to the shop.
- Max Amount: The maximum number of times the upgrade item can be bought at once.
- Max Amount In Shop: The maximum number of times the upgrade item can appear in the shop.
- Price: The cost to purchase the upgrade item.
- Max Purchase Amount: The total number of times the upgrade item can be purchased.
- Allow Team Upgrades: Whether the upgrade item applies to the entire team instead of just one player.
- Starting Amount: The number of times the upgrade item is applied at the start of the game.
Note
Some upgrade items have more configuration.
Check the config file after updates, as values may change between versions.
Adding Custom Upgrade Items
To add new upgrade items, you have to use the R.E.P.O. Project Patcher.
Steps to Add An Upgrade Item
- Use the Project Patcher: Follow the instructions in the R.E.P.O. Project Patcher's README.
- Find an Existing Item: Search for an item in the project that you want to use as a reference.
- Create Your Own Item and Prefab: Duplicate it and modify the item and the prefab as you wish.
- Make an Asset Bundle: Package your item and prefab into an asset bundle so they can be loaded to the game.
Registering Your Upgrade Item
Once you are done, use the following method to register it:
using MoreUpgrades.Classes;
MoreUpgradesLib.GetUpgradeItemsByMod(
string modGUID
); => IReadOnlyList<UpgradeItem>
MoreUpgradesLib.Register(
string modGUID,
Item item,
GameObject prefab,
string name,
int maxAmount,
int maxAmountInShop,
float price,
int maxPurchaseAmount = 0
); => UpgradeItem