Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
ontrigger authored Aug 23, 2020
1 parent 040505e commit b07a349
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,15 @@ First thing you'll need is the BepInExPack. If you don't have it, get it [here](

Afterwards, get the zip file from releases and extract the ItemStats folder in BepInEx/plugins. That's it!

# Custom Item API
In order to use API, add a Bepin SoftDependency to your BaseUnityPlugin annotations.

Then, create an ItemStatDef for your item (see ItemStatDefinitions.cs for examples).

Use the R2API ItemApi Submodule to add your item and get its ItemIndex.

After that, simply call ItemStatsMod.AddCustomItemStatDef(myItemIndex, myItemStatDef)

# Building

You will first need the following libraries:
Expand All @@ -25,9 +34,3 @@ Open the solution, link the libraries in the Lib folder, DL the required NuGet p

* kylewill0725
* orare

# Custom Item API
In order to use API, add a Bepin SoftDependency to your BaseUnityPlugin annotations.
Then, create an ItemStatDef for your item (see ItemStatDefinitions.cs for examples).
Use the R2API ItemApi Submodule to add your item and get its ItemIndex.
After that, simply call ItemStatsMod.AddCustomItemStatDef(myItemIndex, myItemStatDef)

0 comments on commit b07a349

Please sign in to comment.