Implemented Magna Cannon to Base Holdout.

1. Implemented Magna Cannon to the BaseGunHoldoutProjectile abstract class.
2. Gave multiplayer support to Magna Cannon.
This commit is contained in:
Memes committed 2024-05-17 16:30:58 +02:00
1 parent 52da30c8f0
commit fa4e98fdec
3 files changed
+56 -84

No files matched your search

+1 -1
View File
@@ -887,7 +887,7 @@ namespace CalamityMod
/// </summary>
/// <param name="player">The player using the holdout.</param>
/// <returns>Returns <see langword="true"/> if the player CAN'T use the item.</returns>
public static bool CantUseHoldout(this Player player) => player == null || !player.active || player.dead || !player.channel || player.CCed || player.noItems;
public static bool CantUseHoldout(this Player player, bool needsToHold = true) => player == null || !player.active || player.dead || (!player.channel && needsToHold) || player.CCed || player.noItems;
/// <summary>
/// Makes the given player send the given packet to all appropriate receivers.<br />