Skip to content

Commit

Permalink
Don't show "Ally" faction relation option
Browse files Browse the repository at this point in the history
  • Loading branch information
Zetrith committed Oct 18, 2023
1 parent bbd60cb commit 9891264
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions Source/Client/Factions/MultifactionPatches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,12 +42,11 @@ static IEnumerable<Gizmo> Postfix(IEnumerable<Gizmo> gizmos, Pawn __instance)
icon = MultiplayerStatic.ChangeRelationIcon,
action = () =>
{
List<FloatMenuOption> list = new List<FloatMenuOption>();
for (int i = 0; i <= 2; i++)
List<FloatMenuOption> list = new List<FloatMenuOption>
{
var kind = (FactionRelationKind)i;
list.Add(new FloatMenuOption(kind.ToString(), () => { SetFactionRelation(otherFaction, kind); }));
}
new(FactionRelationKind.Hostile.ToString(), () => { SetFactionRelation(otherFaction, FactionRelationKind.Hostile); }),
new(FactionRelationKind.Neutral.ToString(), () => { SetFactionRelation(otherFaction, FactionRelationKind.Neutral); })
};

Find.WindowStack.Add(new FloatMenu(list));
}
Expand Down

0 comments on commit 9891264

Please sign in to comment.