Fixed momentum capacitor being able to be used when the player has no stealth or rogue armor
This commit is contained in:
1 parent
e14ea903e8
commit
85f79ca85f
1 file changed
+1
-1
@@ -1713,7 +1713,7 @@ namespace CalamityMod.CalPlayer
|
||||
public override void ProcessTriggers(TriggersSet triggersSet)
|
||||
{
|
||||
if (CalamityMod.MomentumCapacitatorHotkey.JustPressed && momentumCapacitor && Main.myPlayer == player.whoAmI && player.Calamity().rogueStealth >= player.Calamity().rogueStealthMax * 0.3f &&
|
||||
CalamityUtils.CountProjectiles(ModContent.ProjectileType<MomentumCapacitorOrb>()) == 0)
|
||||
wearingRogueArmor && player.Calamity().rogueStealthMax > 0 && CalamityUtils.CountProjectiles(ModContent.ProjectileType<MomentumCapacitorOrb>()) == 0)
|
||||
{
|
||||
player.Calamity().rogueStealth -= player.Calamity().rogueStealthMax * 0.3f;
|
||||
Vector2 fieldSpawnCenter = new Vector2(Main.mouseX, Main.mouseY) + Main.screenPosition;
|
||||
|
||||
Reference in new issue
Block a user