Phedg1Studios-ItemDropAPIFixes icon

ItemDropAPIFixes

Fixes common issues with *R2API's ItemDropAPI* submodule. Also contains an API to set which items monsters can use.

Last updated a week ago
Total downloads 2094
Total rating 1 
Dependency string Phedg1Studios-ItemDropAPIFixes-1.0.2
Dependants 3 other mods depend on this mod

This mod requires the following mods to function

tristanmcpherson-R2API-2.5.14 icon
tristanmcpherson-R2API

A modding API for Risk of Rain 2

Preferred version: 2.5.14
bbepis-BepInExPack-5.3.1 icon
bbepis-BepInExPack

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

Preferred version: 5.3.1
README

Phedg1 Studios - Item Drop API Fixes

You can contact me in the modding discord as @Phedg1
If you are a fan of my work and would like to support me, I now have a DONATION LINK.
The SOURCE CODE for this project is available.

My mods would not be possible without the amazing core developers who made and maintian BepInEx and R2API. The tools they have created, as well as their forthcoming support in the modding discord, made all the difference in the world. If you have chosen to donate to me, I would ask that you also consider donating to them. None of this would be possible without them.

TLDR

Fixes common issues with R2API's ItemDropAPI submodule. Also contains an API to set which items monsters can use.

R2API Item Drop API Fixes

  • If the drop list does not contain any items that a particular chest can drop, that chest will no longer be spawned.This also applies to casino chests, equipment drones, lockboxes, multishops, 3D printers, Scavenger backpacks and shrines. This is instead of the chest being spawned but giving no item when opened.
  • If the drop list does not contain any items of a particular tier, that tier will be removed from the drop pool. This applies to chests, casino chests, lockboxes, Scavenger backbacks and shrines. This is instead of chests giving no items when that tier is selected.
  • Elite enemies and teleporter bosses are now restricted to only dropping items if they are contained in the drop list.
  • Cauldrons and Lunar Buds in the Bazaar Between Time will not be interactable and will not display an item if the drop list does not contain any items of their particular tier.
  • Shrine of Cleansing will only spawn if the drop list contains lunar items or equipment AND a pearl.
  • The Scrapper will only spawn if the drop list contains scrap and non scrap items of the same tier.
  • The Artifact of Command interface are contrained to only showing items that are contained within the drop list.
  • The Scrapper interface is constrained to only showing items if scrap of that tier of item is contained in the drop list.
  • Updates ShareSuite so randomized pickups conform to the drop list.

MONSTER TEAM ITEMS API

  • Monsters can only receive items that are contained witin the monster drop list. Applies to Scavengers, Void Fields stage and Artifact of Evolution.

USING MONSTER TEAM ITEMS API

To modify the which items monsters can recieve, add hook using Phedg1Studios.ItemDropAPI.ItemDropAPI.setDropLists += YOUR METHOD, and inside that hook update Phedg1Studios.ItemDropAPI.ItemDropAPI.monsterItems. monsterItems is defined as List<PickupIndex>. By default it contains every item the player has unlocked.

NOTE

This mod has a quite a large surface area, meaning it interposes with the base game in many places. Because of this, future updates to the base game are likely to break things. If / when this happens, please reach out to me on Discord and let me know.

CREDITS

Education
Ebkr, Harb, iDeathHD, KingEnderBrine

Support, Suggestions, Beta Testing and Bug Reports
blazingdrummer, breadguy69, Dragasath, EspieBodespie, FunkFrog, itλy, pindab0ter, Siponodo, Theray070696, Undead, VoidInsanity

Changelog

v1.0.2

  • Fixed not effecting elite equipment drops.
  • Fixed not adding certain drops by default (Artifact Key).

v1.0.1

  • Removed redunant BiggerBazaar code.

v1.0.0

  • Initial Release

Available versions

Please note that the install buttons only work if you have compatible client software installed. Otherwise use the zip download links instead.

Upload date Version number Downloads Download link  
2020-9-14 1.0.2 1351 Phedg1Studios-ItemDropAPIFixes-1.0.2.zip Install
2020-9-12 1.0.1 683 Phedg1Studios-ItemDropAPIFixes-1.0.1.zip Install
2020-9-11 1.0.0 60 Phedg1Studios-ItemDropAPIFixes-1.0.0.zip Install