Two options for this, using Enum.GetNames(typeof(itemdatabase.i)).Length to get the length of the itemdatabase items compared to the index of the current item.
Mod items added in the way Dingus does won't be counted as part of the initial itemdatabase size
Other option is any items that don't have a tosaveitemscript as all items in the database should
Suggested by Runden
Two options for this, using
Enum.GetNames(typeof(itemdatabase.i)).Length
to get the length of the itemdatabase items compared to the index of the current item. Mod items added in the way Dingus does won't be counted as part of the initial itemdatabase sizeOther option is any items that don't have a
tosaveitemscript
as all items in the database should