stack
Vars | |
absorption_capacity | How much blood flow this stack can absorb if used as a bandage on a cut wound, note that absorption is how much we lower the flow rate, not the raw amount of blood we suck up |
---|---|
absorption_rate | How quickly we lower the blood flow on a cut wound we're bandaging. Expected lifetime of this bandage in ticks is thus absorption_capacity/absorption_rate, or until the cut heals, whichever comes first |
material_type | Datum material type that this stack is made of |
matter_amount | Amount of matter for RCD |
splint_factor | If set and this used as a splint for a broken bone wound, this is used as a multiplier for applicable slowdowns (lower = better) (also for speeding up burn recoveries) |
Procs | |
add | |
build_recipe | Returns a list of properties of a given recipe |
can_merge | |
is_valid_recipe | Checks if the recipe is valid to be used |
recursively_build_recipes | Builds all recipes in a given recipe list and returns an association list containing them |
set_custom_materials | Override to make things like metalgen accurately set custom materials |
set_mats_per_unit | |
split_stack | |
update_custom_materials | Updates the custom materials list of this stack. |
Var Details
absorption_capacity
How much blood flow this stack can absorb if used as a bandage on a cut wound, note that absorption is how much we lower the flow rate, not the raw amount of blood we suck up
absorption_rate
How quickly we lower the blood flow on a cut wound we're bandaging. Expected lifetime of this bandage in ticks is thus absorption_capacity/absorption_rate, or until the cut heals, whichever comes first
material_type
Datum material type that this stack is made of
matter_amount
Amount of matter for RCD
splint_factor
If set and this used as a splint for a broken bone wound, this is used as a multiplier for applicable slowdowns (lower = better) (also for speeding up burn recoveries)
Proc Details
add
-
Adds some number of units to this stack.
-
Arguments:
-
- _amount: The number of units to add to this stack.
build_recipe
Returns a list of properties of a given recipe
Arguments:
- R - The stack recipe we are using to get a list of properties
can_merge
-
Checks whether this stack can merge itself into another stack.
-
Arguments:
-
- check: The stack to check for mergeability.
is_valid_recipe
Checks if the recipe is valid to be used
Arguments:
- R - The stack recipe we are checking if it is valid
- recipe_list - The list of recipes we are using to check the given recipe
recursively_build_recipes
Builds all recipes in a given recipe list and returns an association list containing them
Arguments:
- recipe_to_iterate - The list of recipes we are using to build recipes
set_custom_materials
Override to make things like metalgen accurately set custom materials
set_mats_per_unit
-
Sets the amount of materials per unit for this stack.
-
Arguments:
-
- mats: The value to set the mats per unit to.
-
- multiplier: The amount to multiply the mats per unit by. Defaults to 1.
split_stack
-
Splits the stack into two stacks.
-
Arguments:
-
- user: The mob splitting the stack.
-
- amount: The number of units to split from this stack.
update_custom_materials
Updates the custom materials list of this stack.