aux.dxmcostgen
Source Code | Usage Examples | aux
Functions
"Detach Xyz Material Cost Generator". Generates a function to be used by Effect.SetCost in order to detach a number of Xyz Materials from the Effect's handler. (int min) is the minimum number of materials to check for detachment. (int max) is the maximum number of materials to detach or a function that gets called as if by doing max(e,tp) in order to get the value of max detachments. (function op) is an optional function that gets called by passing the effect and the operated group of just detached materials in order to do some additional handling with them.
Signature
aux.dxmcostgen(int min
, int max
, [function op
]) → function
lua
aux.dxmcostgen(min,max,op)