
Risk of Rain 2
You are viewing a potentially older version of this package. View Latest Version

R2API.Elites is a submodule assembly for R2API that allows mod creators to add new Elites, Elitetiers and properly working Elite Ramps for Elites in game.
R2API.Elites is used for adding new EliteDefs, EliteTierDefs and properly working Elite Ramps to the game.
The addition of Elites is handled via the CustomElite class, which contains the following information:
EliteDef: The Elite being added
EliteRamp: A Texture2D that's going to be the Elite's Ramp, this is what makes elites such as blazing elites have a different color palette
EliteTierDefs: The Elite being added will be added to the specified EliteTierDefs.
The EliteRamp implementation is handled inside the EliteRamp class, you can use the method AddRamp for tying a Ramp to an eliteDef, this can be useful in scenarios where you dont want to add Elites via the main EliteAPI. It also contains TryGetRamp method so you can get elite ramp texture for custom elites added via AddRamp method.
1.0.8BepInDependency to R2API.ContentManagement