mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
Support 2026.8.18 (#677)
* Support 2026.8.18 * Huh * Add Judge in settings * OptionsV10 => OptionsV11 * Fix MeetingHudCastVotePatch * Opss * JudgeOld in string
This commit is contained in:
1 parent
89e100aa63
commit
c9104e9c0e
50 files changed
+292
-233
No files matched your search
@@ -23,10 +23,10 @@ public abstract class GameOptionsSender
|
||||
writer.StartMessage(0);
|
||||
writer.Write((byte)currentGameMode);
|
||||
|
||||
if (opt.TryCast(out NormalGameOptionsV10 normalOpt))
|
||||
NormalGameOptionsV10.Serialize(writer, normalOpt);
|
||||
else if (opt.TryCast(out HideNSeekGameOptionsV10 hnsOpt))
|
||||
HideNSeekGameOptionsV10.Serialize(writer, hnsOpt);
|
||||
if (opt.TryCast(out NormalGameOptionsV11 normalOpt))
|
||||
NormalGameOptionsV11.Serialize(writer, normalOpt);
|
||||
else if (opt.TryCast(out HideNSeekGameOptionsV11 hnsOpt))
|
||||
HideNSeekGameOptionsV11.Serialize(writer, hnsOpt);
|
||||
else
|
||||
Logger.Error("Option cast failed", ToString());
|
||||
|
||||
|
||||
@@ -19,7 +19,7 @@ public sealed class PlayerGameOptionsSender(PlayerControl player) : GameOptionsS
|
||||
public PlayerControl player = player;
|
||||
|
||||
private static IGameOptions BasedGameOptions =>
|
||||
Main.RealOptionsData.Restore(new NormalGameOptionsV10(new UnityLogger().CastFast<ILogger>()).CastFast<IGameOptions>());
|
||||
Main.RealOptionsData.Restore(new NormalGameOptionsV11(new UnityLogger().CastFast<ILogger>()).CastFast<IGameOptions>());
|
||||
|
||||
protected override bool IsDirty { get; set; }
|
||||
|
||||
@@ -640,6 +640,9 @@ public sealed class PlayerGameOptionsSender(PlayerControl player) : GameOptionsS
|
||||
case CustomRoles.DetectiveEHR:
|
||||
AURoleOptions.DetectiveSuspectLimit = CrewmateVanillaRoles.DetectiveSuspectLimit.GetFloat();
|
||||
break;
|
||||
case CustomRoles.JudgeEHR:
|
||||
AURoleOptions.JudgeTaskRequirementPercentage = CrewmateVanillaRoles.JudgeTaskRequirementPercentage.GetFloat();
|
||||
break;
|
||||
}
|
||||
|
||||
// When impostor alert is off, and the player is a desync crewmate, set impostor alert as true
|
||||
|
||||
Reference in new issue
Block a user