Пример #1
0
 public Weapon(string name, int hands, string damage, string chance)
 {
     Type   = "weapon";
     Name   = name;
     Damage = new intI(damage);
     Hands  = hands;
     Chance = new Switch(chance);
 }
Пример #2
0
 public DamageModifier(int add, int multipl, intI count = null)
 {
     if (count == null)
     {
         count = intI.Infinity;
     }
     Add     = add;
     Multipl = multipl;
     Count   = new Counter(count);
 }
Пример #3
0
 public Armor(string name, int hands, string protection, string attack, string chance, string destroyPattern)
 {
     Type                = "armor";
     Name                = name;
     Protection          = new intI(protection);
     Attack              = new intI(attack);
     Hands               = hands;
     Chance              = new Switch(chance);
     this.destroyPattern = destroyPattern;
     ParseDestroyPattern(destroyPattern);
 }
Пример #4
0
 public Counter(intI max)
 {
     Max     = max;
     Current = 0;
 }
Пример #5
0
 public Counter(int max)
 {
     Max     = new intI(max);
     Current = 0;
 }
Пример #6
0
 public Counter(string max)
 {
     Max     = new intI(max);
     Current = 0;
 }