Skip to content

Inventory

Entity related typessource

Used in Player, PlayerGhost and Items

Fields

acquired_powerups

ENT_TYPE[]

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

bombs

integer

source

collected_money

ENT_TYPE[]

Types of gold/gems collected during this level, used later to display during the transition

source

collected_money_count

integer

Count/size for the collected_money arrays

source

collected_money_total

integer

Total money collected during previous levels (so excluding the current one)

source

collected_money_values

integer[]

Values of gold/gems collected during this level, used later to display during the transition

source

companion_count

integer

Number of companions, it will determinate how many companions will be transferred to next level Increments when player acquires new companion, decrements when one of them dies

source

companion_health

integer[]

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

companion_held_item_metadatas

integer[]

Metadata of items held by companions (health, is cursed etc.) Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

companion_held_items

ENT_TYPE[]

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

companion_poison_tick_timers

integer[]

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

companion_trust

integer[]

(0..3) Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

companions

ENT_TYPE[]

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

cursed

boolean

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

elixir_buff

boolean

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

health

integer

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

held_item

ENT_TYPE

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

held_item_metadata

integer

Metadata of the held item (health, is cursed etc.) Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

is_companion_cursed

boolean[]

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

kapala_blood_amount

integer

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

killed_enemies

ENT_TYPE[]

Types of enemies killed during this level, used later to display during the transition

source

kills_level

integer

source

kills_total

integer

source

money

integer

Sum of the money collected in current level

source

mount_metadata

integer

Metadata of the mount (health, is cursed etc.) Used to transfer information to transition/next level (player riding a mount). Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

mount_type

ENT_TYPE

Used to transfer information to transition/next level (player riding a mount). Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

player_slot

integerproperty

source

poison_tick_timer

integer

Used to transfer information to transition/next level. Is not updated during a level You can use ON.PRE_LEVEL_GENERATION to access/edit this

source

ropes

integer

source

saved_pets_count

integer

source

time_of_death

integer

Is set to state.time_total when player dies in coop (to determinate who should be first to re-spawn from coffin)

source