Skip to content

Commit

Permalink
readme and final changes
Browse files Browse the repository at this point in the history
  • Loading branch information
Aeolic committed Feb 14, 2021
1 parent 0cef741 commit 0a5cc43
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 3 deletions.
3 changes: 1 addition & 2 deletions CultistPlugin/CultistSettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@ public static void SetCultistSettings()
{
IsCultistUsed = CultistPlugin.UseCultist.GetValue();
CultistVisionModifier = CultistPlugin.CultistVisionModifier.GetValue();
//TODO USE AFTER TESTING CultistConversionCooldown = CultistPlugin.CultistConversionCooldown.GetValue();
CultistConversionCooldown = 1;
CultistConversionCooldown = CultistPlugin.CultistConversionCooldown.GetValue();
MaxCultistConversions = (int) CultistPlugin.CultistConversions.GetValue();
ImpostorConversionAttemptUsesConversion = CultistPlugin.ImpostorConversionAttemptUsesConversion.GetValue();
DoCrewmatesWinWhenImpostorsAreDead = CultistPlugin.CrewWinsWhenImpDead.GetValue();
Expand Down
2 changes: 1 addition & 1 deletion CultistPlugin/IntroCutscenePatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ static void Postfix(IntroCutscene.CoBegin__d __instance)
{
if (IsCultistUsed)
{
CultistMod.LastConversion = DateTime.UtcNow.AddSeconds(__instance.timer - CultistConversionCooldown);
CultistMod.LastConversion = DateTime.UtcNow; //.AddSeconds(__instance.timer);

if (PlayerControl.LocalPlayer == InitialCultist)
{
Expand Down
7 changes: 7 additions & 0 deletions CultistPlugin/MeetingPatch.cs
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,13 @@ static void Postfix(MeetingHud __instance)
return;
}

if (IsCultist(__instance.exiledPlayer.PlayerId) && amntAliveCrewmates > 0 &&
amntAliveCultists <= 1 && amntAliveImpostors == 0)
{
CLog.Info("Crewmates WIN BY VOTING last Cultists OFF, not creating dummy.!");
return;
}

//if last impostor just got kicked, might need to create dummy if cultists left in the game
if (amntAliveImpostors == 1 && amntAliveCultists > 0 && __instance.exiledPlayer.IsImpostor)
{
Expand Down
Binary file modified README.md
Binary file not shown.
Binary file added cultist_intro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 0a5cc43

Please sign in to comment.