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
collected_money
ENT_TYPE[]
Types of gold/gems collected during this level, used later to display during the transition
sourcecollected_money_total
integer
Total money collected during previous levels (so excluding the current one)
sourcecollected_money_values
integer[]
Values of gold/gems collected during this level, used later to display during the transition
sourcecompanion_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
sourcecompanion_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
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
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
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
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
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
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
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
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
held_item
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
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
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
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
killed_enemies
ENT_TYPE[]
Types of enemies killed during this level, used later to display during the transition
sourcemount_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
mount_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
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
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