PowerupCapable
Monsters, Inc.source
Derived types: Monster, Mount, Player
Methods
give_powerup
function PowerupCapable:give_powerup(powerup_type: ENT_TYPE)powerup_type:ENT_TYPE
has_powerup
function PowerupCapable:has_powerup(powerup_type: ENT_TYPE): booleanpowerup_type:ENT_TYPE
Returns boolean
remove_powerup
function PowerupCapable:remove_powerup(powerup_type: ENT_TYPE)powerup_type:ENT_TYPE
set_post_blood_collision
function PowerupCapable:set_post_blood_collision(fun: fun(self: Entity?)): integerfun:fun(self: Entity?)
Returns integer
only triggers when entity has kapala
sourceset_post_virtual
function PowerupCapable:set_post_virtual(index: integer, fun: function): integer?index:integerfun:function- Callback signature not known from the code.
Returns integer? (may be nil)
set_pre_blood_collision
function PowerupCapable:set_pre_blood_collision(fun: fun(self: Entity?): boolean?): integerfun: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
sourceset_pre_virtual
function PowerupCapable:set_pre_virtual(index: integer, fun: function): integer?index:integerfun:function- Callback signature not known from the code.
Returns integer? (may be nil)