RoR2-ChensGradiusMod

Gradius Mod in Risk of Rain 2.

View on GitHub

ChensGradiusMod

Chen.GradiusMod.Items.OptionSeed

OptionSeed Class

An item class which provides the main API related to the Option Seeds. It is powered by TILER2.

public class OptionSeed : TILER2.Item<Chen.GradiusMod.Items.OptionSeed.OptionSeed>

Inheritance System.Object 🡒 TILER2.AutoConfigContainer 🡒 TILER2.T2Module 🡒 TILER2.CatalogBoilerplate 🡒 TILER2.Item 🡒 TILER2.Item<OptionSeed> 🡒 OptionSeed

Methods  
FireForSeeds(CharacterBody, Action<GameObject,SeedBehavior,SeedTracker,float>) Loops through all the Option Seeds of the item wielder. The action has 4 useful parameters to use.
The first parameter refers to the Option Seed itself. It is a GameObject.
The second parameter refers to the SeedBehavior component of the Option Seed.
The third parameter refers to the SeedTracker component of the item wielder.
The last parameter is the computed damage multiplier based on configuration and item count of the owner.
SetHorizontalOffsetMultiplier(string, float) Sets the horizontal offset multiplier for certain characters since some characters have a larger width than the default value. Horizontal offset default is 0.8f.
SetRotationalRadius(string, float) Sets the rotational radius of Option Seeds for certain characters since some characters have a larger sizes just for the sake of matching. Radius default is .3f.
SetVerticalOffsetMultiplier(string, float) Sets the vertical offset multiplier for certain characters since some Option Seeds are positioned awkwardly. Vertical offset default is 0.4f.