Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
c4e084012e
3 files changed
+19
-6
No files matched your search
@@ -496,9 +496,16 @@ namespace CalamityMod.CalPlayer
|
||||
public float rogueStealthMax = 0f;
|
||||
/// <summary>
|
||||
/// Temporarily provides stealth even without Rogue armor.
|
||||
/// Max stealth is set to 10 if it's 0.
|
||||
/// Max stealth is set to temporaryStealthMax if it's 0.
|
||||
/// </summary>
|
||||
public int temporaryStealthTimer = 0;
|
||||
/// <summary>
|
||||
/// Amount of temporary max stealth provided by gear
|
||||
/// 1f = 100 max steatlh
|
||||
/// Duration is temporaryStealthTimer
|
||||
/// Resets to 0.1f whenever timer ends
|
||||
/// </summary>
|
||||
public float temporaryStealthMax = 0.1f;
|
||||
/// <summary> A multiplier to the player's stealth generation when standing still. </summary>
|
||||
public float stealthGenStandstill = 1f;
|
||||
/// <summary> A multiplier to the player's stealth generation when moving. </summary>
|
||||
@@ -5848,14 +5855,16 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (temporaryStealthTimer > 0)
|
||||
temporaryStealthTimer--;
|
||||
else
|
||||
temporaryStealthMax = 0.1f;
|
||||
}
|
||||
|
||||
public void UpdateRogueStealth()
|
||||
{
|
||||
if (temporaryStealthTimer > 0)
|
||||
{
|
||||
if (rogueStealthMax < 0.1f)
|
||||
rogueStealthMax = 0.1f;
|
||||
if (rogueStealthMax < temporaryStealthMax)
|
||||
rogueStealthMax = temporaryStealthMax;
|
||||
wearingRogueArmor = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using System;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.Projectiles.Rogue;
|
||||
using CalamityMod.Rarities;
|
||||
@@ -55,8 +56,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
|
||||
player.Calamity().rogueStealth = player.Calamity().rogueStealthMax;
|
||||
//Vega temporarily allows stealth strikes regardless of armor for 10 seconds on Starburst usage
|
||||
player.Calamity().temporaryStealthTimer = 600;
|
||||
player.Calamity().temporaryStealthMax = 1; //Bloodflare is 1.2f
|
||||
player.Calamity().rogueStealth = Math.Max(player.Calamity().rogueStealthMax, player.Calamity().temporaryStealthMax);
|
||||
player.Calamity().StratusStarburst -= StarburstCost;
|
||||
int p = Projectile.NewProjectile(source, position, velocity, type, damage, knockback, player.whoAmI,0,1);
|
||||
if (p.WithinBounds(Main.maxProjectiles))
|
||||
|
||||
@@ -1333,6 +1333,7 @@ Vega: {
|
||||
Stealth strikes conjure an image of Lyra to deal immense damage in an area
|
||||
<right> to consume 20 Starbursts and immediately perform a stealth strike, regardless of your current Stealth
|
||||
This strike calls all star fragments to attack the damaged foe and inflicts [cbuff:CalamityMod/Voidfrost]
|
||||
Consuming Starbursts with Vega allows using stealth for 10 seconds, even without rogue armor
|
||||
'The final song of a misunderstood genius... or just a madman'
|
||||
'''
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user