Skip to content

Commit b2b2cd3

Browse files
committed
MalumMenu v1.2.0
1 parent f5ae50c commit b2b2cd3

File tree

4 files changed

+16
-7
lines changed

4 files changed

+16
-7
lines changed

FEATURES.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
- [Oxygen](#oxygen)
3434
- [Eletrical](#eletrical)
3535
- [Comms](#comms)
36+
- [Mushroom Mixup](#mushroom-mixup)
3637
- [Vents](#vents)
3738
- [UseVents](#usevents)
3839
- [KickVents](#kickvents)
@@ -257,6 +258,11 @@ Enables/Disables Communications sabotage
257258

258259
Type: **Button**
259260

261+
### Mushroom Mixup
262+
Induces a Mushroom Mixup on Fungle ship
263+
264+
Type: **Button**
265+
260266
## Vents
261267

262268
### UseVents

src/MalumMenu.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<LangVersion>latest</LangVersion>
55
<DebugType>embedded</DebugType>
66

7-
<VersionPrefix>1.1.1</VersionPrefix>
7+
<VersionPrefix>1.2.0</VersionPrefix>
88
<Description>all play and no cheats makes among us a dull game</Description>
99
<!-- <Authors>scp222thj</Authors> -->
1010
</PropertyGroup>

src/Meetings/MeetingPatches.cs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,14 @@ public static class Meetings_VoteIconPrefix
5353
//Basically does what the original method did with the required modifications
5454
public static bool Prefix(GameData.PlayerInfo voterPlayer, int index, Transform parent, MeetingHud __instance){
5555
if (!CheatSettings.revealVotes){
56-
return true; // Run original method instead if CheatSettings.seeAnon is turned off
56+
return true; //Run original method if CheatSettings.seeAnon is turned off
5757
}
5858

5959
SpriteRenderer spriteRenderer = Object.Instantiate<SpriteRenderer>(__instance.PlayerVotePrefab);
60-
PlayerMaterial.SetColors(voterPlayer.DefaultOutfit.ColorId, spriteRenderer);
61-
spriteRenderer.transform.SetParent(parent);
60+
61+
PlayerMaterial.SetColors(voterPlayer.DefaultOutfit.ColorId, spriteRenderer); // Skip check for GameManager.Instance.LogicOptions.GetAnonymousVotes()
62+
63+
spriteRenderer.transform.SetParent(parent);
6264
spriteRenderer.transform.localScale = Vector3.zero;
6365
PlayerVoteArea component = parent.GetComponent<PlayerVoteArea>();
6466
if (component != null)
@@ -67,6 +69,7 @@ public static bool Prefix(GameData.PlayerInfo voterPlayer, int index, Transform
6769
}
6870
__instance.StartCoroutine(Effects.Bloop((float)index * 0.3f, spriteRenderer.transform, 1f, 0.5f));
6971
parent.GetComponent<VoteSpreader>().AddVote(spriteRenderer);
70-
return false; // Skip original method
72+
73+
return false; //Skip original method
7174
}
7275
}

src/Player/NoCooldownPatches.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace MalumMenu;
55
[HarmonyPatch(typeof(PlayerControl), nameof(PlayerControl.CmdCheckShapeshift))]
66
public static class NoCooldowns_ShapeshiftPrefix
77
{
8-
//Prefix patch of PlayerControl.RpcShapeshift to remove shapeshift animation
8+
//Prefix patch of PlayerControl.CmdCheckShapeshift to remove shapeshift animation
99
public static bool Prefix(PlayerControl target, bool shouldAnimate, PlayerControl __instance)
1010
{
1111
//Skips the original method if animation is enabled &
@@ -24,7 +24,7 @@ public static bool Prefix(PlayerControl target, bool shouldAnimate, PlayerContro
2424
[HarmonyPatch(typeof(PlayerControl), nameof(PlayerControl.CmdCheckRevertShapeshift))]
2525
public static class NoCooldowns_RevertShapeshiftPrefix
2626
{
27-
//Prefix patch of PlayerControl.RpcShapeshift to remove shapeshift animation
27+
//Prefix patch of PlayerControl.CmdCheckRevertShapeshift to remove reverse shapeshift animation
2828
public static bool Prefix(bool shouldAnimate, PlayerControl __instance)
2929
{
3030
//Skips the original method if animation is enabled &

0 commit comments

Comments
 (0)