Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mxyx0412 committed Jun 1, 2024
1 parent 0aa61c2 commit c558eb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 2 deletions.
5 changes: 3 additions & 2 deletions TheOtherRoles/CustomOptionHolder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -641,8 +641,9 @@ public static void Load()
randomGameStartPosition = CustomOption.Create(50, Types.General, "Random Spawn Location", false, null, true);
randomGameStartToVents = CustomOption.Create(51, Types.General, "Random Spawn To Vents", false, randomGameStartPosition);
ShowVentsOnMap = CustomOption.Create(65, Types.General, "Show Vents On Map", false, null, true);
ShowVentsOnMeetingMap = CustomOption.Create(66, Types.General, "Show Vents On Map", false, null, true);
enableBetterPolus = CustomOption.Create(60, Types.General, "Enable Better Polus", false);
ShowVentsOnMeetingMap = CustomOption.Create(66, Types.General, "Only show position of vents\n during the meeting", true, ShowVentsOnMap);

enableBetterPolus = CustomOption.Create(60, Types.General, "Enable Better Polus", false, null, true);
movePolusVents = CustomOption.Create(61, Types.General, "Adjust Vents", false, enableBetterPolus, false);
movePolusVitals = CustomOption.Create(62, Types.General, "Move Vitals To Labs", false, enableBetterPolus, false);
swapNavWifi = CustomOption.Create(63, Types.General, "Swap Reboot And Chart Course", false, enableBetterPolus, false);
Expand Down
1 change: 1 addition & 0 deletions TheOtherRoles/Patches/MapBehaviourPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ static void Postfix(MapBehaviour __instance)

foreach (var vent in MapUtilities.CachedShipStatus.AllVents)
{
if (TORMapOptions.ShowVentsOnMeetingMap && MeetingHud.Instance == null) return;
if (vent.name.StartsWith("JackInThe") && !(PlayerControl.LocalPlayer == Trickster.trickster || PlayerControl.LocalPlayer.Data.IsDead)) continue; //for trickster vents

if (!TORMapOptions.ShowVentsOnMap)
Expand Down
2 changes: 2 additions & 0 deletions TheOtherRoles/Patches/RoleAssignmentPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ public static RoleAssignmentData getRoleAssignmentData()
{
crewmateMax = crewmates.Count - neutralMin;
crewmateMin = crewmates.Count - neutralMax;
crewmateMin += neutralMax;
crewmateMax += neutralMax;
}

// Get the maximum allowed count of each role type based on the minimum and maximum option
Expand Down

0 comments on commit c558eb5

Please sign in to comment.