pub trait EffectValueResolver {
// Provided methods
fn get_effect_value(
&self,
_spell_id: u32,
_effect_index: u8,
_var_type: &str,
) -> Option<f64> { ... }
fn get_spell_value(&self, _spell_id: u32, _var_type: &str) -> Option<String> { ... }
fn get_custom_var(&self, _name: &str) -> Option<f64> { ... }
}Expand description
Resolves effect-level values, spell-level values, and custom variables.
Provided Methods§
Sourcefn get_effect_value(
&self,
_spell_id: u32,
_effect_index: u8,
_var_type: &str,
) -> Option<f64>
fn get_effect_value( &self, _spell_id: u32, _effect_index: u8, _var_type: &str, ) -> Option<f64>
Get an effect value by var_type (s/m/M/t/a/A/x/o/e/w/bc/q) for a 1-indexed effect.
Sourcefn get_spell_value(&self, _spell_id: u32, _var_type: &str) -> Option<String>
fn get_spell_value(&self, _spell_id: u32, _var_type: &str) -> Option<String>
Get a formatted spell-level value by var_type (d/n/r/h/u/i/p/z/c).
Sourcefn get_custom_var(&self, _name: &str) -> Option<f64>
fn get_custom_var(&self, _name: &str) -> Option<f64>
Get a custom variable value from the spell’s description_variables.