immcrab/Lasting-Utilla
Ownership not verified 1
Viewing main at commit a6a25ac430“Add files via upload”· 11 months ago
27 lines · 822 BRaw on GitHub
// Decompiled with JetBrains decompiler
// Type: Utilla.Patches.ScoreBoardRoomNamePatch
// Assembly: Utilla, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
// MVID: FDD08D98-E155-49FA-85BC-1930928C3BAA
// Assembly location: C:\Program Files (x86)\Steam\steamapps\common\Gorilla Tag\BepInEx\plugins\Utilla\Utilla.dll
using HarmonyLib;
using Utilla.Models;
using Utilla.Utils;
#nullable disable
namespace Utilla.Patches;
[HarmonyPatch(typeof (GorillaScoreBoard), "RoomType")]
[HarmonyPriority(700)]
internal class ScoreBoardRoomNamePatch
{
public static bool Prefix(ref string __result)
{
Gamemode currentGamemode = GameModeUtils.CurrentGamemode;
if (currentGamemode == null)
return true;
__result = currentGamemode.DisplayName.ToUpper();
return false;
}
}
Code is shown from GitHub as-is. Linking a repository doesn’t prove that a release file on Canopy was built from it.