Autor:RiskofThunderLast updated:19/12/2022 01:30:432.5M17KB
R2API.ArtifactCode is a submodule assembly for R2API that simplifies the process of adding new Artifact Codes to the Artifact Portal Dialer in Sky Meadow, alongside the additon of custom Artifact Compounds (Such as the vanilla compounds, Circle, Square, Triangle & Diamond).
R2API.ArtifactCode can be used for mods to add their own ArtifactTrials to the game so their artifacts can be unlocked like regular, vanilla artifacts.
This is done via the ArtifactCode scriptable object, which works as a simplified way of creating the required Sha256HashAsset using int values to represent the individual Compound Values.
The Int values are represented by 3 Vector3Ints, representing the top row, middle row and bottom row of compounds.
Adding compounds is done using the ArtifactCompoundDef scriptable object from the base game. The value of the ArtifactCompoundDef must be unique.
A static class populated with constant values that represent the default, vanilla compounds, these are:
Empty = 11 Square = 7 Circle = 1 Triangle = 3 Diamond = 5
The page for Artifacts in the R2Wiki contains a tutorial on how to use the API
R2API.Core.
Download Mods For Free
Install LagoFast, start Risk of Rain 2 and play with the mods you love.