Skip to content

Commit 66debf5

Browse files
author
BuildTools
committed
Fixed bug interacting with shapeshifter
1 parent 295d000 commit 66debf5

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

SusBot_Discord/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,5 @@
3131
// You can specify all the values or you can default the Build and Revision Numbers
3232
// by using the '*' as shown below:
3333
// [assembly: AssemblyVersion("1.0.*")]
34-
[assembly: AssemblyVersion("1.0.0.0")]
34+
[assembly: AssemblyVersion("1.0.2.0")]
3535
[assembly: AssemblyFileVersion("1.0.0.0")]

SusBot_Mod/Properties/AssemblyInfo.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
// You can specify all the values or you can default the Build and Revision Numbers
3636
// by using the '*' as shown below:
3737
// [assembly: AssemblyVersion("1.0.*")]
38-
[assembly: AssemblyVersion("1.0.0.0")]
38+
[assembly: AssemblyVersion("1.0.2.0")]
3939
[assembly: AssemblyFileVersion("1.0.0.0")]
4040
[assembly: MelonInfo(typeof(SusMod), "SusBotMod", "1.0", "gronnmann")]
4141
[assembly: MelonGame("Innersloth", "Among Us")]

SusBot_Mod/SusMod.cs

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,12 @@ private void UpdateInfoFile()
8181
{
8282
var data = p.Data;
8383

84+
string name = data.PlayerName;
85+
8486
//Either voted off or really dead
85-
var dead = p.name == _lastExiledPlayer || data.IsDead;
86-
87-
88-
_playerStates[p.name] = dead;
87+
var dead = name == _lastExiledPlayer || data.IsDead;
88+
89+
_playerStates[name] = dead;
8990

9091
//LoggerInstance.Msg("Player: " + p.name + ", dead: " + dead);
9192
}

0 commit comments

Comments
 (0)