ChensGradiusMod
Chen.GradiusMod.Items.ItemBase
ItemBase.GetCountSpecific(CharacterBody, ItemDef) Method
Gets the number of a specific item the body has.
public int GetCountSpecific(CharacterBody body, ItemDef specificItemDef);
Parameters
body RoR2.CharacterBody
The body to check
specificItemDef RoR2.ItemDef
The item to count
Returns
System.Int32
The item count. 0 if the body or its inventory is missing.