(extension).SetupBasicItem - Aidanamite/AssetsLib GitHub Wiki
Extension of: ItemMaster
Description:
Use to do the basic configuration of a ItemMaster object
Return Type: void
Arguments:
string IdThis is the name id used for registration of this item. It can be anything you want it but must be different from any other item you've created.string NameLocalizationKeyThis is the localization term for the item's namestring DescriptionLocalizationKeyThis is the localization term for the item's decriptionstring SpriteAssetNameThis is the asset name for the item's spriteint GoldValue (default: 0)ItemMaster.Culture Culture (default: ItemMaster.Culture.Merchant)This controls which notebook tab your item will appear in as well as your item's default chest spawn dungeon.bool CanAppearInChest (default: false)float SpawnWeight (default: 1)This controls the spawn chance of the itemint MaxStackSize (default: 1)This is the maximum size for a stack of the item (unless it is an equipment item it is recommended to be set to at least 4)int MaxSpawnStack (default: 1)This is the maximum size stack that can spawn in a chestint MinSpawnStack (default: 1)This is the minimum size stack that can spawn in a chestint MinPlusLevel (default: 0)This is the minimum Plus Level that the item can appear atItemMaster.Tier Tier (default: ItemMaster.Tier.Tier1)This also controls the spawn chance of the item. See: Chest Spawn Chancesint WandererWeaponGoldCost (default: 0)This is the gold cost of the item in the Wanderer's Dungeon Merchant shopint WandererWeaponSlimeCost (default: 0)This is the slime coin cost of the item in the Wanderer's Dungeon Merchant shopbool DestroyedOnDungeonExit (default: false)If this is set totruethe item will have the "Trick Item" curse
Example:
myItem.SetupBasicItem(
Id: "MyItem",
NameLocalizationKey: myItemName,
DescriptionLocalizationKey: myItemDesc,
SpriteAssetName: myItemSprite,
MaxStackSize: 10,
GoldValue: 1000,
Culture: ItemMaster.Culture.Golem,
CanAppearInChest: true,
MinPlusLevel: 0,
Tier: ItemMaster.Tier.Tier1);