public void RemoveModifier(TabletopStats modifier)
 {
     if (modifiers != null)
     {
         modifiers.Remove(modifier);
     }
 }
 public void AddModifier(TabletopStats modifier)
 {
     if (modifiers == null)
     {
         modifiers = new List <TabletopStats>();
     }
     modifiers.Add(modifier);
 }
Beispiel #3
0
        public static TabletopStats operator -(TabletopStats a, TabletopStats b)
        {
            TabletopStats result = new TabletopStats();

            result.Movement = a.Movement - b.Movement;

            result.WS = a.WS - b.WS;
            result.BS = a.BS - b.BS;
            result.S  = a.S - b.S;
            result.T  = a.T - b.T;
            result.W  = a.W - b.W;
            result.I  = a.I - b.I;
            result.A  = a.A - b.A;
            result.Ld = a.Ld - b.Ld;
            return(result);
        }
Beispiel #4
0
        public static TabletopStats operator +(TabletopStats a, TabletopStats b)
        {
            TabletopStats result = new TabletopStats();

            result.Movement = a.Movement + b.Movement;

            result.WS = a.WS + b.WS;
            result.BS = a.BS + b.BS;
            result.S  = a.S + b.S;
            result.T  = a.T + b.T;
            result.W  = a.W + b.W;
            result.I  = a.I + b.I;
            result.A  = a.A + b.A;
            result.Ld = a.Ld + b.Ld;
            return(result);
        }