Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Update 1.2.3 to Risk of Rain made the itemDef's "tier" into a property (Was originally a field). the Property's Set method causes issues when the itemTier catalog as not initialized yet (set method calls ItemTierCatalog.GetItemTierDef(itemTierEnum), and at that point no itemTierDefs exist in the catalog yet.)
This update fixes this issue by doing the following check on the tierargument, while also adding a new optional argument (For itemTierDefs)
When the tier argument is not assignedAtRuntime, the ItemDef's _itemTierDef gets loaded via Addressables by doing a switch case on the given tier argument.
If the tier argument is assignedAtRuntime, but no itemTierDef is specified, R2API throws a warning that the itemDef has the tier argument to assignedAtRuntime, but itemTierDef argument is null, afterwards it sets the ItemDef._itemTierDef to null (AKA: No tier)
if both the tier is AssignedAtRuntime, and the itemTierDef argument is not null, then it simpplpy sets the itemDef's _itemTierDef to the argument's value
I am unsure if this counts as a breaking change, some testing is needed