a few fixes

This commit is contained in:
Gurge44 committed 2026-05-18 13:14:55 +02:00
1 parent 9154898af8
commit 38ac451a70
22 files changed
+179 -89

No files matched your search

+2 -2
View File
@@ -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");
}
}