Ejemplo n.º 1
0
        public void Execute(EventResults result, Game game, EventContext context)
        {
            if (XmlHelper.IsSpecialName(varName))
                throw new InvalidOperationException("Cannot assign to special properties: " + varName);

            context.OffsetVariable(context.CurrentCharacter, varName, offset.Calculate(context, game));
        }
Ejemplo n.º 2
0
        public double Evaluate(Game game, EventContext context, Weights weights)
        {
            if (XmlHelper.IsSpecialName(varName))
                throw new InvalidOperationException("Cannot assign to special properties: " + varName);

            context.OffsetVariable(context.CurrentCharacter, varName, offset.Calculate(context, game));
            return 0.0;
        }