Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --- Precept.cs.sav 2021-07-30 19:48:41.986043198 +0200
- +++ Precept.cs 2021-07-31 12:05:32.456693086 +0200
- @@ -157,7 +157,7 @@ namespace RimWorld
- tmpCompsDesc.AppendInNewLine(" - " + prohibitionText);
- }
- }
- - bool flag2 = true;
- + List<string> addLines = new List<string>();
- for (int j = 0; j < def.comps.Count; j++)
- {
- PreceptComp_SelfTookMemoryThought preceptComp_SelfTookMemoryThought;
- @@ -185,17 +185,21 @@ namespace RimWorld
- }
- preceptComp = preceptComp_BedThought;
- }
- - if (flag2)
- - {
- - flag2 = false;
- - tmpCompsDesc.AppendLine();
- - tmpCompsDesc.AppendInNewLine(ColorizeDescTitle("Mood".Translate() + ":"));
- - }
- foreach (string description in preceptComp.GetDescriptions())
- {
- - tmpCompsDesc.AppendInNewLine(" - " + description);
- + string addLine = " - " + description;
- + if(!addLines.Contains(addLine))
- + addLines.Add(addLine);
- }
- }
- + if(addLines.Count != 0)
- + {
- + tmpCompsDesc.AppendLine();
- + tmpCompsDesc.AppendInNewLine(ColorizeDescTitle("Mood".Translate() + ":"));
- + foreach (string addLine in addLines)
- + tmpCompsDesc.AppendInNewLine(addLine);
- + addLines.Clear();
- + }
- bool flag3 = true;
- for (int k = 0; k < def.comps.Count; k++)
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement