public override IEnumerable <string> ConfigErrors() { using (IEnumerator <string> enumerator = base.ConfigErrors().GetEnumerator()) { if (enumerator.MoveNext()) { string err = enumerator.Current; yield return(err); /*Error: Unable to find new state assignment for yield return*/; } } if (this.commonality < 0.0010000000474974513 && this.commonalityFemale < 0.0010000000474974513) { yield return("TraitDef " + base.defName + " has 0 commonality."); /*Error: Unable to find new state assignment for yield return*/; } if (!this.degreeDatas.Any()) { yield return(base.defName + " has no degree datas."); /*Error: Unable to find new state assignment for yield return*/; } int i = 0; TraitDegreeData dd3; while (true) { if (i < this.degreeDatas.Count) { _003CConfigErrors_003Ec__Iterator0 _003CConfigErrors_003Ec__Iterator = (_003CConfigErrors_003Ec__Iterator0) /*Error near IL_017b: stateMachine*/; dd3 = this.degreeDatas[i]; if ((from dd2 in this.degreeDatas where dd2.degree == dd3.degree select dd2).Count() <= 1) { i++; continue; } break; } yield break; } yield return(">1 datas for degree " + dd3.degree); /*Error: Unable to find new state assignment for yield return*/; IL_0239: /*Error near IL_023a: Unexpected return in MoveNext()*/; }
public override IEnumerable <string> ConfigErrors() { if (this.resolvedGrains.Count == 0) { yield return("No grains resolved."); /*Error: Unable to find new state assignment for yield return*/; } if (this.sustainAttack + this.sustainRelease > this.sustainLoopDurationRange.TrueMin) { yield return("Attack + release < min loop duration. Sustain samples will cut off."); /*Error: Unable to find new state assignment for yield return*/; } if (this.distRange.min > this.distRange.max) { yield return("Dist range min/max are reversed."); /*Error: Unable to find new state assignment for yield return*/; } foreach (SoundParameterMapping paramMapping in this.paramMappings) { if (paramMapping.inParam != null && paramMapping.outParam != null) { if (paramMapping.outParam != null) { _003CConfigErrors_003Ec__Iterator0 _003CConfigErrors_003Ec__Iterator = (_003CConfigErrors_003Ec__Iterator0) /*Error near IL_019c: stateMachine*/; Type neededFilter = paramMapping.outParam.NeededFilterType; if (neededFilter != null && !(from fil in this.filters where fil.GetType() == neededFilter select fil).Any()) { yield return("A parameter wants to modify the " + neededFilter.ToString() + " filter, but this sound doesn't have it."); /*Error: Unable to find new state assignment for yield return*/; } } continue; } yield return("At least one parameter mapping is missing an in or out parameter."); /*Error: Unable to find new state assignment for yield return*/; } yield break; IL_0267: /*Error near IL_0268: Unexpected return in MoveNext()*/; }
public override IEnumerable <string> ConfigErrors() { using (IEnumerator <string> enumerator = base.ConfigErrors().GetEnumerator()) { if (enumerator.MoveNext()) { string err = enumerator.Current; yield return(err); /*Error: Unable to find new state assignment for yield return*/; } } if (race == null) { yield return("no race"); /*Error: Unable to find new state assignment for yield return*/; } if (RaceProps.Humanlike && backstoryCategories.NullOrEmpty()) { yield return("Humanlike needs backstoryCategories."); /*Error: Unable to find new state assignment for yield return*/; } if (baseRecruitDifficulty > 1.0001f) { yield return(defName + " recruitDifficulty is greater than 1. 1 means impossible to recruit."); /*Error: Unable to find new state assignment for yield return*/; } if (combatPower < 0f) { yield return(defName + " has no combatPower."); /*Error: Unable to find new state assignment for yield return*/; } if (weaponMoney != FloatRange.Zero) { float minCost = 999999f; _003CConfigErrors_003Ec__Iterator0 _003CConfigErrors_003Ec__Iterator = (_003CConfigErrors_003Ec__Iterator0) /*Error near IL_01fd: stateMachine*/; int k; for (k = 0; k < weaponTags.Count; k++) { IEnumerable <ThingDef> source = from d in DefDatabase <ThingDef> .AllDefs where d.weaponTags != null && d.weaponTags.Contains(_003CConfigErrors_003Ec__Iterator._0024this.weaponTags[k]) select d; if (source.Any()) { minCost = Mathf.Min(minCost, source.Min((Func <ThingDef, float>)PawnWeaponGenerator.CheapestNonDerpPriceFor)); } } if (minCost > weaponMoney.min) { yield return("Cheapest weapon with one of my weaponTags costs " + minCost + " but weaponMoney min is " + weaponMoney.min + ", so could end up weaponless."); /*Error: Unable to find new state assignment for yield return*/; } } if (!RaceProps.Humanlike && lifeStages.Count != RaceProps.lifeStageAges.Count) { yield return("PawnKindDef defines " + lifeStages.Count + " lifeStages while race def defines " + RaceProps.lifeStageAges.Count); /*Error: Unable to find new state assignment for yield return*/; } if (apparelRequired != null) { for (int j = 0; j < apparelRequired.Count; j++) { for (int i = j + 1; i < apparelRequired.Count; i++) { if (!ApparelUtility.CanWearTogether(apparelRequired[j], apparelRequired[i], race.race.body)) { yield return("required apparel can't be worn together (" + apparelRequired[j] + ", " + apparelRequired[i] + ")"); /*Error: Unable to find new state assignment for yield return*/; } } } } yield break; IL_04f9: /*Error near IL_04fa: Unexpected return in MoveNext()*/; }
public override IEnumerable <string> ConfigErrors() { using (IEnumerator <string> enumerator = base.ConfigErrors().GetEnumerator()) { if (enumerator.MoveNext()) { string err = enumerator.Current; yield return(err); /*Error: Unable to find new state assignment for yield return*/; } } if (this.race == null) { yield return("no race"); /*Error: Unable to find new state assignment for yield return*/; } if (this.RaceProps.Humanlike && this.backstoryCategory.NullOrEmpty()) { yield return("Humanlike needs backstoryCategory."); /*Error: Unable to find new state assignment for yield return*/; } if (this.baseRecruitDifficulty > 1.0001000165939331) { yield return(base.defName + " recruitDifficulty is greater than 1. 1 means impossible to recruit."); /*Error: Unable to find new state assignment for yield return*/; } if (this.combatPower < 0.0) { yield return(base.defName + " has no pointsCost."); /*Error: Unable to find new state assignment for yield return*/; } if (this.weaponMoney.min > 0.0) { float minCost = 999999f; _003CConfigErrors_003Ec__Iterator0 _003CConfigErrors_003Ec__Iterator = (_003CConfigErrors_003Ec__Iterator0) /*Error near IL_01f9: stateMachine*/; int i; for (i = 0; i < this.weaponTags.Count; i++) { minCost = Mathf.Min(minCost, (from d in DefDatabase <ThingDef> .AllDefs where d.weaponTags != null && d.weaponTags.Contains(_003CConfigErrors_003Ec__Iterator._0024this.weaponTags[i]) select d).Min((Func <ThingDef, float>)PawnWeaponGenerator.CheapestNonDerpPriceFor)); } if (minCost > this.weaponMoney.min) { yield return("Cheapest weapon with one of my weaponTags costs " + minCost + " but weaponMoney min is " + this.weaponMoney.min + ", so could end up weaponless."); /*Error: Unable to find new state assignment for yield return*/; } } if (this.RaceProps.Humanlike) { yield break; } if (this.lifeStages.Count == this.RaceProps.lifeStageAges.Count) { yield break; } yield return("PawnKindDef defines " + this.lifeStages.Count + " lifeStages while race def defines " + this.RaceProps.lifeStageAges.Count); /*Error: Unable to find new state assignment for yield return*/; IL_03ad: /*Error near IL_03ae: Unexpected return in MoveNext()*/; }