Documentation: MaterialSuckerComponent

From Noita Wiki
Jump to navigation Jump to search
Name Type Initial Value Example Range Description
Members
material_type int 0 [0, 3] 0 = liquid, 1 = sand, 2 = gas (arbitary order)
barrel_size int 50 [0, 1024] how many pixels can we suck up
num_cells_sucked_per_frame int 1 [0, 5] How many cells at max can we suck per frame?
set_projectile_to_liquid bool false if set, will set the projectile what ever we're sucking...?
last_material_id int 0 hax... this is set if we use set_projectile_to_liquid
suck_gold bool false if set will just suck gold and update wallet
suck_health bool false if set will just suck healthium material and add 1 hp every sucked healthium
suck_static_materials bool false will suck static materials from the world
suck_tag std::string if set, will only suck materials with this tag. NOTE, will also require the correct material_type to be set
mAmountUsed int 0 how full are we
Custom data types
randomized_position types::iaabb (-1, -1) (1, 1) random offset for pos, where we look for pixels
Privates
mGoldAccumulator int 0 accumulates amount of gold picked during consecutive frames
mLastFramePickedGold int -2 last frame we picked gold