Skip to content

PowerupCapable

Monsters, Inc.source

Derived from Entity, Movable

Derived types: Monster, Mount, Player

Methods

clear_virtual

function PowerupCapable:clear_virtual(callback_id: integer)
callback_id: integer
source

get_powerups

function PowerupCapable:get_powerups(): ENT_TYPE[]

Returns ENT_TYPE[]

source

give_powerup

function PowerupCapable:give_powerup(powerup_type: ENT_TYPE)
powerup_type: ENT_TYPE
source

has_powerup

function PowerupCapable:has_powerup(powerup_type: ENT_TYPE): boolean
powerup_type: ENT_TYPE

Returns boolean

source

remove_powerup

function PowerupCapable:remove_powerup(powerup_type: ENT_TYPE)
powerup_type: ENT_TYPE
source

set_jetpack_fuel

function PowerupCapable:set_jetpack_fuel(fuel: integer)
fuel: integer
source

set_post_blood_collision

function PowerupCapable:set_post_blood_collision(fun: fun(self: Entity?)): integer
fun: fun(self: Entity?)

Returns integer

only triggers when entity has kapala

source

set_post_virtual

function PowerupCapable:set_post_virtual(index: integer, fun: function): integer?
index: integer
fun: function
Callback signature not known from the code.

Returns integer? (may be nil)

source

set_pre_blood_collision

function PowerupCapable:set_pre_blood_collision(fun: fun(self: Entity?): boolean?): integer
fun: fun(self: Entity?): boolean?
Returning nil (or nothing): the original function runs (a value replaces its result and skips it).

Returns integer

only triggers when entity has kapala

source

set_pre_virtual

function PowerupCapable:set_pre_virtual(index: integer, fun: function): integer?
index: integer
fun: function
Callback signature not known from the code.

Returns integer? (may be nil)

source

unequip_backitem

function PowerupCapable:unequip_backitem()
source

worn_backitem

function PowerupCapable:worn_backitem(): integer

Returns integer

source