Rico-AffixGen icon

AffixGen

Elite effects on-demand! Comes with two new equipment to grant affixes on use.

Last updated 2 weeks ago
Total downloads 6333
Total rating 4 
Dependency string Rico-AffixGen-2.2.0
Dependants 3 other mods depend on this mod

This mod requires the following mods to function

bbepis-BepInExPack-5.3.1 icon
bbepis-BepInExPack

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

Preferred version: 5.3.1
tristanmcpherson-R2API-2.5.14 icon
tristanmcpherson-R2API

A modding API for Risk of Rain 2

Preferred version: 2.5.14
README

Basic Description

Two new equipment: Untapped Potential and Tempestuous Rage.
UP is a basic equipment that will give the user an elite buff for the rest of the stage then destroy itself.
TR is a lunar equipment that will give the user the elite buff of the most recent elite that hurt them. This buff will be kept between stages, but also comes with a curse that increases ALL damage taken.
The curses from TR can be temporarily reduced by gaining the elite buff via UP, Wake of Vultures, or the normal Elite Equipment. (The percent damage increase per curse is configurable)

Planned Features

Improve/replace the buff icon for the "Curse", its a placeholder now (reach out if interested)
When buffs are given by UP or TR, give the elite equip display

Note for Mod Devs

If you want to add compatibility for AffixGen to your own elite buff types, I've made the library that holds the affix trackers public to aid in this.
All you should need to do is add a soft dependency to this plugin and after you register your elite types, the buffs, and their equipment, you should be able to add a new AffixTracker to AffixTrackerLib.affixTrackers.
The AffixTracker class and its constructors are self-documented, so it should be fairly easy to make them. Reach out if there's something that doesn't make sense.

Changelog

2.2.0 - Minor refactor to tracking system, added visual buff for the "Curse" mechanic, new notes for compatibility
2.1.3 - Did a bit of code cleanup, no new functionality, just making the code a bit lighter and faster
2.1.2 - Added some more error-proofing since the last assumption wasn't the only one that was wrong
2.1.1 - Fixed an error that occured due to my assumption that every HealthComponent has a CharacterBody
2.1.0 - Major refactor to hook registration, turrets and drones are re-enabled and should be lag-free
2.0.5 - Changed hook to check if player controlled, should prevent odd behaviour with drones/turrets/clones
2.0.4 - Added a check to prevent Drones and Turrets from registering hooks
2.0.3 - Accidentally disabled all other ItemBehaviours in 2.0.2, fixed that
2.0.2 - Fixed a networking bug that gave clients faulty buff icons
2.0.1 - Fixed a bug that prevented multiple runs without relaunching the game
2.0.0 - Complete redesign, expect day-one bugs
1.1.3 - Fixed a bug that was causing a bunch of issues
1.1.2 - Fixed a bug with Rex and DoT type damage
1.1.1 - Fixed bug that may cause global invincibility
1.1.0 - Added Configuration
1.0.1 - Refactored to prevent infinte loop with LightningOrb
1.0.0 - Initial Upload

Installation

Place the .dll in Risk of Rain 2\BepInEx\plugins or use a mod manager.

Contact

If you have issues/suggestions leave them on the github as an issue/suggestion or reach out to @Rico#6416 on the modding Discord.

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-12-31 2.2.0 806 Rico-AffixGen-2.2.0.zip Install
2020-10-29 2.1.3 950 Rico-AffixGen-2.1.3.zip Install
2020-10-3 2.1.2 658 Rico-AffixGen-2.1.2.zip Install
2020-10-3 2.1.1 48 Rico-AffixGen-2.1.1.zip Install
2020-10-2 2.1.0 75 Rico-AffixGen-2.1.0.zip Install
2020-9-25 2.0.5 352 Rico-AffixGen-2.0.5.zip Install
2020-9-24 2.0.4 153 Rico-AffixGen-2.0.4.zip Install
2020-9-19 2.0.3 292 Rico-AffixGen-2.0.3.zip Install
2020-9-19 2.0.2 94 Rico-AffixGen-2.0.2.zip Install
2020-9-18 2.0.1 145 Rico-AffixGen-2.0.1.zip Install
2020-9-17 2.0.0 99 Rico-AffixGen-2.0.0.zip Install
2020-4-18 1.1.3 1880 Rico-AffixGen-1.1.3.zip Install
2020-4-18 1.1.2 95 Rico-AffixGen-1.1.2.zip Install
2020-4-17 1.1.1 180 Rico-AffixGen-1.1.1.zip Install
2020-4-16 1.1.0 111 Rico-AffixGen-1.1.0.zip Install
2020-4-16 1.0.1 100 Rico-AffixGen-1.0.1.zip Install
2020-4-14 1.0.0 295 Rico-AffixGen-1.0.0.zip Install