gfb spikecrag buffs post-provi
This commit is contained in:
1 parent
3970ad3e3d
commit
f141d79420
4 files changed
+30
-1
No files matched your search
@@ -4,6 +4,7 @@ using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Summon
|
||||
{
|
||||
@@ -30,6 +31,8 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
Item.shoot = ModContent.ProjectileType<Spikecrag>();
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list) => list.FindAndReplace("[GFB]", this.GetLocalizedValue(Main.zenithWorld ? "TooltipGFB" : "TooltipNormal"));
|
||||
|
||||
public override bool Shoot(Player player, EntitySource_ItemUse_WithAmmo source, Vector2 position, Vector2 velocity, int type, int damage, float knockback)
|
||||
{
|
||||
//CalamityUtils.OnlyOneSentry(player, type);
|
||||
@@ -39,5 +42,12 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
player.UpdateMaxTurrets();
|
||||
return false;
|
||||
}
|
||||
|
||||
public override void ModifyWeaponDamage(Player player, ref StatModifier damage)
|
||||
{
|
||||
bool superBuff = DownedBossSystem.downedProvidence && Main.zenithWorld;
|
||||
float buffAMT = superBuff ? 3 : 1;
|
||||
damage *= buffAMT;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -603,7 +603,13 @@ SlimePuppetStaff: {
|
||||
|
||||
SpikecragStaff: {
|
||||
DisplayName: Spikecrag Staff
|
||||
Tooltip: Summons a spikecrag to protect you
|
||||
Tooltip: "[GFB]"
|
||||
TooltipNormal: Summons a spikecrag to protect you
|
||||
TooltipGFB:
|
||||
'''
|
||||
Summons a spikecrag to protect you"
|
||||
Defeating the Profaned Goddess unlocks its true power
|
||||
'''
|
||||
}
|
||||
|
||||
SquirrelSquireStaff: {
|
||||
|
||||
@@ -78,6 +78,10 @@ namespace CalamityMod.Projectiles.Summon
|
||||
if ((Projectile.ai[1] % 10f) == 0f)
|
||||
{
|
||||
int amount = Main.rand.Next(2, 4);
|
||||
if (DownedBossSystem.downedProvidence && Main.zenithWorld) // spikecrag gfb buff
|
||||
{
|
||||
amount += 6;
|
||||
}
|
||||
for (int i = 0; i < amount; i++)
|
||||
{
|
||||
float velocityX = Main.rand.NextFloat(-10f, 10f);
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using CalamityMod.Buffs.DamageOverTime;
|
||||
|
||||
namespace CalamityMod.Projectiles.Summon
|
||||
{
|
||||
@@ -31,5 +32,13 @@ namespace CalamityMod.Projectiles.Summon
|
||||
Projectile.rotation = Projectile.velocity.ToRotation() + MathHelper.PiOver2;
|
||||
Projectile.velocity.Y += 0.1f;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(NPC target, NPC.HitInfo hit, int damageDone)
|
||||
{
|
||||
if (Main.zenithWorld)
|
||||
{
|
||||
target.AddBuff(ModContent.BuffType<HolyFlames>(), 180);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user