public MissionInstance getFirstRewardableMissionInstance() { for (int i = 0; i < this.Instances.Count; i++) { double num2; MissionInstance instance = this.Instances[i]; if (instance.isActive() && (instance.getMissionProgress(this.Player, out num2) >= 1f)) { return(instance); } } return(null); }
public int getNumRewardableMissions() { int num = 0; for (int i = 0; i < this.Instances.Count; i++) { double num3; MissionInstance instance = this.Instances[i]; if (instance.isActive() && (instance.getMissionProgress(this.Player, out num3) >= 1f)) { num++; } } return(num); }