public int Score(Goal goal, BaseEntity.Class_T my_class) { if (goal.Concern == my_class) { return(0); } if (goal.Concern == BaseEntity.Class_T.ALL) { if (goal.Type == Objective_T.KEY) { return(1); } else if (goal.Type == Objective_T.RELIC) { return(5); } } if (goal.Concern == BaseEntity.Class_T.NOBODY) { return(7); } return(6); }
public int CompareToNormal(Goal other, BaseEntity.Class_T my_class) { return(Score(this, my_class) - Score(other, my_class)); }