Phedg1Studios-EarnStartingItemsConsumable icon

EarnStartingItemsConsumable

This mod will allow players to earn credits which they can use to purchase single use starting items in an item shop.

Last updated 4 years ago
Total downloads 1211
Total rating 3 
Categories Mods
Dependency string Phedg1Studios-EarnStartingItemsConsumable-1.0.1
Dependants 0 other packages depend on this package

This mod requires the following mods to function

bbepis-BepInExPack-3.0.0 icon
bbepis-BepInExPack

Unified BepInEx all-in-one modding pack - plugin framework, detour library

Preferred version: 3.0.0
tristanmcpherson-R2API-2.3.22 icon
tristanmcpherson-R2API

A modding API for Risk of Rain 2

Preferred version: 2.3.22
wildbook-MiniRpcLib-0.0.1 icon
wildbook-MiniRpcLib

This is an alpha/beta library. It works, but there are breaking changes planned. It's released here to allow developers to reference it as a dependency.

Preferred version: 0.0.1

README

Phedg1 Studios

Earn Starting Items

TLDR

This mod will allow players to earn credits which they can use to purchase consumable starting items in an item shop. Works in both singleplayer and multiplayer (if the host and the client have the mod installed and enabled).

INSPIRATION

This mod was inspirired by Lunar coins, their psersistance between games and their single use nature.

DESCRIPTION

Players will credits for every stage they have cleared. The amount of credits awarded per stage cleared will vary based on the game's difficulty and how it ended (win, loss, obliteration). Players WILL NOT be accredited for any stages completed before adding this mod. Additionally, The main menu will have a new button labelled "Consumable Shop". Clicking it will open up the shop interface. Every item and piece of equipment that has been unlocked (completed the requisite achievement) and discovered (been picked up at least once) will be listed here, alongside its price and how many times it has been purchased. To purchase an item or piece of equipment, left click it. The same item can be purchased multiple times. To sell an item or piece of equipment, right click it. Selling an item or piece of equipment gives a full refund. Every item and piece of equipment that has been purchased will be spawned at the beginning of the player's next game. The player's credits will be "used up" when the items they were spent on are spawned into a game, no additional items will spawn in subsequent games until more have been purchased in the shop. This mod can be enabled and disabled from this menu, should the player wish to play normally again.

CONFIGURATION

After a player has opened the item shop interface for the first time a number of configuration files will be created. These can be found at "<RISK OF RAIN 2 INSTALL LOCATION>/Risk of Rain 2/BepInEx/config/Phedg1 Studios/Earn Starting Items/" and "<RISK OF RAIN 2 INSTALL LOCATION>/Risk of Rain 2/BepInEx/config/Phedg1 Studios/Earn Starting Items/<YOUR PROFILE ID>/". If you desire to alter the configuration of the mod it must be done by editing these files. The intention is that this would only be necessary once, with the rest of the player's interactions being done through the shop interface inside the game itself.

ShowAllItems.cfg When this file is blank the player will only have access to the items and equipment that they have unlocked and discovered. If anything is written inside this file, they will have access to every item and piece of equipment in the game.

ItemPrices.cfg Contains the number of credits (in integers) that the different types of items cost, separated by a comma. These types are, from left to right; tier 1 items (white), tier 2 items (green), tier 3 items (red), boss items (yellow), lunar items (blue), equipment (orange), lunar equipment (blue), elite / hidden equipment (orange). Editing these values will update them in the store.

ProfileCredits.cfg When this file is blank the player will only be accredited for the credits they have earnt. Enter the number of credits (as an integer) to override the number of credits this player has to spend in the shop.

RewardMultipliers.cfg Contains the multipliers for how many credits are earned for each stage cleared based on the games results. From left to right these are: win, loss, obliteration, easy, medium, hard. The amount of credits earned for an medium obliteration game would be gameStages * medium * obliteration.

ItemsPurchased.cfg This is the record of what items and equipment the player has purchased, so that they can persist after the game has been closed.

Enabled.cfg This is the record of whether the mod is enabled, so that it can persist after the game has been closed.

Changelog

v1.0.1 Hopefully fixed a scaling issue when playing at different resolutions. Enabled button will now show the correct label when there are no items that have been unlocked and discovered. Changed the extension on the configuration files from .txt to .cfg for compatability with r2modman mod manager.

v1.0.0 Initial release.