shadow potion now makes you a shadow
This commit is contained in:
1 parent
fc5526b018
commit
7ead493665
3 files changed
+11
-2
No files matched your search
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.Potions
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Shadow");
|
||||
Description.SetDefault("Rogue weapons spawn projectiles on hit, and stealth generation is boosted.");
|
||||
Description.SetDefault("You are a shadow, rogue weapons spawn projectiles on hit, and stealth generation is boosted.");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = false;
|
||||
@@ -17,6 +17,8 @@ namespace CalamityMod.Buffs.Potions
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().shadow = true;
|
||||
if (player.yoraiz0rEye < 2)
|
||||
player.yoraiz0rEye = 2;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -544,6 +544,12 @@ namespace CalamityMod.CalPlayer
|
||||
drawInfo.GoreCache.Add(heart);
|
||||
}
|
||||
}
|
||||
if (calamityPlayer.shadow && CalamityConfig.Instance.StealthInvisibility)
|
||||
{
|
||||
r *= 0f;
|
||||
g *= 0f;
|
||||
b *= 0f;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
@@ -13,7 +13,8 @@ namespace CalamityMod.Items.Potions
|
||||
{
|
||||
SacrificeTotal = 20;
|
||||
DisplayName.SetDefault("Shadow Potion");
|
||||
Tooltip.SetDefault("Rogue weapons spawn projectiles on hit\n" +
|
||||
Tooltip.SetDefault("Turns the player into a shadow with glowing eyes\n" +
|
||||
"Rogue weapons spawn projectiles on hit\n" +
|
||||
"Stealth generation is increased by 8%\n" +
|
||||
"Visual effects can be disabled with the Stealth Invisibility config");
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user