Countermeasure Mitt changes
This commit is contained in:
1 parent
6469e5de0b
commit
86da6774d7
3 files changed
+14
-2
No files matched your search
@@ -41,7 +41,7 @@ CountermeasureMitt: {
|
||||
'''
|
||||
A precision welding glove with laser emitters in each fingertip
|
||||
<right> to focus all emitters into a short range palm blast that always critically strikes
|
||||
Palm blasts have a cooldown which is significantly shorter if they miss
|
||||
Palm blasts restore a large amount of mana on hit and have a cooldown which is significantly shorter if they miss
|
||||
[c/1FFBFF:'Most battalions prefer to either spread attacks widely, or focus on a singular target.]
|
||||
[c/1FFBFF:This glove caters to both, though it will never bridge the gap between their strategies.']
|
||||
'''
|
||||
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
public float alteredRotationRot = 0.7f; // Alteration to the holdout rotation so it's not directly to the mouse, changes with the attack cycle
|
||||
public float alteredRotation => Projectile.rotation + (f2r * alteredRotationRot * -Projectile.direction);
|
||||
public Vector2 palmBlastPos => Owner.Center + alteredRotation.ToRotationVector2() * 55 * Projectile.scale;
|
||||
public int palmManaCost => HeldItem.mana * 30;
|
||||
public int palmManaCost => HeldItem.mana * 15;
|
||||
public int hitTimer = 0;
|
||||
public override void SetDefaults()
|
||||
{
|
||||
|
||||
@@ -51,6 +51,18 @@ namespace CalamityMod.Projectiles.DraedonsArsenal
|
||||
time++;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
Player player = Main.player[Projectile.owner];
|
||||
int manaGained = 250;
|
||||
player.statMana += manaGained;
|
||||
if (Main.myPlayer == player.whoAmI)
|
||||
player.ManaEffect(manaGained);
|
||||
|
||||
if (player.statMana > player.statManaMax2)
|
||||
player.statMana = player.statManaMax2;
|
||||
}
|
||||
|
||||
public override bool? CanHitNPC(NPC target) => (target == targeted) ? null : false;
|
||||
|
||||
public override void ModifyHitNPC(NPC target, ref NPC.HitModifiers modifiers)
|
||||
|
||||
Reference in new issue
Block a user