ItemAPI CustomItem uses ItemDef.tier
See original GitHub issueRight now, two of the overloaded constructors for CustomItem
in ItemAPI.cs
set the item tier using ItemDef.tier
.
I believe this is problematic since tier
is a property whose setter requires ItemTierCatalog.Init()
to have occurred first
Otherwise, it’ll be set to null which means the getter falls back to deprecatedTier
which defaults to ItemTier.Tier1
Is this something we want to fix for ItemAPI and change to deprecatedTier
or are we still finding a better permanent workaround to ensure the Init()
has occurred first? Unless I’m misunderstanding and R2API already does something to combat this?
Issue Analytics
- State:
- Created a year ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
Item Tiers - MythicCraft
By default, tiers are Trash, Common, Uncommon, Rare, Very Rare, Legendary, Mythical, Epic, Magical and Unique. You can edit the tiers in the...
Read more >REST API for Content Management - Creates an Item
Creates an item with the given payload. Creates master/variations of content items or variations of digital assets if file sharing option is enabled...
Read more >GetItem - API Reference
Item ItemType Always
Item.ApplicationData string Cond...
Item.ApplyBuyerProtection BuyerProtectionDetailsType Cond...
Item.ApplyBuyerProtection .BuyerProtectionSource BuyerProtectionSourceCodeType Cond...
Read more >AddItem - API Reference - Trading API
Item ItemType Required
Item.ApplicationData string Optional
Item.AutoPay boolean Optional
Item.BestOfferDetails BestOfferDetailsType Optional
Read more >Web API design best practices - Azure Architecture Center
Here are some of the main design principles of RESTful APIs using HTTP: REST APIs are designed around resources, which are any kind...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Because this is a non issue on Unity editor development, because you set the tier directly via the itemTierDef field
This issue is exclusively when it comes to visual studio only mods, thunderkit also doesn’t have this issue due to being almost identical to hopoo’s development enviroment
I just posted a PR #394 to fix this