/tg/ Station 13 - Modules - TypesVar Details - Proc Details

reagent_imbued

Parent component that stores shared info

Vars

examine_imbued_descriptionthe text to show the player what happens
inject_amounthow much reagent to inject per tic/proc
integrity_loss_per_injectdamage mult on parent item when reagent procs
integrity_requiredrequired parent item integrity% for reagent effects
last_smithing_oil_ratio_appliedkeeps track of how effective last smithing oil imbue did (% of total imbue capacity)
parent_itemthe item that the component is attached to
required_typerequired type to attach to
smithing_oil_effectswhat smithing oil does to this (at 100% oil imbuing it has 100% of the listed effects)

Procs

Initialize
apply_smithing_oil_bonusThis function modifies the parent item based on how much smithing oil is in our imbued reagent list. Needs to be defined in child subtypes.
set_reagent_imbueReplaces the imbued_reagent with the given new_reagents.

Var Details

examine_imbued_description

the text to show the player what happens

inject_amount

how much reagent to inject per tic/proc

integrity_loss_per_inject

damage mult on parent item when reagent procs

integrity_required

required parent item integrity% for reagent effects

last_smithing_oil_ratio_applied

keeps track of how effective last smithing oil imbue did (% of total imbue capacity)

parent_item

the item that the component is attached to

required_type

required type to attach to

smithing_oil_effects

what smithing oil does to this (at 100% oil imbuing it has 100% of the listed effects)

Proc Details

Initialize

apply_smithing_oil_bonus

This function modifies the parent item based on how much smithing oil is in our imbued reagent list. Needs to be defined in child subtypes.

set_reagent_imbue

Replaces the imbued_reagent with the given new_reagents.