示例#1
0
 public ObstacleMonster(string name, DamageType monsterAttackType, RequirementType monsterWeakness) : base("fighting " + name, name, new RequireWrapper(monsterAttackType.getImmunityType()), new RequireWrapper(monsterWeakness))
 {
     atkDamage = monsterAttackType;
     weakTo    = monsterWeakness;
 }
 public ObstacleTrappedPassage(DamageType trapDamageType) : base("in a trapped passage", trapDamageType.getImmunityType().ToString(), new RequireWrapper(RequirementType.DANGER_SENSE, RequirementType.DETECTION))
 {
     damage = trapDamageType;
 }
 public ObstacleMagicTrap(DamageType trapDamageType) : base("dealing with a magic trap", trapDamageType.getImmunityType().ToString(), new RequireWrapper(RequirementType.DANGER_SENSE, RequirementType.DETECTION))
 {
     damage = trapDamageType;
 }