/tg/ Station 13 - Modules - TypesDefine Details

maplestation_modules/code/__DEFINES/magic/attunements.dm

GET_RAW_ATTUNEMENT_CORRESPONDANCEReturns the raw attunement correspondance between args 1 and 3. Its fine if both are negative, since thats a positive correspondance. The direction and intensity of the correspondance should correspond to altered casting cost - intense positive correspondance should lower casting cost by a large amount-but a weak negative correspondance should increase casting cost by a small amount.
/proc/get_total_correspondanceCompares the two lists of attunements and combines the raw correspondance.
/proc/get_total_attunement_multReturns the "mult" value using the correspondance between attunements and intensity. This value should be multiplied against the mana cost of an action to determine how much "effective" mana a certain mana source can provide to it. Should NEVER return anything negative, ever. The minimum is 0.
/proc/get_total_attunement_biasattunements should only ever be attunements of a mana source, not mana user.

Define Details

GET_RAW_ATTUNEMENT_CORRESPONDANCE

Returns the raw attunement correspondance between args 1 and 3. Its fine if both are negative, since thats a positive correspondance. The direction and intensity of the correspondance should correspond to altered casting cost - intense positive correspondance should lower casting cost by a large amount-but a weak negative correspondance should increase casting cost by a small amount.