Exemple #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);
 }
 public DamageModifier(int add, int multipl, intI count = null)
 {
     if (count == null)
     {
         count = intI.Infinity;
     }
     Add     = add;
     Multipl = multipl;
     Count   = new Counter(count);
 }
Exemple #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);
 }
 public Counter(intI max)
 {
     Max     = max;
     Current = 0;
 }
 public Counter(int max)
 {
     Max     = new intI(max);
     Current = 0;
 }
 public Counter(string max)
 {
     Max     = new intI(max);
     Current = 0;
 }