Beispiel #1
0
        public float EvalTag(TagKeyScript key)
        {
            float result;

            if (!ScriptFormulaEvaluator.Evaluate(this.PowerSNO, key,
                                                 User.Attributes, Rand, out result))
            {
                return(0);
            }

            return(result);
        }
Beispiel #2
0
        public float ScriptFormula(int index)
        {
            float result;

            if (!ScriptFormulaEvaluator.Evaluate(this.PowerSNO, PowerTagHelper.GenerateTagForScriptFormula(index),
                                                 User.Attributes, Rand, out result))
            {
                return(0);
            }

            return(result);
        }