Skip to content

Commit

Permalink
Merge pull request #52 from AHauntedArmy/master
Browse files Browse the repository at this point in the history
fixed base paintbrawl, removed broken patch.
  • Loading branch information
Graicc authored Mar 9, 2024
2 parents 3181cd3 + b55607a commit 1ab4558
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 3 additions & 2 deletions Utilla/GamemodeManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
using UnityEngine.SceneManagement;

using GorillaNetworking;
using GorillaGameModes;
using BepInEx;
using HarmonyLib;

Expand All @@ -28,7 +29,7 @@ public class GamemodeManager : MonoBehaviour
new Gamemode("MODDED_CASUAL", "MODDED CASUAL", BaseGamemode.Casual),
new Gamemode("MODDED_DEFAULT", "MODDED", BaseGamemode.Infection),
new Gamemode("MODDED_HUNT", "MODDED HUNT", BaseGamemode.Hunt),
new Gamemode("MODDED_BATTLE", "MODDED BRAWL", BaseGamemode.Paintbrawl)
new Gamemode("MODDED_BATTLE", "MODDED BRAWL", BaseGamemode.PaintbrawlBattle)
};
public List<Gamemode> Gamemodes { get; private set; } = new List<Gamemode>() {
new Gamemode("CASUAL", "CASUAL"),
Expand Down Expand Up @@ -301,7 +302,7 @@ void AddGamemodeToPrefabPool(Gamemode gamemode)
BaseGamemode.Casual => GameModeType.Casual,
BaseGamemode.Infection => GameModeType.Infection,
BaseGamemode.Hunt => GameModeType.Hunt,
BaseGamemode.Paintbrawl => GameModeType.Battle,
BaseGamemode.PaintbrawlBattle => GameModeType.Battle,
_ => null
};

Expand Down
2 changes: 2 additions & 0 deletions Utilla/HarmonyPatches/Patches/MatchmakingRegionPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@
// party to this document and has no duty or obligation with respect to
// this CC0 or use of the Work.

/*
using System;
using System.Collections.Generic;
using System.Reflection;
Expand Down Expand Up @@ -218,3 +219,4 @@ private static bool Prefix(PhotonNetworkController __instance, PhotonNetworkCont
}
}
}
*/
4 changes: 2 additions & 2 deletions Utilla/Models/Gamemode.cs
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ public enum BaseGamemode
/// <summary>
/// Paintbrawl gamemode, a gamemode that lets you play a game of paintball with two or more players.
/// </summary>
Paintbrawl
}
PaintbrawlBattle
}

public class Gamemode {
public const string GamemodePrefix = "MODDED_";
Expand Down

0 comments on commit 1ab4558

Please sign in to comment.