not_score-ScrapMe icon

ScrapMe

!! BREAKING CONFIG UPDATE !! On-pickup item scrapping for per-character item bans

Last updated a week ago
Total downloads 821
Total rating 1 
Categories Mods Tools Libraries Tweaks Items Alloyed Collective
Dependency string not_score-ScrapMe-0.5.0
Dependants 1 other package depends on this package

This mod requires the following mods to function

bbepis-BepInExPack-5.4.2121 icon
bbepis-BepInExPack

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

Preferred version: 5.4.2121

README

Last breaking config change: 0.5.0

the mod

If you're a mod dev and there's one item you really hate for its interactions with a character (i.e. Eclipse Lite), but don't want to write auto-scrap code, use this mod's API.

If you're a player and really hate how one item interacts with a character, but don't want to blacklist it for every character, this is the mod for you.

how to use (player)

Instructions should appear in the config file after first launch. Currently, it's recommended to use RiskOfOptions to configure the mod, but is not required.

Here's a quick guide:

  1. Click the button to create an entry for the current character.
  2. In the section for the particular character, enter in the item IDs you want banned.
  • With Quality, to ban Rare Leeching Seed, you would add SeedRare, for example.
  1. You're done! Unpause, and the item will turn into scrap from that point onwards.

Right now, config changes won't scrap items in your inventory.

how to use (dev)

For mod devs, add a dependency on ScrapMe, then modify the set returned by ScrapMe.plugin.bans.items.dev[bodyIndex].

Don't worry about having to clean config when a broken item stops being broken, this API is separate from the user config, just remove the item ban and you'll be able to pick up the item as normal.

I'm not sure if there are ways in which items get added to inventories that sidestep the calls I've seen so far, so bring it up on the discord if it becomes an issue.

evil schemes

  • Config:
    • [X] Re-do config to use CharacterBody.name rather than name tokens.
    • [X] Add ability to change item bans mid-game.
      • [ ] Add DebugToolkit compat.
      • [X] Add RiskOfOptions compat.
        • [X] Add config auto-apply.
      • [ ] Scrub inventory on changes to item bans.
    • [X] Add ability to unban items.
  • Implementation
    • [X] Add support for equipment bans. This is an extremely specific issue.
    • [ ] Add ability to ban particular item combos.
    • [ ] Scrub inventory on morphing characters.
    • [ ] Change item pickup notification for clarity a la void item corruption.
    • [ ] Custom pickup replacements (maybe ???)
  • Compatibility:
    • [X] Quality
    • [X] Void item corruption exclusion
    • [ ] Multiplayer (might work, likely server-authority right now)

thanks

  • toast: the amazing and awesome icon
  • ror2 modcord: being patient and helpful
  • diselgonk: giving me the motivation to update this mod