Skip to content

Class "PlayerTypesActiveItemDesc"⚓︎

Info

You can get this class by using the following function:

Example Code
1
2
local player = Isaac.GetPlayer()
local activeItemDesc = player.SecondaryActiveItem

Variables⚓︎

Battery·Charge⚓︎

int BatteryCharge⚓︎


Charge⚓︎

int Charge⚓︎

For items like Jars this holds the number of flies/hearts.


Item⚓︎

CollectibleType Item⚓︎


PartialCharge⚓︎

float PartialCharge⚓︎

How close the item is to gaining another charge (0-1 range, used by 4.5 Volt)


SubCharge⚓︎

int SubCharge⚓︎


TimedRechargeCooldown⚓︎

int TimedRechargeCooldown⚓︎

Number of frames before an item with a timed cooldown can recharge again (used by Spin To Win to pause its recharge after fully discharging it)


VarData⚓︎

int VarData⚓︎

Holds extra information for some active items (such as the number of uses for Jar of Wisps)



Last update: September 20, 2022