public override bool Equals(object obj) { FightRules rule = (FightRules)obj; return(this.ForceAttackCoefficient == rule.ForceAttackCoefficient && this.MindAttackCoefficient == rule.MindAttackCoefficient); }
public Job(FightRules fightRule, string jobPosition, int jobLevel) : base(jobPosition) { this.JobLevel = jobLevel; this.JobFightRules = fightRule; this.Possition = jobPosition; this.Wage = this.JobLevel * new Random().Next(LowestBaseWage, HighestBaseWage + 1); }