hotkey and reaver tank fixes

This commit is contained in:
Altixal committed 2023-03-13 15:03:16 +07:00
1 parent 2df8a36e43
commit 4962f788f3
2 files changed
+8

No files matched your search

+4
View File
@@ -2499,6 +2499,10 @@ namespace CalamityMod.CalPlayer
public override void ProcessTriggers(TriggersSet triggersSet)
{
// Why does this otherwise work when you're dead lmao
if (Player.dead)
return;
if (CalamityKeybinds.NormalityRelocatorHotKey.JustPressed && normalityRelocator && Main.myPlayer == Player.whoAmI)
{
if (!Player.CCed && !Player.chaosState)
+4
View File
@@ -2590,6 +2590,10 @@ namespace CalamityMod.CalPlayer
flightTimeMult += 0.1;
}
// Reaver Tank set nuke flight time
if (reaverDefense)
flightTimeMult -= 0.2f;
// Increase wing time
if (Player.wingTimeMax > 0)
Player.wingTimeMax = (int)(Player.wingTimeMax * flightTimeMult);