mirror of
https://github.com/Gurge44/EndlessHostRoles.git
synced 2026-10-20 01:46:25 +00:00
a few fixes
This commit is contained in:
1 parent
9154898af8
commit
38ac451a70
22 files changed
+179
-89
No files matched your search
@@ -1129,7 +1129,7 @@ internal static class IntroCutsceneDestroyPatch
|
||||
|
||||
Main.IntroDestroyed = true;
|
||||
PreventKill = true;
|
||||
LateTask.New(() => PreventKill = false, 10f, "PreventKillReset");
|
||||
LateTask.New(() => PreventKill = false, Options.StartingKillCooldown?.GetFloat() ?? 10f, "PreventKillReset");
|
||||
|
||||
var apc = Main.AllPlayerControlsToList;
|
||||
|
||||
@@ -1164,7 +1164,7 @@ internal static class IntroCutsceneDestroyPatch
|
||||
}
|
||||
else
|
||||
{
|
||||
int kcd = Options.StartingKillCooldown.GetInt();
|
||||
int kcd = Options.StartingKillCooldown?.GetInt() ?? 10;
|
||||
LateTask.New(() => aapc.Do(x => x.SetKillCooldown(kcd)), 2f, "FixKillCooldownTask");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user