You are viewing a potentially older version of this package. View all versions.
BULLETBOT-MoreUpgrades-1.1.2 icon

MoreUpgrades

Adds more upgrade items to the game, has an library and is highly configurable.

Date uploaded 16 hours ago
Version 1.1.2
Download link BULLETBOT-MoreUpgrades-1.1.2.zip
Downloads 11801
Dependency string BULLETBOT-MoreUpgrades-1.1.2

This mod requires the following mods to function

Zehs-REPOLib-1.2.0 icon
Zehs-REPOLib

Library for adding content to R.E.P.O.

Preferred version: 1.2.0

README

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

  1. Use the Project Patcher: Follow the instructions in the R.E.P.O. Project Patcher's README.
  2. Find an Existing Item: Search for an item in the project that you want to use as a reference.
  3. Create Your Own Item and Prefab: Duplicate it and modify the item and the prefab as you wish.
  4. 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, you can use the following methods:

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

CHANGELOG

Note

If that version is not listed here, do not download that version, as it can cause some issues.

1.1.7

  • Added a new upgrade item called "Map Player Tracker".
  • Removed a config entry called "Price".
  • Added new config entries called "Minimum Price" and "Maximum Price". (Note: My fault for not looking through the code myself. That's why the prices were weird.)

1.1.3

  • Added a new field called "onChanged" in the "UpgradeItem" class for the developers.
  • Added a new method called "GetCoreUpgradeItems" in the "MoreUpgradesLib" class for the developers.
  • Renamed the upgrade item called "Map Enemy Display" to "Map Enemy Tracker" (Note: This breaks some existing runs.)
  • Fixed some issues with the upgrade item called "Map Enemy Tracker"

1.1.2

  • Added a library that allows developers to add their own upgrade items. See the README for details.
  • Removed a config entry called "Has Max Purchase".

1.0.9

  • Updated the config entry called "Starting Amount" to be server-sided.

1.0.8

  • Added a new upgrade item called "Map Enemy Display".
  • Removed the config entries called "Min Value" and "Max Value".
  • Added new config entries called "Price" and "Starting Amount".
  • Added new config entries for various upgrade items.
  • Fixed various bugs with upgrade item called "Sprint Usage"
  • Updated the config structure.
  • Updated the mod icon.

1.0.6

  • Updated the code to support the latest version of REPOLib.

1.0.5

  • Added a new config entry called "Allow Team Upgrades".
  • Updated the config entry called "Enabled", which now controls whether the upgrade item can be added to the shop instead of being removed entirely. Thanks for the help from the R.E.P.O. Modding Server.

1.0.3

  • Fixed the manager where it won't spawn in some levels.

1.0.0

  • Initial release.