コード例 #1
0
ファイル: Move.cs プロジェクト: DuckDefense/duck
 public Move(string name, string description, int damage, int accuracy, int uses, ModApplyer hitModifier, ModApplyer missModifier, Kind kind, Type type)
 {
     Name = name;
     Description = description;
     BaseDamage = damage;
     Accuracy = accuracy;
     Uses = uses;
     MaxUses = uses;
     HitModifier = hitModifier;
     MissModifier = missModifier;
     Kind = kind;
     Type = type;
 }
コード例 #2
0
ファイル: Move.cs プロジェクト: DuckDefense/duck
 public static Move Intimidate()
 {
     var hit = new ModApplyer(new StatModifier(1, 0.75, 1, 1, 1), false, true);
     var miss = new ModApplyer(new StatModifier(1, 1, 0.75, 1, 1), true, false);
     return new Move("Intimidate", "The monster shows the opponent just how intimidating it is",
         0, 75, 20, hit, miss, Kind.NonDamage, Type.Normal);
 }
コード例 #3
0
ファイル: Move.cs プロジェクト: DuckDefense/duck
 //Special
 //NonDamage
 public static Move Glare()
 {
     var statMod = new ModApplyer(new StatModifier(1, 1, 1, 1, .75), false, true);
     return new Move("Glare", "The monster gives a cold glare",
         0, 70, 25, statMod, null, Kind.NonDamage, Type.Normal);
 }