Ejemplo n.º 1
0
        static public void processAttackbonusGrappleSize(CharConverter app, String call, ref XmlNode inChar, ref XmlNode outChar, ref XmlNode targetNode)
        {
            int size = CharConverter.ConvertToInt(targetNode.InnerText);

            size *= -1;
            targetNode.InnerText = Convert.ToString(size);
        }
Ejemplo n.º 2
0
        static public void processCoinsSlot2(CharConverter app, String call, ref XmlNode inChar, ref XmlNode outChar, ref XmlNode targetNode)
        {
            //coins/slot2/amount
            String value = targetNode.InnerText;

            if (!String.IsNullOrEmpty(value))
            {
                String[] gold       = value.Split(' ');
                int      goldamount = 0;
                for (int i = 0; i < gold.Length; i++)
                {
                    goldamount += CharConverter.ConvertToInt(gold[i].Split('.')[0]);
                }
                targetNode.InnerText = Convert.ToString(goldamount);
            }
        }