Class "ItemConfig"⚓︎
Info
You can get this class by using the following function:
Example Code
Isaac.GetItemConfig()
ItemConfig does have a special Enum. you can find it here ItemConfigEnums
Functions⚓︎
Get·Card ()⚓︎
const ItemConfig Card GetCard ( Card ID )⚓︎
Returns nil
if no itemconfig to the given ID can be found.
Get·Cards ()⚓︎
const CardList GetCards ( )⚓︎
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
Get·Collectible ()⚓︎
const ItemConfig Item GetCollectible ( int ID )⚓︎
Returns the Itemobject of a given CollectibleID. Returns nil of nothing was found.
Example Code
This function gets the item config of sad onion.
1 |
|
Get·Collectibles ()⚓︎
const userdata GetCollectibles ( )⚓︎
Returns the List of all Collectibles.
Bug
This function is broken and returns userdata.
Example Code
This Code gets the highest possible collectible id including modded items.
1 2 3 |
|
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
Get·Null·Item ()⚓︎
const ItemConfig Item GetNullItem ( int ID )⚓︎
Returns nil
if no itemconfig to the given ID can be found.
Get·Null·Items ()⚓︎
const ItemList GetNullItems ( )⚓︎
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
Get·Pill·Effect ()⚓︎
const ItemConfig PillEffect GetPillEffect ( PillEffect ID )⚓︎
Returns nil
if no itemconfig to the given ID can be found.
Get·Pill·Effects ()⚓︎
const PillList GetPillEffects ( )⚓︎
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
Get·Trinket ()⚓︎
const ItemConfig Item GetTrinket ( int ID )⚓︎
Returns nil
if no itemconfig to the given ID can be found.
Get·Trinkets ()⚓︎
const ItemList GetTrinkets ( )⚓︎
Bugs
Calling Get() in this list does not return usable userdata, rendering it useless for that purpose.
Is·Valid·Collectible ()⚓︎
static boolean IsValidCollectible ( CollectibleType ID )⚓︎
Function to check if a given item id is a valid collectible id (aka. this item exists). Returns True when it exists and False when it doesn't.
Since this function is a static function, the usage is a bit different. Take a look at the example code for the correct usage
Example Code
This Code checks, if the item "Sad Onion" (ID: 1) exists.
1 |
|
Should·Add·Costume·On·Pickup ()⚓︎
static boolean ShouldAddCostumeOnPickup ( ItemConfig Item Config )⚓︎
Returns weather a given item config object should add a costume when picking up the associated item.
Since this function is a static function, the usage is a bit different. Take a look at the example code for the correct usage
Example Code
This Code checks, if the item "Sad Onion" (ID: 1) should add a costume on Pickup.
1 2 |
|