mirror of
https://github.com/Brybry16/BetterPolus.git
synced 2026-10-20 01:46:09 +00:00
Compare commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d953dd1c03 | ||
|
|
c21fba261d | ||
|
|
2af248eeed | ||
|
|
bda0146a17 | ||
|
|
4af6d43c51 | ||
|
|
fc472494d0 | ||
|
|
52946a48cd |
No files matched your search
@@ -1,21 +1,37 @@
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<TargetFramework>netstandard2.1</TargetFramework>
|
||||
<Version>1.1.1</Version>
|
||||
<GameVersion>2021.3.5s</GameVersion>
|
||||
<Mappings>NuclearPowered/Mappings:0.2.0</Mappings>
|
||||
<Version>1.1.3</Version>
|
||||
|
||||
<Description>Mod allowing some enhancements in Polus Map</Description>
|
||||
<Description>An Among Us mod that tweaks Polus, allowing a more balanced experience.</Description>
|
||||
<Authors>Brybry</Authors>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Deobfuscate Include="$(AmongUs)\BepInEx\plugins\Reactor-$(GameVersion).dll" />
|
||||
<PropertyGroup Condition="'$(GamePlatform)' == 'Steam'">
|
||||
<GameVersion>2021.6.30s</GameVersion>
|
||||
<DefineConstants>$(DefineConstants);STEAM</DefineConstants>
|
||||
</PropertyGroup>
|
||||
|
||||
<PackageReference Include="Reactor.OxygenFilter.MSBuild" Version="0.2.3" />
|
||||
<PropertyGroup Condition="'$(GamePlatform)' == 'Itch'">
|
||||
<GameVersion>2021.6.30i</GameVersion>
|
||||
<DefineConstants>$(DefineConstants);ITCH</DefineConstants>
|
||||
</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" />
|
||||
|
||||
<Reference Include="$(AmongUs)\BepInEx\plugins\Reactor.dll" />
|
||||
</ItemGroup>
|
||||
|
||||
<Target Name="Copy" AfterTargets="Reobfuscate">
|
||||
<Copy SourceFiles="$(OutputPath)reobfuscated/$(AssemblyName)-$(GameVersion).dll" DestinationFolder="$(AmongUs)/BepInEx/plugins/" Condition="'$(Configuration)' == 'Debug'" />
|
||||
<Target Name="Copy" AfterTargets="Build">
|
||||
<Copy SourceFiles="$(OutputPath)$(AssemblyName).dll" DestinationFiles="$(AmongUs)/BepInEx/plugins/$(AssemblyName)-$(Version).dll" />
|
||||
</Target>
|
||||
</Project>
|
||||
@@ -3,6 +3,7 @@ using BepInEx.IL2CPP;
|
||||
using BepInEx.Logging;
|
||||
using HarmonyLib;
|
||||
using Reactor;
|
||||
using Reactor.Patches;
|
||||
|
||||
namespace BetterPolus
|
||||
{
|
||||
@@ -22,6 +23,13 @@ namespace BetterPolus
|
||||
log = Log;
|
||||
|
||||
log.LogMessage("BetterPolus Mod loaded");
|
||||
|
||||
ReactorVersionShower.TextUpdated += (text) =>
|
||||
{
|
||||
int index = text.text.LastIndexOf('\n');
|
||||
text.text = text.text.Insert(index == -1 ? text.text.Length - 1 : index,
|
||||
"\nLoaded <color=#5E4CA6FF>BetterPolus v1.1.3-R</color> by Brybry");
|
||||
};
|
||||
|
||||
Harmony.PatchAll();
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ namespace BetterPolus
|
||||
|
||||
private static void ApplyChanges(ShipStatus instance)
|
||||
{
|
||||
if (instance.Type == ShipStatus.Nested_0.Pb)
|
||||
if (instance.Type == ShipStatus.MapType.Pb)
|
||||
{
|
||||
FindPolusObjects();
|
||||
AdjustPolus();
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
using BepInEx.IL2CPP;
|
||||
using HarmonyLib;
|
||||
using UnityEngine;
|
||||
|
||||
namespace BetterPolus
|
||||
{
|
||||
[HarmonyPatch(typeof(VersionShower), nameof(VersionShower.Start))]
|
||||
public class VersionShowerPatch
|
||||
{
|
||||
[HarmonyPostfix]
|
||||
[HarmonyPatch]
|
||||
[HarmonyPriority(Priority.First)]
|
||||
public static void Postfix(VersionShower __instance)
|
||||
{
|
||||
var reactorVS = GameObject.Find("ReactorVersion");
|
||||
GameObject.Destroy(reactorVS);
|
||||
|
||||
TextRenderer text = __instance.text;
|
||||
text.Text += "\nLoaded [5E4CA6FF]BetterPolus v1.1.1-R []by Brybry";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -78,7 +78,7 @@ There are two ways to install the mod :
|
||||
2. Install Reactor by following **[these instructions](https://docs.reactor.gg/docs/basic/install_reactor)**.
|
||||
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`**.
|
||||
5. (Optional) If you want to play on official servers, you must do the following :
|
||||
5. (Optional) If you want to play on official servers, you must do the following (**doesn't work anymore since v2021.3.31s**) :
|
||||
- Open **`Among us/BepInEx/config/gg.reactor.api.cfg`** with a text editor.
|
||||
- Find the line `Modded handshake = true` and change it to `Modded handshake = false`.
|
||||
- Save and close your editor.
|
||||
@@ -86,11 +86,27 @@ There are two ways to install the mod :
|
||||
## Releases
|
||||
| Among Us Version | Mod Version | All-in-one pack | DLL file |
|
||||
| ---------------- | ----------- | :-------------: | :------: |
|
||||
| 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)** |
|
||||
| v2020.12.9s | Ver. 1.1 | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1/BetterPolus_All-in-one-Pack-1.1.zip)** | **[Download](https://github.com/Brybry16/BetterPolus/releases/download/v1.1/BetterPolus-2020.12.9s.dll)** |
|
||||
| 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.1.6</summary>
|
||||
<ul>
|
||||
<li>Added compatibility with Among Us v2021.6.30s</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Version 1.1.2</summary>
|
||||
<ul>
|
||||
<li>Added compatibility with Among Us v2021.3.31.3s</li>
|
||||
</ul>
|
||||
</details>
|
||||
|
||||
<details>
|
||||
<summary>Version 1.1.1</summary>
|
||||
<ul>
|
||||
|
||||
Reference in new issue
Block a user