public override IEnumerable <StatDrawEntry> SpecialDisplayStats() { foreach (var s in base.SpecialDisplayStats()) { yield return(s); } if (this.GetRotStage() == RotStage.Fresh) { var meatAmount = StatDefOf.MeatAmount; yield return(new StatDrawEntry(meatAmount.category, meatAmount, InnerPawn.GetStatValue(meatAmount), StatRequest.For(InnerPawn))); var leatherAmount = StatDefOf.LeatherAmount; yield return(new StatDrawEntry(leatherAmount.category, leatherAmount, InnerPawn.GetStatValue(leatherAmount), StatRequest.For(InnerPawn))); } }
public override IEnumerable <StatDrawEntry> SpecialDisplayStats() { using (IEnumerator <StatDrawEntry> enumerator = base.SpecialDisplayStats().GetEnumerator()) { if (enumerator.MoveNext()) { StatDrawEntry s = enumerator.Current; yield return(s); /*Error: Unable to find new state assignment for yield return*/; } } if (this.GetRotStage() == RotStage.Fresh) { StatDef meatAmount = StatDefOf.MeatAmount; yield return(new StatDrawEntry(meatAmount.category, meatAmount, InnerPawn.GetStatValue(meatAmount), StatRequest.For(InnerPawn))); /*Error: Unable to find new state assignment for yield return*/; } yield break; IL_0197: /*Error near IL_0198: Unexpected return in MoveNext()*/; }