public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Creature player, Target target = null, CastedSpell spell = null, RollResults dice = null) { ExpectingArguments(args, 1, 15); if (player != null) { string effectName; int hue, saturation, brightness, timeOffset, secondaryHue, secondarySaturation, secondaryBrightness, yOffset, xOffset; double scale, rotation, autoRotation, velocityX, velocityY; AddSpellCastEffect.GetVisualEffectParameters(args, player, target, spell, out effectName, out hue, out saturation, out brightness, out scale, out rotation, out autoRotation, out timeOffset, out secondaryHue, out secondarySaturation, out secondaryBrightness, out xOffset, out yOffset, out velocityX, out velocityY); player.AddSpellHitEffect(effectName, hue, saturation, brightness, scale, rotation, autoRotation, timeOffset, secondaryHue, secondarySaturation, secondaryBrightness, xOffset, yOffset, velocityX, velocityY); } return(null); }
public override object Evaluate(List <string> args, ExpressionEvaluator evaluator, Creature player, Target target = null, CastedSpell spell = null, RollResults dice = null) { ExpectingArguments(args, 1, 3); if (player != null) { int hue = Expressions.GetInt(args[0], player, target, spell); int saturation = 100; if (args.Count == 2) { saturation = Expressions.GetInt(args[1], player, target, spell); } int brightness = 100; if (args.Count == 3) { brightness = Expressions.GetInt(args[2], player, target, spell); } player.AddSpellHitEffect(hue: hue, saturation: saturation, brightness: brightness); } return(null); }