mirror of
https://github.com/Brybry16/BetterPolus.git
synced 2026-10-25 12:46:40 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
46614ad6c8 | ||
|
|
ba8edb7ef6 |
No files matched your search
@@ -1,25 +1,22 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<Version>1.1.4</Version>
|
||||
<TargetFramework>net6.0</TargetFramework>
|
||||
<Version>1.2.0</Version>
|
||||
|
||||
<Description>An Among Us mod that tweaks Polus, allowing a more balanced experience.</Description>
|
||||
<Authors>Brybry</Authors>
|
||||
<LangVersion>latest</LangVersion>
|
||||
<PlatformTarget>x86</PlatformTarget>
|
||||
</PropertyGroup>
|
||||
|
||||
|
||||
<ItemGroup>
|
||||
<Reference Include="$(AmongUs)\BepInEx\core\*.dll">
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
|
||||
<Reference Include="$(AmongUs)\BepInEx\unhollowed\*.dll">
|
||||
<Private>false</Private>
|
||||
</Reference>
|
||||
|
||||
<Reference Remove="$(AmongUs)\BepInEx\unhollowed\netstandard.dll;$(AmongUs)\BepInEx\unhollowed\Newtonsoft.Json.dll" />
|
||||
<PackageReference Include="AmongUs.GameLibs.Steam" Version="2022.10.25" />
|
||||
<PackageReference Include="BepInEx.Unity.IL2CPP" Version="6.0.0-be.662" />
|
||||
<PackageReference Include="BepInEx.IL2CPP.MSBuild" Version="2.0.1" />
|
||||
<PackageReference Include="Reactor" Version="2.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="Copy" AfterTargets="Build">
|
||||
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFiles="$(AmongUs)/BepInEx/plugins/$(AssemblyName)-$(Version).dll" />
|
||||
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFiles="$(AmongUs)/BepInEx/plugins/$(AssemblyName).dll" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -1,9 +1,7 @@
|
||||
using BepInEx;
|
||||
using BepInEx.IL2CPP;
|
||||
using BepInEx.Logging;
|
||||
using HarmonyLib;
|
||||
using System;
|
||||
using UnityEngine.SceneManagement;
|
||||
using BepInEx.Unity.IL2CPP;
|
||||
|
||||
namespace BetterPolus
|
||||
{
|
||||
@@ -13,7 +11,7 @@ namespace BetterPolus
|
||||
{
|
||||
public const string Id = "ch.brybry.betterpolus";
|
||||
public const string Name = "BetterPolus Mod";
|
||||
public const string Version = "1.1.4";
|
||||
public const string Version = "1.2.0";
|
||||
|
||||
public Harmony Harmony { get; } = new Harmony(Id);
|
||||
public static ManualLogSource log;
|
||||
@@ -22,12 +20,7 @@ namespace BetterPolus
|
||||
{
|
||||
log = Log;
|
||||
|
||||
log.LogMessage("BetterPolus Mod loaded");
|
||||
|
||||
SceneManager.add_sceneLoaded((Action<Scene, LoadSceneMode>) ((scene, loadSceneMode) =>
|
||||
{
|
||||
ModManager.Instance.ShowModStamp();
|
||||
}));
|
||||
log.LogMessage($"{Name} loaded");
|
||||
|
||||
Harmony.PatchAll();
|
||||
}
|
||||
@@ -37,7 +30,17 @@ namespace BetterPolus
|
||||
{
|
||||
public static void Postfix(VersionShower __instance)
|
||||
{
|
||||
__instance.text.text += " + <color=#5E4CA6FF>BetterPolus v1.1.4</color> by Brybry";
|
||||
__instance.text.text += $"<size=70%> + <color=#5E4CA6FF>BetterPolus v{Version}</color> by Brybry</size>";
|
||||
}
|
||||
}
|
||||
|
||||
[HarmonyPatch(typeof(AmongUsClient), nameof(AmongUsClient.Awake))]
|
||||
public static class ModStampPatch
|
||||
{
|
||||
[HarmonyPrefix]
|
||||
public static void Prefix()
|
||||
{
|
||||
DestroyableSingleton<ModManager>.Instance.ShowModStamp();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
//*
|
||||
using HarmonyLib;
|
||||
|
||||
namespace BetterPolus
|
||||
{
|
||||
[HarmonyPatch(typeof(ReactorSystemType), nameof(ReactorSystemType.RepairDamage))]
|
||||
public static class ReactorSystemType_RepairDamagePatch
|
||||
{
|
||||
public static bool Prefix(ReactorSystemType __instance, PlayerControl player, byte opCode)
|
||||
{
|
||||
if (ShipStatus.Instance.Type == ShipStatus.MapType.Pb && opCode == 128 && !__instance.IsActive)
|
||||
{
|
||||
__instance.Countdown = 40f;
|
||||
__instance.UserConsolePairs.Clear();
|
||||
__instance.IsDirty = true;
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
//*/
|
||||
@@ -54,12 +54,17 @@ An Among Us mod that tweaks Polus, allowing a more balanced experience.
|
||||
</details></li>
|
||||
</ul>
|
||||
</li>
|
||||
<li>The <b>Seismic Stabilizers Sabotage</b> (also known as Reactor Meltdown) has been <b>buffed</b>.
|
||||
<ul>
|
||||
<li>The countdown will now start at <b>40 seconds left</b> (instead of 60 seconds).</li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
|
||||
## Technology
|
||||
The game is patched at runtime via **[BepInEx Bleeding Edge](https://github.com/BepInEx/BepInEx)** and no game file is actually altered.
|
||||
|
||||
For the moment, this mod supports **Among Us v2021.11.9.5**.
|
||||
For the moment, this mod supports **Among Us v2022.10.25**.
|
||||
|
||||
## Installation
|
||||
For a better experience, every player in your lobby should download BetterPolus. You *can* play with people that don't have the mod installed but keep in mind that they won't see the same things as you (for example Vitals location).
|
||||
@@ -74,7 +79,7 @@ There are two ways to install the mod :
|
||||
3. Run the game. The mod should be installed and it should work.
|
||||
|
||||
### Custom install
|
||||
1. Download the latest build of BepInEx Bleeding Edge **[on this page](https://builds.bepis.io/projects/bepinex_be)** (select BepInEx Unity IL2CPP for Windows x86 machines).
|
||||
1. Download the latest build of BepInEx Bleeding Edge **[on this page](https://builds.bepinex.dev/projects/bepinex_be)** (select `BepInEx Unity (IL2CPP) for Windows (x86) games`).
|
||||
2. Unzip the file in your Among Us directory and run the game once. Close the game once you see the title screen.
|
||||
3. Download the **dll file** for your game version in the **[Releases section](#releases)** below.
|
||||
4. Copy the dll file into **`Among Us/BepInEx/plugins`**.
|
||||
@@ -82,8 +87,9 @@ There are two ways to install the mod :
|
||||
|
||||
## Releases
|
||||
| Among Us Version | Mod Version | All-in-one pack | DLL file |
|
||||
| ---------------- | ----------- | :-------------: | :------: |
|
||||
| v2021.11.9.5 | Ver. 1.1.4 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.4/BetterPolus_All-in-one-Pack-1.1.4.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.4/BetterPolus-1.1.4.dll)** |
|
||||
|-------------| ----------- | :-------------: | :------: |
|
||||
| v2022.10.25 | Ver. 1.2.0 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.2.0/BetterPolus_All-in-one-Pack-1.2.0.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.2.0/BetterPolus.dll)** |
|
||||
| v2021.11.9.5+ | Ver. 1.1.4 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.4/BetterPolus_All-in-one-Pack-1.1.4.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.4/BetterPolus-1.1.4.dll)** |
|
||||
| v2021.6.30 | Ver. 1.1.3 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.3/BetterPolus_All-in-one-Pack-1.1.3.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.3/BetterPolus-1.1.3.dll)** |
|
||||
| v2021.3.31.3 | Ver. 1.1.2 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.2/BetterPolus_All-in-one-Pack-1.1.2.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.2/BetterPolus-2021.3.31.3s.dll)** |
|
||||
| v2021.3.5s | Ver. 1.1.1 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.1/BetterPolus_All-in-one-Pack-1.1.1.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1.1/BetterPolus-2021.3.5s.dll)** |
|
||||
@@ -91,6 +97,14 @@ There are two ways to install the mod :
|
||||
| v2020.12.9s | Ver. 1.0 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.0.0/BetterPolus_All-in-one-Pack.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.0.0/BetterPolus-2020.12.9s.dll)** |
|
||||
|
||||
### Changelog
|
||||
<details>
|
||||
<summary>Version 1.2.0</summary>
|
||||
<ul>
|
||||
<li>Added compatibility with the .net6.0-based BepInEx BE</li>
|
||||
<li>Seismic Stabilizers Sabotage got buffed (sabotage duration went from 60s to 40s)</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Version 1.1.4</summary>
|
||||
<ul>
|
||||
|
||||
Reference in new issue
Block a user