Skip to content

Commit ee0935b

Browse files
committed
v5.3.1 Source Code
1 parent 8c9c8f2 commit ee0935b

File tree

8 files changed

+97
-83
lines changed

8 files changed

+97
-83
lines changed

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ Join our [Discord](https://discord.gg/ugyc4EVUYZ) if you have any problems or wa
4343
# Releases
4444
| Among Us - Version| Mod Version | Link |
4545
|----------|-------------|-----------------|
46+
| 16.0.2s & 16.0.2e | v5.3.1 | [Download](https://github.com/eDonnes124/Town-Of-Us/releases/download/v5.3.1/ToU.v5.3.1.zip) |
4647
| 16.0.2s & 16.0.2e | v5.3.0 | [Download](https://github.com/eDonnes124/Town-Of-Us/releases/download/v5.3.0/ToU.v5.3.0.zip) |
4748
| 2024.10.29s & 2024.10.29e | v5.2.1 | [Download](https://github.com/eDonnes124/Town-Of-Us/releases/download/v5.2.1/ToU.v5.2.1.zip) |
4849
| 2024.10.29s & 2024.10.29e | v5.2.0 | [Download](https://github.com/eDonnes124/Town-Of-Us/releases/download/v5.2.0/ToU.v5.2.0.zip) |
@@ -113,6 +114,12 @@ Join our [Discord](https://discord.gg/ugyc4EVUYZ) if you have any problems or wa
113114
<details>
114115
<summary> Changelog </summary>
115116
<details>
117+
<summary> v5.3.1 </summary>
118+
<ul> <li>Reordered the colours again to fix Better Crew Link issues</li> </ul>
119+
<ul> <li>Fixed an issue of Radar Arrow sometimes not appearing</li> </ul>
120+
<ul> <li>Fixed some chat command issues, courtesy of @chloe-gpt</li> </ul>
121+
</details>
122+
<details>
116123
<summary> v5.3.0 </summary>
117124
<ul> <li>Compatibility with the new Among Us version v16.0.2</li> </ul>
118125
<ul> <li>New Role: Eclipsal</li> </ul>

source/Patches/ChatCommands.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -699,7 +699,7 @@ public static void AddModifierMessage(ModifierEnum modifier)
699699
if (modifier == ModifierEnum.Saboteur) HudManager.Instance.Chat.AddChat(
700700
PlayerControl.LocalPlayer, "The Saboteur is an impostor modifier that passively reduces non-door sabotage cooldowns.");
701701
if (modifier == ModifierEnum.Celebrity) HudManager.Instance.Chat.AddChat(
702-
PlayerControl.LocalPlayer, "The Celebrity is a crewmate modifier that will give a message but where, when and how you died when the next meeting commences.");
702+
PlayerControl.LocalPlayer, "The Celebrity is a crewmate modifier that will send a message showing where, when, and how you died when the next meeting starts.");
703703
if (modifier == ModifierEnum.Taskmaster) HudManager.Instance.Chat.AddChat(
704704
PlayerControl.LocalPlayer, "The Taskmaster is a crewmate modifier that will automatically complete a random task after each meeting.");
705705
if (modifier == ModifierEnum.Immovable) HudManager.Instance.Chat.AddChat(

source/Patches/Modifiers/RadarMod/UpdateArrow.cs

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,14 @@
33
using TownOfUs.Roles.Modifiers;
44
using System.Collections.Generic;
55
using UnityEngine;
6+
using TownOfUs.Patches;
67

78
namespace TownOfUs.Modifiers.RadarMod
89
{
910
[HarmonyPatch(typeof(HudManager), nameof(HudManager.Update))]
1011
public class UpdateArrow
1112
{
13+
public static Sprite Sprite => TownOfUs.Arrow;
1214
public static void Postfix(HudManager __instance)
1315
{
1416
if (PlayerControl.AllPlayerControls.Count <= 1) return;
@@ -21,6 +23,21 @@ public static void Postfix(HudManager __instance)
2123
{
2224
radar.RadarArrow.DestroyAll();
2325
radar.RadarArrow.Clear();
26+
return;
27+
}
28+
29+
if (radar.RadarArrow.Count == 0)
30+
{
31+
var gameObj = new GameObject();
32+
var arrow = gameObj.AddComponent<ArrowBehaviour>();
33+
gameObj.transform.parent = PlayerControl.LocalPlayer.gameObject.transform;
34+
var renderer = gameObj.AddComponent<SpriteRenderer>();
35+
renderer.sprite = Sprite;
36+
renderer.color = Colors.Radar;
37+
arrow.image = renderer;
38+
gameObj.layer = 5;
39+
arrow.target = PlayerControl.LocalPlayer.transform.position;
40+
radar.RadarArrow.Add(arrow);
2441
}
2542

2643
foreach (var arrow in radar.RadarArrow)

source/Patches/RainbowMod/PalettePatch.cs

Lines changed: 45 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -9,31 +9,31 @@ public static void Load()
99
{
1010
Palette.ColorNames = new[]
1111
{
12-
CustomStringName.CreateAndRegister("Plum"),
13-
StringNames.ColorPurple,
14-
CustomStringName.CreateAndRegister("Lilac"),
15-
StringNames.ColorWhite,
16-
StringNames.ColorGray,
17-
CustomStringName.CreateAndRegister("Magenta"),
18-
StringNames.ColorPink,
19-
StringNames.ColorCoral,
20-
CustomStringName.CreateAndRegister("Melon"),
21-
StringNames.ColorMaroon,
2212
StringNames.ColorRed,
2313
CustomStringName.CreateAndRegister("Tawny"),
2414
StringNames.ColorOrange,
2515
CustomStringName.CreateAndRegister("Gold"),
2616
CustomStringName.CreateAndRegister("Lemon"),
27-
CustomStringName.CreateAndRegister("Macau"),
28-
CustomStringName.CreateAndRegister("Jungle"),
29-
StringNames.ColorGreen,
30-
CustomStringName.CreateAndRegister("Olive"),
31-
StringNames.ColorBrown,
17+
CustomStringName.CreateAndRegister("Magenta"),
18+
StringNames.ColorPink,
19+
StringNames.ColorCoral,
20+
CustomStringName.CreateAndRegister("Melon"),
21+
StringNames.ColorMaroon,
22+
CustomStringName.CreateAndRegister("Plum"),
23+
StringNames.ColorPurple,
24+
CustomStringName.CreateAndRegister("Lilac"),
25+
StringNames.ColorWhite,
26+
StringNames.ColorGray,
3227
StringNames.ColorBlue,
3328
CustomStringName.CreateAndRegister("Sky Blue"),
3429
CustomStringName.CreateAndRegister("Azure"),
3530
StringNames.ColorCyan,
3631
CustomStringName.CreateAndRegister("Aqua"),
32+
CustomStringName.CreateAndRegister("Macau"),
33+
CustomStringName.CreateAndRegister("Jungle"),
34+
StringNames.ColorGreen,
35+
CustomStringName.CreateAndRegister("Olive"),
36+
StringNames.ColorBrown,
3737
StringNames.ColorBlack,
3838
CustomStringName.CreateAndRegister("Cocoa"),
3939
StringNames.ColorTan,
@@ -47,31 +47,31 @@ public static void Load()
4747
};
4848
Palette.PlayerColors = new[]
4949
{
50-
new Color32(79, 0, 127, byte.MaxValue),//plum
51-
new Color32(107, 47, 188, byte.MaxValue),//purple
52-
new Color32(186, 161, 255, byte.MaxValue),//lilac
53-
new Color32(215, 225, 241, byte.MaxValue),//white
54-
Palette.FromHex(7701907),//gray
55-
new Color32(255, 0, 127, byte.MaxValue),//magenta
56-
new Color32(238, 84, 187, byte.MaxValue),//pink
57-
Palette.FromHex(14115940),//coral
58-
new Color32(168, 50, 62, byte.MaxValue),//melon
59-
Palette.FromHex(6233390),//maroon
6050
new Color32(198, 17, 17, byte.MaxValue),//red
6151
new Color32(205, 63, 0, byte.MaxValue),//tawny
6252
new Color32(240, 125, 13, byte.MaxValue),//orange
6353
new Color32(255, 207, 0, byte.MaxValue),//gold
6454
new Color32(207, 255, 0, byte.MaxValue),//lemon
65-
new Color32(0, 97, 93, byte.MaxValue),//macau
66-
new Color32(0, 47, 0, byte.MaxValue),//jungle
67-
new Color32(17, 128, 45, byte.MaxValue),//green
68-
new Color32(97, 114, 24, byte.MaxValue),//olive
69-
new Color32(113, 73, 30, byte.MaxValue),//brown
55+
new Color32(255, 0, 127, byte.MaxValue),//magenta
56+
new Color32(238, 84, 187, byte.MaxValue),//pink
57+
Palette.FromHex(14115940),//coral
58+
new Color32(168, 50, 62, byte.MaxValue),//melon
59+
Palette.FromHex(6233390),//maroon
60+
new Color32(79, 0, 127, byte.MaxValue),//plum
61+
new Color32(107, 47, 188, byte.MaxValue),//purple
62+
new Color32(186, 161, 255, byte.MaxValue),//lilac
63+
new Color32(215, 225, 241, byte.MaxValue),//white
64+
Palette.FromHex(7701907),//gray
7065
new Color32(19, 46, 210, byte.MaxValue),//blue
7166
new Color32(61, 129, 255, byte.MaxValue),//sky blue
7267
new Color32(1, 166, 255, byte.MaxValue),//azure
7368
new Color32(56, byte.MaxValue, 221, byte.MaxValue),//cyan
7469
new Color32(61, 255, 181, byte.MaxValue),//aqua
70+
new Color32(0, 97, 93, byte.MaxValue),//macau
71+
new Color32(0, 47, 0, byte.MaxValue),//jungle
72+
new Color32(17, 128, 45, byte.MaxValue),//green
73+
new Color32(97, 114, 24, byte.MaxValue),//olive
74+
new Color32(113, 73, 30, byte.MaxValue),//brown
7575
new Color32(63, 71, 78, byte.MaxValue),//black
7676
new Color32(60, 48, 44, byte.MaxValue),//cocoa
7777
Palette.FromHex(9537655),//tan
@@ -85,31 +85,31 @@ public static void Load()
8585
};
8686
Palette.ShadowColors = new[]
8787
{
88-
new Color32(55, 0, 95, byte.MaxValue),//plum
89-
new Color32(59, 23, 124, byte.MaxValue),//purple
90-
new Color32(93, 81, 128, byte.MaxValue),//lilac
91-
new Color32(132, 149, 192, byte.MaxValue),//white
92-
Palette.FromHex(4609636),//gray
93-
new Color32(191, 0, 95, byte.MaxValue),//magenta
94-
new Color32(172, 43, 174, byte.MaxValue),//pink
95-
Palette.FromHex(11813730),//coral
96-
new Color32(101, 30, 37, byte.MaxValue),//melon
97-
Palette.FromHex(4263706),//maroon
9888
new Color32(122, 8, 56, byte.MaxValue),//red
9989
new Color32(141, 31, 0, byte.MaxValue),//tawny
10090
new Color32(180, 62, 21, byte.MaxValue),//orange
10191
new Color32(191, 143, 0, byte.MaxValue),//gold
10292
new Color32(143, 191, 61, byte.MaxValue),//lemon
103-
new Color32(0, 65, 61, byte.MaxValue),//macau
104-
new Color32(0, 23, 0, byte.MaxValue),//jungle
105-
new Color32(10, 77, 46, byte.MaxValue),//green
106-
new Color32(66, 91, 15, byte.MaxValue),//olive
107-
new Color32(94, 38, 21, byte.MaxValue),//brown
93+
new Color32(191, 0, 95, byte.MaxValue),//magenta
94+
new Color32(172, 43, 174, byte.MaxValue),//pink
95+
Palette.FromHex(11813730),//coral
96+
new Color32(101, 30, 37, byte.MaxValue),//melon
97+
Palette.FromHex(4263706),//maroon
98+
new Color32(55, 0, 95, byte.MaxValue),//plum
99+
new Color32(59, 23, 124, byte.MaxValue),//purple
100+
new Color32(93, 81, 128, byte.MaxValue),//lilac
101+
new Color32(132, 149, 192, byte.MaxValue),//white
102+
Palette.FromHex(4609636),//gray
108103
new Color32(9, 21, 142, byte.MaxValue),//blue
109104
new Color32(31, 65, 128, byte.MaxValue),//sky blue
110105
new Color32(17, 104, 151, byte.MaxValue),//azure
111106
new Color32(36, 169, 191, byte.MaxValue),//cyan
112107
new Color32(31, 128, 91, byte.MaxValue),//aqua
108+
new Color32(0, 65, 61, byte.MaxValue),//macau
109+
new Color32(0, 23, 0, byte.MaxValue),//jungle
110+
new Color32(10, 77, 46, byte.MaxValue),//green
111+
new Color32(66, 91, 15, byte.MaxValue),//olive
112+
new Color32(94, 38, 21, byte.MaxValue),//brown
113113
new Color32(30, 31, 38, byte.MaxValue),//black
114114
new Color32(30, 24, 22, byte.MaxValue),//cocoa
115115
Palette.FromHex(5325118),//tan

source/Patches/Roles/Medic.cs

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -20,40 +20,40 @@ public Medic(PlayerControl player) : base(player)
2020
AddToRoleHistory(RoleType);
2121
ShieldedPlayer = null;
2222

23-
LightDarkColors.Add(10, "darker"); // Red
24-
LightDarkColors.Add(20, "darker"); // Blue
25-
LightDarkColors.Add(17, "darker"); // Green
23+
LightDarkColors.Add(0, "darker"); // Red
24+
LightDarkColors.Add(15, "darker"); // Blue
25+
LightDarkColors.Add(22, "darker"); // Green
2626
LightDarkColors.Add(6, "lighter"); // Pink
27-
LightDarkColors.Add(12, "lighter"); // Orange
27+
LightDarkColors.Add(2, "lighter"); // Orange
2828
LightDarkColors.Add(31, "lighter"); // Yellow
2929
LightDarkColors.Add(25, "darker"); // Black
30-
LightDarkColors.Add(3, "lighter"); // White
31-
LightDarkColors.Add(1, "darker"); // Purple
32-
LightDarkColors.Add(19, "darker"); // Brown
33-
LightDarkColors.Add(23, "lighter"); // Cyan
30+
LightDarkColors.Add(13, "lighter"); // White
31+
LightDarkColors.Add(11, "darker"); // Purple
32+
LightDarkColors.Add(24, "darker"); // Brown
33+
LightDarkColors.Add(18, "lighter"); // Cyan
3434
LightDarkColors.Add(33, "lighter"); // Lime
3535
LightDarkColors.Add(9, "darker"); // Maroon
3636
LightDarkColors.Add(30, "lighter"); // Rose
3737
LightDarkColors.Add(29, "lighter"); // Banana
38-
LightDarkColors.Add(4, "darker"); // Grey
38+
LightDarkColors.Add(14, "darker"); // Grey
3939
LightDarkColors.Add(27, "darker"); // Tan
4040
LightDarkColors.Add(7, "lighter"); // Coral
4141
LightDarkColors.Add(8, "darker"); // Melon
4242
LightDarkColors.Add(26, "darker"); // Cocoa
43-
LightDarkColors.Add(21, "lighter"); // Sky Blue
43+
LightDarkColors.Add(16, "lighter"); // Sky Blue
4444
LightDarkColors.Add(28, "lighter"); // Biege
4545
LightDarkColors.Add(5, "darker"); // Magenta
46-
LightDarkColors.Add(24, "lighter"); // Aqua
47-
LightDarkColors.Add(2, "lighter"); // Lilac
48-
LightDarkColors.Add(18, "darker"); // Olive
49-
LightDarkColors.Add(22, "lighter"); // Azure
50-
LightDarkColors.Add(0, "darker"); // Plum
51-
LightDarkColors.Add(16, "darker"); // Jungle
46+
LightDarkColors.Add(19, "lighter"); // Aqua
47+
LightDarkColors.Add(12, "lighter"); // Lilac
48+
LightDarkColors.Add(23, "darker"); // Olive
49+
LightDarkColors.Add(17, "lighter"); // Azure
50+
LightDarkColors.Add(10, "darker"); // Plum
51+
LightDarkColors.Add(21, "darker"); // Jungle
5252
LightDarkColors.Add(32, "lighter"); // Mint
53-
LightDarkColors.Add(14, "lighter"); // Lemon
54-
LightDarkColors.Add(15, "darker"); // Macau
55-
LightDarkColors.Add(11, "darker"); // Tawny
56-
LightDarkColors.Add(13, "lighter"); // Gold
53+
LightDarkColors.Add(4, "lighter"); // Lemon
54+
LightDarkColors.Add(20, "darker"); // Macau
55+
LightDarkColors.Add(1, "darker"); // Tawny
56+
LightDarkColors.Add(3, "lighter"); // Gold
5757
LightDarkColors.Add(34, "lighter"); // Rainbow
5858
}
5959
public float StartTimer()

source/Patches/Start.cs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ namespace TownOfUs.Patches
1313
[HarmonyPatch(typeof(IntroCutscene._CoBegin_d__35), nameof(IntroCutscene._CoBegin_d__35.MoveNext))]
1414
public static class Start
1515
{
16-
public static Sprite Sprite => TownOfUs.Arrow;
1716
public static void Postfix(IntroCutscene._CoBegin_d__35 __instance)
1817
{
1918
HudUpdate.Zooming = false;
@@ -321,21 +320,6 @@ public static void Postfix(IntroCutscene._CoBegin_d__35 __instance)
321320
sc.LastReaped = DateTime.UtcNow;
322321
sc.LastReaped = sc.LastReaped.AddSeconds(CustomGameOptions.InitialCooldowns - CustomGameOptions.ReapCd);
323322
}
324-
325-
if (PlayerControl.LocalPlayer.Is(ModifierEnum.Radar))
326-
{
327-
var radar = Modifier.GetModifier<Radar>(PlayerControl.LocalPlayer);
328-
var gameObj = new GameObject();
329-
var arrow = gameObj.AddComponent<ArrowBehaviour>();
330-
gameObj.transform.parent = PlayerControl.LocalPlayer.gameObject.transform;
331-
var renderer = gameObj.AddComponent<SpriteRenderer>();
332-
renderer.sprite = Sprite;
333-
renderer.color = Colors.Radar;
334-
arrow.image = renderer;
335-
gameObj.layer = 5;
336-
arrow.target = PlayerControl.LocalPlayer.transform.position;
337-
radar.RadarArrow.Add(arrow);
338-
}
339323
}
340324
}
341325
}

source/TownOfUs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ namespace TownOfUs
2929
public class TownOfUs : BasePlugin
3030
{
3131
public const string Id = "com.slushiegoose.townofus";
32-
public const string VersionString = "5.3.0";
32+
public const string VersionString = "5.3.1";
3333
public static System.Version Version = System.Version.Parse(VersionString);
3434
public const string VersionTag = "<color=#ff33fc></color>";
3535

source/Versioning.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,5 +47,11 @@
4747
"50614950": "2025.3.25"
4848
},
4949
"ModVersion": "5.3.0"
50+
},
51+
{
52+
"InternalVersions": {
53+
"50614950": "2025.3.25"
54+
},
55+
"ModVersion": "5.3.1"
5056
}
5157
]

0 commit comments

Comments
 (0)