Merge branch 'master' into dawnlight-spirit-item
No files matched your search
@@ -89,6 +89,10 @@ namespace CalamityMod.Buffs
|
||||
//Vanilla buffs
|
||||
switch (type)
|
||||
{
|
||||
case BuffID.Archery:
|
||||
tip = "20% increased arrow speed and 1.05x arrow damage";
|
||||
break;
|
||||
|
||||
case BuffID.Swiftness:
|
||||
tip = "15% increased movement speed";
|
||||
break;
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Divine Bless");
|
||||
Description.SetDefault("+5% damage, increased health regen, attacks inflict Banishing Fire");
|
||||
Description.SetDefault("Increased health regen and minions inflict Banishing Fire");
|
||||
Main.debuff[Type] = true;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -13,7 +13,6 @@ namespace CalamityMod.Buffs.StatBuffs
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,7 +12,6 @@ using CalamityMod.Items.Accessories.Vanity;
|
||||
using CalamityMod.Items.Armor;
|
||||
using CalamityMod.Items.DifficultyItems;
|
||||
using CalamityMod.Items.Dyes;
|
||||
using CalamityMod.Items.LoreItems;
|
||||
using CalamityMod.Items.Mounts;
|
||||
using CalamityMod.Items.Tools;
|
||||
using CalamityMod.Items.TreasureBags;
|
||||
@@ -3506,6 +3505,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int n = 13; n < 18 + player.extraAccessorySlots; n++)
|
||||
{
|
||||
Item item = player.armor[n];
|
||||
|
||||
if (item.type == ModContent.ItemType<Popo>())
|
||||
{
|
||||
snowmanHide = false;
|
||||
@@ -3535,6 +3535,13 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
public override void UpdateEquips(ref bool wallSpeedBuff, ref bool tileSpeedBuff, ref bool tileRangeBuff)
|
||||
{
|
||||
// Ankh Shield Mighty Wind immunity.
|
||||
for (int i = 0; i < 8 + player.extraAccessorySlots; i++)
|
||||
{
|
||||
if (player.armor[i].type == ItemID.AnkhShield)
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
}
|
||||
|
||||
if (CalamityConfig.Instance.BossHealthBar)
|
||||
{
|
||||
drawBossHPBar = true;
|
||||
@@ -7428,7 +7435,7 @@ namespace CalamityMod.CalPlayer
|
||||
player.AddBuff(ModContent.BuffType<ReaverRage>(), 180);
|
||||
}
|
||||
|
||||
if (fBarrier || (sirenBoobs && NPC.downedBoss3))
|
||||
if ((fBarrier || (sirenBoobs && NPC.downedBoss3)) && !areThereAnyDamnBosses)
|
||||
{
|
||||
Main.PlaySound(SoundID.Item, (int)player.position.X, (int)player.position.Y, 27);
|
||||
for (int m = 0; m < Main.maxNPCs; m++)
|
||||
@@ -8032,7 +8039,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.immune[player.whoAmI] <= 0)
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.Calamity().dashImmunityTime[player.whoAmI] <= 0)
|
||||
{
|
||||
Rectangle rect = npc.getRect();
|
||||
if (rectangle.Intersects(rect) && (npc.noTileCollide || player.CanHit(npc)))
|
||||
@@ -8064,8 +8071,8 @@ namespace CalamityMod.CalPlayer
|
||||
player.ApplyDamageToNPC(npc, (int)num, num2, direction, crit);
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<HolyExplosionSupreme>(), (int)(135 * player.AverageDamage()), 20f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<HolyEruption>(), (int)(90 * player.AverageDamage()), 5f, Main.myPlayer, 0f, 0f);
|
||||
if (npc.immune[player.whoAmI] < 6)
|
||||
npc.immune[player.whoAmI] = 6;
|
||||
if (npc.Calamity().dashImmunityTime[player.whoAmI] < 6)
|
||||
npc.Calamity().dashImmunityTime[player.whoAmI] = 6;
|
||||
npc.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 300);
|
||||
bool isImmune = false;
|
||||
for (int j = 0; j < player.hurtCooldowns.Length; j++)
|
||||
@@ -8091,7 +8098,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.immune[player.whoAmI] <= 0)
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.Calamity().dashImmunityTime[player.whoAmI] <= 0)
|
||||
{
|
||||
Rectangle rect = npc.getRect();
|
||||
if (rectangle.Intersects(rect) && (npc.noTileCollide || player.CanHit(npc)))
|
||||
@@ -8123,8 +8130,8 @@ namespace CalamityMod.CalPlayer
|
||||
player.ApplyDamageToNPC(npc, (int)num, num2, direction, crit);
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<HolyExplosionSupreme>(), (int)(120 * player.AverageDamage()), 15f, Main.myPlayer, 0f, 0f);
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<HolyEruption>(), (int)(80 * player.AverageDamage()), 5f, Main.myPlayer, 0f, 0f);
|
||||
if (npc.immune[player.whoAmI] < 6)
|
||||
npc.immune[player.whoAmI] = 6;
|
||||
if (npc.Calamity().dashImmunityTime[player.whoAmI] < 6)
|
||||
npc.Calamity().dashImmunityTime[player.whoAmI] = 6;
|
||||
bool isImmune = false;
|
||||
for (int j = 0; j < player.hurtCooldowns.Length; j++)
|
||||
{
|
||||
@@ -8149,7 +8156,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.immune[player.whoAmI] <= 0)
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.Calamity().dashImmunityTime[player.whoAmI] <= 0)
|
||||
{
|
||||
Rectangle rect = npc.getRect();
|
||||
if (rectangle.Intersects(rect) && (npc.noTileCollide || player.CanHit(npc)))
|
||||
@@ -8180,8 +8187,8 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
player.ApplyDamageToNPC(npc, (int)num, num2, direction, crit);
|
||||
Projectile.NewProjectile(player.Center, Vector2.Zero, ModContent.ProjectileType<HolyExplosion>(), (int)(60 * player.AverageDamage()), 15f, Main.myPlayer, 0f, 0f);
|
||||
if (npc.immune[player.whoAmI] < 6)
|
||||
npc.immune[player.whoAmI] = 6;
|
||||
if (npc.Calamity().dashImmunityTime[player.whoAmI] < 6)
|
||||
npc.Calamity().dashImmunityTime[player.whoAmI] = 6;
|
||||
bool isImmune = false;
|
||||
for (int j = 0; j < player.hurtCooldowns.Length; j++)
|
||||
{
|
||||
@@ -8206,7 +8213,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.immune[player.whoAmI] <= 0)
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.Calamity().dashImmunityTime[player.whoAmI] <= 0)
|
||||
{
|
||||
Rectangle rect = npc.getRect();
|
||||
if (rectangle.Intersects(rect) && (npc.noTileCollide || player.CanHit(npc)))
|
||||
@@ -8236,8 +8243,8 @@ namespace CalamityMod.CalPlayer
|
||||
direction = 1;
|
||||
}
|
||||
player.ApplyDamageToNPC(npc, (int)num, num2, direction, crit);
|
||||
if (npc.immune[player.whoAmI] < 6)
|
||||
npc.immune[player.whoAmI] = 6;
|
||||
if (npc.Calamity().dashImmunityTime[player.whoAmI] < 6)
|
||||
npc.Calamity().dashImmunityTime[player.whoAmI] = 6;
|
||||
npc.AddBuff(ModContent.BuffType<GlacialState>(), 60);
|
||||
bool isImmune = false;
|
||||
for (int j = 0; j < player.hurtCooldowns.Length; j++)
|
||||
@@ -8263,7 +8270,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.immune[player.whoAmI] <= 0)
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.Calamity().dashImmunityTime[player.whoAmI] <= 0)
|
||||
{
|
||||
Rectangle rect = npc.getRect();
|
||||
if (rectangle.Intersects(rect) && (npc.noTileCollide || player.CanHit(npc)))
|
||||
@@ -8281,8 +8288,8 @@ namespace CalamityMod.CalPlayer
|
||||
direction = 1;
|
||||
}
|
||||
player.ApplyDamageToNPC(npc, (int)num, num2, direction, crit);
|
||||
if (npc.immune[player.whoAmI] < 6)
|
||||
npc.immune[player.whoAmI] = 6;
|
||||
if (npc.Calamity().dashImmunityTime[player.whoAmI] < 6)
|
||||
npc.Calamity().dashImmunityTime[player.whoAmI] = 6;
|
||||
npc.AddBuff(ModContent.BuffType<Plague>(), 300);
|
||||
bool isImmune = false;
|
||||
for (int j = 0; j < player.hurtCooldowns.Length; j++)
|
||||
@@ -8308,7 +8315,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC npc = Main.npc[i];
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.immune[player.whoAmI] <= 0)
|
||||
if (npc.active && !npc.dontTakeDamage && !npc.friendly && npc.Calamity().dashImmunityTime[player.whoAmI] <= 0)
|
||||
{
|
||||
Rectangle rect = npc.getRect();
|
||||
if (rectangle.Intersects(rect) && (npc.noTileCollide || player.CanHit(npc)))
|
||||
@@ -8353,8 +8360,8 @@ namespace CalamityMod.CalPlayer
|
||||
direction = 1;
|
||||
}
|
||||
player.ApplyDamageToNPC(npc, (int)num, num2, direction, crit);
|
||||
if (npc.immune[player.whoAmI] < 6)
|
||||
npc.immune[player.whoAmI] = 6;
|
||||
if (npc.Calamity().dashImmunityTime[player.whoAmI] < 6)
|
||||
npc.Calamity().dashImmunityTime[player.whoAmI] = 6;
|
||||
npc.AddBuff(ModContent.BuffType<GodSlayerInferno>(), 600);
|
||||
bool isImmune = false;
|
||||
for (int j = 0; j < player.hurtCooldowns.Length; j++)
|
||||
@@ -8782,6 +8789,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
private bool DoADash(float dashDistance)
|
||||
{
|
||||
bool godSlayerDash = dashMod == 9;
|
||||
bool justDashed = false;
|
||||
int direction = 0;
|
||||
|
||||
@@ -8790,7 +8798,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (dashTimeMod < 0)
|
||||
dashTimeMod++;
|
||||
|
||||
if (dashMod == 9)
|
||||
if (godSlayerDash)
|
||||
{
|
||||
if (player.controlUp && player.controlLeft)
|
||||
{
|
||||
@@ -8938,7 +8946,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Left
|
||||
case -1:
|
||||
player.velocity = possibleVelocities[6];
|
||||
player.velocity = godSlayerDash ? possibleVelocities[6] : new Vector2(possibleVelocities[6].X, player.velocity.Y);
|
||||
break;
|
||||
|
||||
// Nothing
|
||||
@@ -8947,7 +8955,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Right
|
||||
case 1:
|
||||
player.velocity = possibleVelocities[2];
|
||||
player.velocity = godSlayerDash ? possibleVelocities[2] : new Vector2(possibleVelocities[2].X, player.velocity.Y);
|
||||
break;
|
||||
|
||||
// Down
|
||||
@@ -8969,7 +8977,7 @@ namespace CalamityMod.CalPlayer
|
||||
Point point5 = (player.Center + new Vector2(MathHelper.Clamp(direction, -1f, 1f) * player.width / 2 + 2, player.gravDir * -player.height / 2f + player.gravDir * 2f)).ToTileCoordinates();
|
||||
Point point6 = (player.Center + new Vector2(MathHelper.Clamp(direction, -1f, 1f) * player.width / 2 + 2, 0f)).ToTileCoordinates();
|
||||
if (WorldGen.SolidOrSlopedTile(point5.X, point5.Y) || WorldGen.SolidOrSlopedTile(point6.X, point6.Y))
|
||||
player.velocity.X = player.velocity.X / 2f;
|
||||
player.velocity.X /= 2f;
|
||||
|
||||
player.dashDelay = -1;
|
||||
}
|
||||
@@ -9184,7 +9192,7 @@ namespace CalamityMod.CalPlayer
|
||||
for (int i = 0; i < Main.maxNPCs; i++)
|
||||
{
|
||||
NPC nPC = Main.npc[i];
|
||||
if (nPC.active && !nPC.dontTakeDamage && !nPC.friendly && nPC.immune[player.whoAmI] == 0)
|
||||
if (nPC.active && !nPC.dontTakeDamage && !nPC.friendly && nPC.Calamity().dashImmunityTime[player.whoAmI] <= 0)
|
||||
{
|
||||
Rectangle rect = nPC.getRect();
|
||||
if (myRect.Intersects(rect) && (nPC.noTileCollide || Collision.CanHit(player.position, player.width, player.height, nPC.position, nPC.width, nPC.height)))
|
||||
@@ -9202,7 +9210,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
player.ApplyDamageToNPC(nPC, (int)Damage, Knockback, direction, false);
|
||||
}
|
||||
nPC.immune[player.whoAmI] = NPCImmuneTime;
|
||||
nPC.Calamity().dashImmunityTime[player.whoAmI] = NPCImmuneTime;
|
||||
bool isImmune = false;
|
||||
for (int j = 0; j < player.hurtCooldowns.Length; j++)
|
||||
{
|
||||
@@ -9375,8 +9383,17 @@ namespace CalamityMod.CalPlayer
|
||||
? player.itemAnimation == player.itemAnimationMax - 1 // Standard weapon (first frame of use animation)
|
||||
: player.itemTime == it.useTime; // Clockwork weapon (first frame of any individual use event)
|
||||
|
||||
if (!stealthStrikeThisFrame && animationCheck && playerUsingWeapon && StealthStrikeAvailable())
|
||||
ConsumeStealthByAttacking();
|
||||
if (!stealthStrikeThisFrame && animationCheck && playerUsingWeapon)
|
||||
{
|
||||
bool canStealthStrike = StealthStrikeAvailable();
|
||||
|
||||
// If you can stealth strike, you do.
|
||||
if (canStealthStrike)
|
||||
ConsumeStealthByAttacking();
|
||||
// Otherwise you get a "partial stealth strike" (stealth damage is still added to the weapon) and return to normally attacking.
|
||||
else
|
||||
rogueStealth = 0f;
|
||||
}
|
||||
}
|
||||
|
||||
private void ProvideStealthStatBonuses()
|
||||
|
||||
@@ -408,7 +408,7 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.divineBless)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer && player.miscCounter % 15 == 0)
|
||||
if (player.whoAmI == Main.myPlayer && player.miscCounter % 15 == 0) // Flat 4 health per second
|
||||
{
|
||||
if (!modPlayer.noLifeRegen)
|
||||
player.statLife += 1;
|
||||
@@ -797,41 +797,6 @@ namespace CalamityMod.CalPlayer
|
||||
player.statLife += 1;
|
||||
}
|
||||
|
||||
if (modPlayer.divineBless)
|
||||
{
|
||||
player.lifeRegenTime++;
|
||||
|
||||
int lifeRegenMaxBoost2 = 1;
|
||||
float lifeRegenLifeRegenTimeMaxBoost2 = 4f;
|
||||
|
||||
player.lifeRegen += lifeRegenMaxBoost2;
|
||||
|
||||
float num3 = player.lifeRegenTime * 2.5f; // lifeRegenTime max is 3600
|
||||
num3 /= 300f;
|
||||
if (num3 > 0f)
|
||||
{
|
||||
if (num3 > lifeRegenLifeRegenTimeMaxBoost2)
|
||||
num3 = lifeRegenLifeRegenTimeMaxBoost2;
|
||||
|
||||
player.lifeRegen += (int)num3;
|
||||
}
|
||||
if (player.lifeRegen > 0 && player.statLife < modPlayer.actualMaxLife)
|
||||
{
|
||||
player.lifeRegenCount++;
|
||||
if (Main.rand.Next(30000) < player.lifeRegenTime || Main.rand.NextBool(2))
|
||||
{
|
||||
int regen = Dust.NewDust(player.position, player.width, player.height, (int)CalamityDusts.ProfanedFire, 0f, 0f, 200, default, 1f);
|
||||
Main.dust[regen].noGravity = true;
|
||||
Main.dust[regen].fadeIn = 1.3f;
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 50f, 100f, 0.04f);
|
||||
Main.dust[regen].velocity = velocity;
|
||||
velocity.Normalize();
|
||||
velocity *= 34f;
|
||||
Main.dust[regen].position = player.Center - velocity;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Standing still healing bonuses (all exclusive with vanilla Shiny Stone)
|
||||
if (!player.shinyStone)
|
||||
{
|
||||
|
||||
@@ -2931,7 +2931,19 @@ namespace CalamityMod.CalPlayer
|
||||
if (modPlayer.gState)
|
||||
{
|
||||
player.statDefense -= GlacialState.DefenseReduction;
|
||||
player.velocity = Vector2.Zero;
|
||||
player.velocity.X *= 0.5f;
|
||||
player.velocity.Y += 0.05f;
|
||||
if (player.velocity.Y > 15f)
|
||||
player.velocity.Y = 15f;
|
||||
}
|
||||
|
||||
if (modPlayer.eFreeze)
|
||||
{
|
||||
player.statDefense -= GlacialState.DefenseReduction;
|
||||
player.velocity.X *= 0.5f;
|
||||
player.velocity.Y += 0.1f;
|
||||
if (player.velocity.Y > 15f)
|
||||
player.velocity.Y = 15f;
|
||||
}
|
||||
|
||||
if (modPlayer.eFreeze || modPlayer.silvaStun || modPlayer.eutrophication)
|
||||
|
||||
@@ -18,6 +18,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
using CalamityMod.Items.Accessories;
|
||||
|
||||
namespace CalamityMod.CalPlayer
|
||||
{
|
||||
@@ -558,15 +559,18 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.moonCrown && modProj.stealthStrike && modPlayer.moonCrownCooldown <= 0 && modProj.stealthStrikeHitCount < 5)
|
||||
{
|
||||
int lunarFlareDamage = (int)(MoonstoneCrown.BaseDamage * player.RogueDamage());
|
||||
float lunarFlareKB = 3f;
|
||||
for (int i = 0; i < 3; i++)
|
||||
{
|
||||
Vector2 source = new Vector2(position.X + Main.rand.Next(-201, 201), Main.screenPosition.Y - 600f - Main.rand.Next(50));
|
||||
Vector2 velocity = (position - source) / 10f;
|
||||
int flare = Projectile.NewProjectile(source, velocity, ProjectileID.LunarFlare, (int)(60 * player.RogueDamage()), 3, proj.owner);
|
||||
int flare = Projectile.NewProjectile(source, velocity, ProjectileID.LunarFlare, lunarFlareDamage, lunarFlareKB, proj.owner);
|
||||
if (flare.WithinBounds(Main.maxProjectiles))
|
||||
Main.projectile[flare].Calamity().forceTypeless = true;
|
||||
modPlayer.moonCrownCooldown = 60;
|
||||
}
|
||||
|
||||
modPlayer.moonCrownCooldown = 60;
|
||||
}
|
||||
|
||||
if (modPlayer.nanotech && modProj.stealthStrike && modPlayer.nanoFlareCooldown <= 0 && modProj.stealthStrikeHitCount < 5)
|
||||
|
||||
@@ -22,6 +22,7 @@ using CalamityMod.Items.Weapons.Ranged;
|
||||
using CalamityMod.Items.Weapons.Rogue;
|
||||
using CalamityMod.Items.Weapons.Summon;
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.AquaticScourge;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.AstrumAureus;
|
||||
@@ -35,6 +36,7 @@ using CalamityMod.NPCs.Crags;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.ExoMechs.Thanatos;
|
||||
using CalamityMod.NPCs.GreatSandShark;
|
||||
using CalamityMod.NPCs.HiveMind;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
@@ -307,11 +309,8 @@ namespace CalamityMod
|
||||
ProjectileID.MushroomSpear,
|
||||
ProjectileID.Gungnir,
|
||||
ProjectileID.ObsidianSwordfish,
|
||||
ProjectileID.ChlorophytePartisan,
|
||||
ProjectileID.MonkStaffT1,
|
||||
ProjectileID.MonkStaffT2,
|
||||
ProjectileID.MonkStaffT3,
|
||||
ProjectileID.NorthPoleWeapon,
|
||||
|
||||
// Tools
|
||||
ProjectileID.CobaltDrill,
|
||||
@@ -345,28 +344,14 @@ namespace CalamityMod
|
||||
ProjectileType<DevilsSunriseProj>(),
|
||||
ProjectileType<MarniteObliteratorProj>(),
|
||||
ProjectileType<MurasamaSlash>(),
|
||||
ProjectileType<AmidiasTridentProj>(),
|
||||
ProjectileType<AstralPikeProj>(),
|
||||
ProjectileType<BansheeHookProj>(),
|
||||
ProjectileType<BrimlanceProj>(),
|
||||
ProjectileType<DiseasedPikeSpear>(),
|
||||
ProjectileType<EarthenPikeSpear>(),
|
||||
ProjectileType<ExsanguinationLanceProjectile>(),
|
||||
ProjectileType<FulgurationHalberdProj>(),
|
||||
ProjectileType<GildedProboscisProj>(),
|
||||
ProjectileType<GoldplumeSpearProjectile>(),
|
||||
ProjectileType<HellionFlowerSpearProjectile>(),
|
||||
ProjectileType<InsidiousImpalerProj>(),
|
||||
ProjectileType<MarniteSpearProjectile>(),
|
||||
ProjectileType<NadirSpear>(),
|
||||
ProjectileType<SausageMakerSpear>(),
|
||||
ProjectileType<SpatialLanceProjectile>(),
|
||||
ProjectileType<StarnightLanceProjectile>(),
|
||||
ProjectileType<StreamGougeProj>(),
|
||||
ProjectileType<TenebreusTidesProjectile>(),
|
||||
ProjectileType<TerraLanceProjectile>(),
|
||||
ProjectileType<TyphonsGreedStaff>(),
|
||||
ProjectileType<UrchinSpearProjectile>(),
|
||||
ProjectileType<YateveoBloomSpear>(),
|
||||
ProjectileType<HydraulicVoltCrasherProjectile>(),
|
||||
ProjectileType<DragonRageStaff>()
|
||||
@@ -490,6 +475,8 @@ namespace CalamityMod
|
||||
NPCID.SkeletronHand,
|
||||
NPCID.WallofFlesh,
|
||||
NPCID.WallofFleshEye,
|
||||
NPCID.PirateShipCannon,
|
||||
NPCID.Probe,
|
||||
NPCID.Retinazer,
|
||||
NPCID.Spazmatism,
|
||||
NPCID.SkeletronPrime,
|
||||
@@ -498,7 +485,11 @@ namespace CalamityMod
|
||||
NPCID.PrimeLaser,
|
||||
NPCID.PrimeVice,
|
||||
NPCID.Plantera,
|
||||
NPCID.PlanterasTentacle,
|
||||
NPCID.Everscream,
|
||||
NPCID.SantaNK1,
|
||||
NPCID.IceQueen,
|
||||
NPCID.MourningWood,
|
||||
NPCID.Pumpking,
|
||||
NPCID.Mothron,
|
||||
NPCID.Golem,
|
||||
@@ -506,12 +497,21 @@ namespace CalamityMod
|
||||
NPCID.GolemHeadFree,
|
||||
NPCID.GolemFistRight,
|
||||
NPCID.GolemFistLeft,
|
||||
NPCID.GolemHeadFree,
|
||||
NPCID.MartianSaucerCore,
|
||||
NPCID.MartianSaucerCannon,
|
||||
NPCID.MartianSaucerTurret,
|
||||
NPCID.DukeFishron,
|
||||
NPCID.Sharkron,
|
||||
NPCID.Sharkron2,
|
||||
NPCID.CultistBoss,
|
||||
NPCID.MoonLordHead,
|
||||
NPCID.CultistDragonHead,
|
||||
NPCID.CultistDragonBody1,
|
||||
NPCID.CultistDragonBody2,
|
||||
NPCID.CultistDragonBody3,
|
||||
NPCID.CultistDragonBody4,
|
||||
NPCID.CultistDragonTail,
|
||||
NPCID.AncientCultistSquidhead,
|
||||
NPCID.MoonLordHead,
|
||||
NPCID.MoonLordHand,
|
||||
NPCID.MoonLordCore,
|
||||
NPCID.MoonLordFreeEye,
|
||||
@@ -550,8 +550,47 @@ namespace CalamityMod
|
||||
NPCType<SlimeGodRun>(),
|
||||
NPCType<SlimeGodSplit>(),
|
||||
NPCType<SlimeGodRunSplit>(),
|
||||
NPCType<BobbitWormHead>()
|
||||
};
|
||||
NPCType<Horse>(),
|
||||
NPCType<ThiccWaifu>(),
|
||||
NPCType<CryogenIce>(),
|
||||
NPCType<AquaticScourgeHead>(),
|
||||
NPCType<AquaticScourgeBody>(),
|
||||
NPCType<AquaticScourgeBodyAlt>(),
|
||||
NPCType<AquaticScourgeTail>(),
|
||||
NPCType<CragmawMire>(),
|
||||
NPCType<CalamitasRun>(),
|
||||
NPCType<CalamitasRun2>(),
|
||||
NPCType<SoulSeeker>(),
|
||||
NPCType<GreatSandShark>(),
|
||||
NPCType<SirenIce>(),
|
||||
NPCType<AureusSpawn>(),
|
||||
NPCType<PlaguebringerShade>(),
|
||||
NPCType<PlagueHomingMissile>(),
|
||||
NPCType<PlagueMine>(),
|
||||
NPCType<RavagerClawLeft>(),
|
||||
NPCType<RavagerClawRight>(),
|
||||
NPCType<RavagerLegLeft>(),
|
||||
NPCType<RavagerLegRight>(),
|
||||
NPCType<RockPillar>(),
|
||||
NPCType<RavagerHead>(),
|
||||
NPCType<Bumblefuck2>(),
|
||||
NPCType<ProvSpawnDefense>(),
|
||||
NPCType<ProvSpawnHealer>(),
|
||||
NPCType<ProvSpawnOffense>(),
|
||||
NPCType<BobbitWormHead>(),
|
||||
NPCType<Mauler>(),
|
||||
NPCType<ColossalSquid>(),
|
||||
NPCType<Reaper>(),
|
||||
NPCType<EidolonWyrmHead>(),
|
||||
NPCType<NuclearTerror>(),
|
||||
NPCType<OldDukeToothBall>(),
|
||||
NPCType<OldDukeSharkron>(),
|
||||
NPCType<DetonatingFlare>(),
|
||||
NPCType<DetonatingFlare2>(),
|
||||
NPCType<SupremeCataclysm>(),
|
||||
NPCType<SupremeCatastrophe>(),
|
||||
NPCType<SoulSeekerSupreme>()
|
||||
};
|
||||
|
||||
confusionEnemyList = new List<int>()
|
||||
{
|
||||
@@ -1265,7 +1304,8 @@ namespace CalamityMod
|
||||
|
||||
sixtySixDamageBuffList = new List<int>()
|
||||
{
|
||||
ItemID.TrueNightsEdge,
|
||||
ItemID.PulseBow,
|
||||
ItemID.TrueNightsEdge,
|
||||
ItemID.MedusaHead,
|
||||
ItemID.StaffofEarth,
|
||||
ItemID.ChristmasTreeSword,
|
||||
@@ -1277,11 +1317,12 @@ namespace CalamityMod
|
||||
|
||||
fiftyDamageBuffList = new List<int>()
|
||||
{
|
||||
ItemID.EldMelter,
|
||||
ItemID.IceBow,
|
||||
ItemID.Marrow,
|
||||
ItemID.EldMelter,
|
||||
ItemID.Flamethrower,
|
||||
ItemID.MoonlordTurretStaff,
|
||||
ItemID.WaspGun,
|
||||
ItemID.PulseBow,
|
||||
ItemID.PaladinsHammer,
|
||||
ItemID.SolarEruption,
|
||||
ItemID.DayBreak,
|
||||
@@ -1299,8 +1340,6 @@ namespace CalamityMod
|
||||
thirtyThreeDamageBuffList = new List<int>()
|
||||
{
|
||||
ItemID.WandofSparking,
|
||||
ItemID.IceBow,
|
||||
ItemID.Marrow,
|
||||
ItemID.CrystalVileShard,
|
||||
ItemID.SoulDrain,
|
||||
ItemID.ClingerStaff,
|
||||
@@ -1337,6 +1376,52 @@ namespace CalamityMod
|
||||
|
||||
tenDamageBuffList = new List<int>()
|
||||
{
|
||||
ItemID.WoodenArrow,
|
||||
ItemID.FlamingArrow,
|
||||
ItemID.UnholyArrow,
|
||||
ItemID.JestersArrow,
|
||||
ItemID.HellfireArrow,
|
||||
ItemID.HolyArrow,
|
||||
ItemID.CursedArrow,
|
||||
ItemID.FrostburnArrow,
|
||||
ItemID.ChlorophyteArrow,
|
||||
ItemID.IchorArrow,
|
||||
ItemID.VenomArrow,
|
||||
ItemID.BoneArrow,
|
||||
ItemID.EndlessQuiver,
|
||||
ItemID.MoonlordArrow,
|
||||
ItemID.DD2BetsyBow,
|
||||
ItemID.BorealWoodBow,
|
||||
ItemID.CopperBow,
|
||||
ItemID.DemonBow,
|
||||
ItemID.EbonwoodBow,
|
||||
ItemID.GoldBow,
|
||||
ItemID.HellwingBow,
|
||||
ItemID.IronBow,
|
||||
ItemID.LeadBow,
|
||||
ItemID.MoltenFury,
|
||||
ItemID.PalmWoodBow,
|
||||
ItemID.PearlwoodBow,
|
||||
ItemID.DD2PhoenixBow,
|
||||
ItemID.PlatinumBow,
|
||||
ItemID.RichMahoganyBow,
|
||||
ItemID.ShadewoodBow,
|
||||
ItemID.ShadowFlameBow,
|
||||
ItemID.SilverBow,
|
||||
ItemID.TendonBow,
|
||||
ItemID.BeesKnees,
|
||||
ItemID.TinBow,
|
||||
ItemID.Tsunami,
|
||||
ItemID.TungstenBow,
|
||||
ItemID.WoodenBow,
|
||||
ItemID.AdamantiteRepeater,
|
||||
ItemID.ChlorophyteShotbow,
|
||||
ItemID.CobaltRepeater,
|
||||
ItemID.HallowedRepeater,
|
||||
ItemID.MythrilRepeater,
|
||||
ItemID.OrichalcumRepeater,
|
||||
ItemID.PalladiumRepeater,
|
||||
ItemID.TitaniumRepeater,
|
||||
ItemID.MagnetSphere,
|
||||
ItemID.BatScepter,
|
||||
ItemID.ElectrosphereLauncher
|
||||
@@ -1434,8 +1519,8 @@ namespace CalamityMod
|
||||
|
||||
tenDamageNerfList = new List<int>()
|
||||
{
|
||||
ItemID.Phantasm,
|
||||
ItemID.StarWrath
|
||||
ItemID.DaedalusStormbow,
|
||||
ItemID.StarWrath
|
||||
};
|
||||
|
||||
quarterDamageNerfList = new List<int>()
|
||||
@@ -1443,7 +1528,6 @@ namespace CalamityMod
|
||||
ItemID.LastPrism,
|
||||
ItemID.DemonScythe,
|
||||
ItemID.Razorpine,
|
||||
ItemID.DaedalusStormbow,
|
||||
ItemID.PhoenixBlaster,
|
||||
ItemID.InfluxWaver,
|
||||
ItemID.Xenopopper,
|
||||
@@ -1717,7 +1801,10 @@ namespace CalamityMod
|
||||
NPCType<DevourerofGodsTail>(),
|
||||
NPCType<DevourerofGodsBodyS>(),
|
||||
NPCType<DevourerofGodsTailS>(),
|
||||
};
|
||||
NPCType<ThanatosBody1>(),
|
||||
NPCType<ThanatosBody2>(),
|
||||
NPCType<ThanatosTail>()
|
||||
};
|
||||
|
||||
needsDebuffIconDisplayList = new List<int>()
|
||||
{
|
||||
|
||||
@@ -22,6 +22,7 @@ using CalamityMod.NPCs.Crabulon;
|
||||
using CalamityMod.NPCs.Cryogen;
|
||||
using CalamityMod.NPCs.DesertScourge;
|
||||
using CalamityMod.NPCs.DevourerofGods;
|
||||
using CalamityMod.NPCs.ExoMechs.Thanatos;
|
||||
using CalamityMod.NPCs.HiveMind;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
@@ -576,6 +577,10 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<DevourerofGodsTailS>(), 9000 },
|
||||
{ ModContent.NPCType<Yharon>(), 15300 },
|
||||
{ ModContent.NPCType<SupremeCalamitas>(), 18000 },
|
||||
{ ModContent.NPCType<ThanatosHead>(), 21600 },
|
||||
{ ModContent.NPCType<ThanatosBody1>(), 21600 },
|
||||
{ ModContent.NPCType<ThanatosBody2>(), 21600 },
|
||||
{ ModContent.NPCType<ThanatosTail>(), 21600 },
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), 18000 }
|
||||
};
|
||||
}
|
||||
@@ -700,6 +705,10 @@ namespace CalamityMod
|
||||
{ ModContent.NPCType<DetonatingFlare>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<DetonatingFlare2>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<SupremeCalamitas>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosHead>(), bitingEnemeyVelocityScale },
|
||||
{ ModContent.NPCType<ThanatosBody1>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosBody2>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<ThanatosTail>(), velocityScaleMin },
|
||||
{ ModContent.NPCType<EidolonWyrmHeadHuge>(), bitingEnemeyVelocityScale }
|
||||
};
|
||||
}
|
||||
|
||||
|
After Width: | Height: | Size: 794 B |
|
After Width: | Height: | Size: 593 B |
|
After Width: | Height: | Size: 429 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 721 B |
|
After Width: | Height: | Size: 1.3 KiB |
|
After Width: | Height: | Size: 554 B |
|
After Width: | Height: | Size: 635 B |
|
After Width: | Height: | Size: 1.2 KiB |
|
After Width: | Height: | Size: 867 B |
|
After Width: | Height: | Size: 563 B |
|
After Width: | Height: | Size: 656 B |
|
After Width: | Height: | Size: 658 B |
|
After Width: | Height: | Size: 365 B |
|
After Width: | Height: | Size: 530 B |
|
After Width: | Height: | Size: 268 B |
|
After Width: | Height: | Size: 259 B |
|
After Width: | Height: | Size: 254 B |
@@ -66,6 +66,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.buffImmune[BuffID.Silenced] = true;
|
||||
player.buffImmune[BuffID.Cursed] = true;
|
||||
player.buffImmune[BuffID.Darkness] = true;
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<HolyFlames>()] = true;
|
||||
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
|
||||
|
||||
@@ -49,6 +49,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.buffImmune[BuffID.Silenced] = true;
|
||||
player.buffImmune[BuffID.Cursed] = true;
|
||||
player.buffImmune[BuffID.Darkness] = true;
|
||||
player.buffImmune[BuffID.WindPushed] = true;
|
||||
player.statLifeMax2 += 20;
|
||||
if (Collision.DrownCollision(player.position, player.width, player.height, player.gravDir))
|
||||
{ player.statDefense += 16; }
|
||||
|
||||
@@ -8,6 +8,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class MoonstoneCrown : ModItem
|
||||
{
|
||||
// Base damage of lunar flares on stealth strikes. Increased by rogue damage stats, but not stealth damage.
|
||||
internal const int BaseDamage = 85;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Moonstone Crown");
|
||||
@@ -20,9 +23,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 46;
|
||||
item.height = 40;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.accessory = true;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 16;
|
||||
item.damage = 18;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 36;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 26;
|
||||
item.damage = 29;
|
||||
item.ranged = true;
|
||||
item.width = 14;
|
||||
item.height = 36;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 18;
|
||||
item.damage = 20;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 36;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 14;
|
||||
item.damage = 15;
|
||||
item.ranged = true;
|
||||
item.consumable = true;
|
||||
item.width = 18;
|
||||
|
||||
@@ -14,7 +14,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 13;
|
||||
item.damage = 14;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 36;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 14;
|
||||
item.damage = 15;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 36;
|
||||
|
||||
@@ -2,7 +2,6 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -19,7 +18,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 22;
|
||||
item.damage = 24;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 46;
|
||||
|
||||
@@ -215,6 +215,8 @@ namespace CalamityMod.Items
|
||||
}
|
||||
if (item.type == ItemID.StarCannon)
|
||||
item.UseSound = null;
|
||||
if (item.type == ItemID.CelestialSigil)
|
||||
item.consumable = false;
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -810,7 +812,11 @@ namespace CalamityMod.Items
|
||||
#region Modify Weapon Damage
|
||||
public override void ModifyWeaponDamage(Item item, Player player, ref float add, ref float mult, ref float flat)
|
||||
{
|
||||
if (item.type < ItemID.Count)
|
||||
// Nerf archery potion damage buff from 1.2x to 1.05x
|
||||
if (item.useAmmo == AmmoID.Arrow && player.archery)
|
||||
mult *= 0.875f;
|
||||
|
||||
if (item.type < ItemID.Count)
|
||||
return;
|
||||
|
||||
// Summon weapons specifically do not have their damage affected by charge. They still require charge to function however.
|
||||
|
||||
@@ -82,7 +82,7 @@ namespace CalamityMod.Items
|
||||
{
|
||||
// Apply standard post-ML rarities to the item's color first.
|
||||
Color? standardRarityColor = CalamityUtils.GetRarityColor(customRarity);
|
||||
if (standardRarityColor.HasValue)
|
||||
if (!item.expert && standardRarityColor.HasValue)
|
||||
nameLine.overrideColor = standardRarityColor.Value;
|
||||
|
||||
#region Uniquely Colored Developer Items
|
||||
@@ -264,6 +264,10 @@ namespace CalamityMod.Items
|
||||
if (item.type == ItemID.RodofDiscord)
|
||||
EditTooltipByNum(0, (line) => line.text += "\nTeleportation is disabled while Chaos State is active");
|
||||
|
||||
// Indicate that the Ankh Shield provides sandstorm wind push immunity
|
||||
if (item.type == ItemID.AnkhShield)
|
||||
EditTooltipByNum(1, (line) => line.text += ", including Mighty Wind");
|
||||
|
||||
// Water removing items cannot be used in the Abyss
|
||||
string noAbyssLine = "\nCannot be used in the Abyss";
|
||||
if (item.type == ItemID.SuperAbsorbantSponge)
|
||||
@@ -288,6 +292,10 @@ namespace CalamityMod.Items
|
||||
EditTooltipByNum(0, (line) => line.text += immunityLine);
|
||||
}
|
||||
|
||||
// Nerfed Archery Potion tooltip
|
||||
if (item.type == ItemID.ArcheryPotion)
|
||||
EditTooltipByNum(0, (line) => line.text = "20% increased arrow speed and 1.05x arrow damage");
|
||||
|
||||
// Hand Warmer provides Death Mode cold protection and has a side bonus with Eskimo armor
|
||||
if (item.type == ItemID.HandWarmer)
|
||||
{
|
||||
@@ -318,7 +326,7 @@ namespace CalamityMod.Items
|
||||
// Black Belt and Master Ninja Gear have guaranteed dodges on a 60 second cooldown.
|
||||
#region Dodging Belt Tooltips
|
||||
string beltDodgeLine = "Grants the ability to dodge attacks\n" +
|
||||
$"The dodge has a {CalamityPlayer.BeltDodgeCooldown} second cooldown which is shared with all other dodges and reflects";
|
||||
$"The dodge has a {CalamityPlayer.BeltDodgeCooldown / 60} second cooldown which is shared with all other dodges and reflects";
|
||||
if (item.type == ItemID.BlackBelt)
|
||||
EditTooltipByNum(0, (line) => line.text = beltDodgeLine);
|
||||
if (item.type == ItemID.MasterNinjaGear)
|
||||
|
||||
@@ -10,7 +10,9 @@ namespace CalamityMod.Items.Potions.Alcohol
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Odd Mushroom");
|
||||
Tooltip.SetDefault("Trippy");
|
||||
Tooltip.SetDefault("Causes you to see many fake, vibrant copies of all nearby entities\n" +
|
||||
"These visual effects may be nauseating or otherwise bad for some\n" +
|
||||
"Trippy");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
using CalamityMod.Projectiles.Typeless;
|
||||
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
|
||||
namespace CalamityMod.Items.Tools
|
||||
{
|
||||
public class BobbitHook : ModItem
|
||||
@@ -11,17 +12,18 @@ namespace CalamityMod.Items.Tools
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Bobbit Hook");
|
||||
Tooltip.SetDefault(@"Retracts upon attaching to a tile with extreme speeds
|
||||
Reach: 40
|
||||
Launch Velocity: 25
|
||||
Pull Velocity: 28");
|
||||
Tooltip.SetDefault($@"Retracts upon attaching to a tile with extreme speeds
|
||||
Reach: {BobbitHead.GrappleRangInTiles}
|
||||
Launch Velocity: {BobbitHead.LaunchSpeed}
|
||||
Reelback Velocity: {BobbitHead.ReelbackSpeed}
|
||||
Pull Velocity: {BobbitHead.PullSpeed}");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
// Instead of copying these values, we can clone and modify the ones we want to copy
|
||||
item.CloneDefaults(ItemID.AmethystHook);
|
||||
item.shootSpeed = 25f; // how quickly the hook is shot.
|
||||
item.shootSpeed = BobbitHead.LaunchSpeed; // How quickly the hook is shot.
|
||||
item.shoot = ProjectileType<BobbitHead>();
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.rare = ItemRarityID.Red;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.shootSpeed = 10f;
|
||||
item.damage = 310;
|
||||
item.damage = 248;
|
||||
item.mana = 12;
|
||||
item.width = 38;
|
||||
item.height = 24;
|
||||
|
||||
@@ -25,8 +25,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.mana = 30;
|
||||
item.width = 78;
|
||||
item.height = 78;
|
||||
item.useTime = 33;
|
||||
item.useAnimation = 33;
|
||||
item.useTime = 41;
|
||||
item.useAnimation = 41;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 5f;
|
||||
|
||||
@@ -20,13 +20,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 132;
|
||||
item.damage = 155;
|
||||
item.magic = true;
|
||||
item.mana = 12;
|
||||
item.width = 80;
|
||||
item.height = 84;
|
||||
item.useTime = 6;
|
||||
item.useAnimation = 12;
|
||||
item.useTime = 8;
|
||||
item.useAnimation = 16;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4f;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 87;
|
||||
item.damage = 150;
|
||||
item.magic = true;
|
||||
item.mana = 20;
|
||||
item.width = 72;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 200;
|
||||
item.damage = 250;
|
||||
item.magic = true;
|
||||
item.mana = 10;
|
||||
item.width = 20;
|
||||
|
||||
@@ -23,8 +23,8 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.mana = 60;
|
||||
item.width = 130;
|
||||
item.height = 130;
|
||||
item.useTime = 41;
|
||||
item.useAnimation = 41;
|
||||
item.useTime = 49;
|
||||
item.useAnimation = 49;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 0f;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 102;
|
||||
item.damage = 150;
|
||||
item.damage = 140;
|
||||
item.melee = true;
|
||||
item.useAnimation = 15;
|
||||
item.useTime = 15;
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 80;
|
||||
item.damage = 1500;
|
||||
item.damage = 900;
|
||||
item.useAnimation = 14;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.useTime = 14;
|
||||
|
||||
@@ -29,7 +29,7 @@ Summons a barrage of petals and waterfalls on enemy hits");
|
||||
item.width = 76;
|
||||
item.height = 82;
|
||||
item.melee = true;
|
||||
item.damage = 1350;
|
||||
item.damage = 660;
|
||||
item.knockBack = 9f;
|
||||
item.useAnimation = 20;
|
||||
item.useTime = 20;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 240;
|
||||
item.damage = 1350;
|
||||
item.knockBack = 7.5f;
|
||||
item.useAnimation = item.useTime = 25;
|
||||
item.melee = true;
|
||||
|
||||
@@ -13,9 +13,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public class ElementalExcalibur : ModItem
|
||||
{
|
||||
private static int BaseDamage = 10000;
|
||||
private static int BaseDamage = 2000;
|
||||
private int BeamType = 0;
|
||||
private int alpha = 50;
|
||||
private const int alpha = 50;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useTime = 12;
|
||||
item.width = 56;
|
||||
item.height = 56;
|
||||
item.damage = 810;
|
||||
item.damage = 690;
|
||||
item.melee = true;
|
||||
item.knockBack = 9.9f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.width = 60;
|
||||
item.height = 62;
|
||||
|
||||
item.damage = 380;
|
||||
item.damage = 323;
|
||||
item.knockBack = 5.5f;
|
||||
item.scale = 1.5f;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
|
||||
@@ -25,7 +25,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.height = 128;
|
||||
item.width = 56;
|
||||
item.damage = 6001;
|
||||
item.damage = 2001;
|
||||
item.melee = true;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public const int YoyoBaseDamage = 115;
|
||||
public const int AuraBaseDamage = 40;
|
||||
public const int AuraMaxDamage = 120;
|
||||
public const int AuraMaxDamage = 105;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 62;
|
||||
item.damage = 60;
|
||||
item.damage = 600;
|
||||
item.melee = true;
|
||||
item.useTime = 15;
|
||||
item.useAnimation = 15;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 150;
|
||||
item.damage = 165;
|
||||
item.ranged = true;
|
||||
item.width = 60;
|
||||
item.height = 90;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 32;
|
||||
item.damage = 36;
|
||||
item.ranged = true;
|
||||
item.width = 82;
|
||||
item.height = 34;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 116;
|
||||
item.damage = 128;
|
||||
item.ranged = true;
|
||||
item.width = 44;
|
||||
item.height = 100;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 90;
|
||||
item.damage = 99;
|
||||
item.ranged = true;
|
||||
item.width = 38;
|
||||
item.height = 78;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 139;
|
||||
item.damage = 153;
|
||||
item.ranged = true;
|
||||
item.width = 40;
|
||||
item.height = 78;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 8;
|
||||
item.damage = 9;
|
||||
item.ranged = true;
|
||||
item.width = 30;
|
||||
item.height = 44;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 25;
|
||||
item.damage = 28;
|
||||
item.ranged = true;
|
||||
item.width = 30;
|
||||
item.height = 42;
|
||||
|
||||
@@ -12,12 +12,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
DisplayName.SetDefault("Bladedge Railbow");
|
||||
Tooltip.SetDefault("Fires 4 arrows at once\n" +
|
||||
"Fires 2 additional leafs");
|
||||
"Fires 2 additional leaves");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 25;
|
||||
item.damage = 28;
|
||||
item.ranged = true;
|
||||
item.width = 74;
|
||||
item.height = 24;
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-60, 61) * 0.05f;
|
||||
float SpeedY = speedY + (float)Main.rand.Next(-60, 61) * 0.05f;
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[index].noDropItem = true;
|
||||
}
|
||||
Vector2 vector2 = player.RotatedRelativePoint(player.MountedCenter, true);
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 22;
|
||||
item.damage = 25;
|
||||
item.ranged = true;
|
||||
item.width = 38;
|
||||
item.height = 68;
|
||||
@@ -63,11 +63,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<SporeBomb>(), (int)((double)damage * 4.0), knockBack * 60f, player.whoAmI, 0.0f, 0.0f);
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<SporeBomb>(), (int)(damage * 4D), knockBack * 60f, player.whoAmI);
|
||||
}
|
||||
else
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<LeafArrow>(), damage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ModContent.ProjectileType<LeafArrow>(), damage, knockBack, player.whoAmI);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 35;
|
||||
item.damage = 39;
|
||||
item.ranged = true;
|
||||
item.width = 30;
|
||||
item.height = 58;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 60;
|
||||
item.damage = 66;
|
||||
item.ranged = true;
|
||||
item.width = 34;
|
||||
item.height = 100;
|
||||
@@ -94,7 +94,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
num79 *= num80;
|
||||
float speedX4 = num78 + (float)Main.rand.Next(-600, 601) * 0.01f;
|
||||
float speedY5 = num79 + (float)Main.rand.Next(-600, 601) * 0.01f;
|
||||
int projectile = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, num73, num74, i, 0f, 0f);
|
||||
int projectile = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, num73, num74, i);
|
||||
Main.projectile[projectile].tileCollide = false;
|
||||
Main.projectile[projectile].timeLeft = 240;
|
||||
Main.projectile[projectile].noDropItem = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 800;
|
||||
item.damage = 880;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 50;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 80;
|
||||
item.damage = 88;
|
||||
item.ranged = true;
|
||||
item.width = 30;
|
||||
item.height = 38;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 35;
|
||||
item.damage = 39;
|
||||
item.ranged = true;
|
||||
item.width = 40;
|
||||
item.height = 76;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 123;
|
||||
item.damage = 135;
|
||||
item.width = 62;
|
||||
item.height = 128;
|
||||
item.useTime = 12;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 34;
|
||||
item.damage = 37;
|
||||
item.ranged = true;
|
||||
item.width = 34;
|
||||
item.height = 62;
|
||||
@@ -41,10 +41,10 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-30, 31) * 0.05f;
|
||||
float SpeedY = speedY + (float)Main.rand.Next(-30, 31) * 0.05f;
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[index].noDropItem = true;
|
||||
}
|
||||
int projectile = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ProjectileID.CrystalDart, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int projectile = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ProjectileID.CrystalDart, damage / 2, knockBack, player.whoAmI);
|
||||
Main.projectile[projectile].penetrate = 3;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 225;
|
||||
item.damage = 248;
|
||||
item.ranged = true;
|
||||
item.width = 40;
|
||||
item.height = 82;
|
||||
@@ -50,11 +50,11 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
float SpeedY = speedY + Main.rand.Next(-20, 21) * 0.05f;
|
||||
if (type == ProjectileID.WoodenArrowFriendly)
|
||||
{
|
||||
Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<DWArrow>(), damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<DWArrow>(), damage, knockBack, player.whoAmI);
|
||||
}
|
||||
else
|
||||
{
|
||||
int num121 = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.8), knockBack, player.whoAmI, 0f, 0f);
|
||||
int num121 = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, (int)(damage * 0.8), knockBack, player.whoAmI);
|
||||
Main.projectile[num121].noDropItem = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,7 @@ Right click to fire two devastating barrages of five empowered fireballs.
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 210;
|
||||
item.damage = 231;
|
||||
item.knockBack = 1f;
|
||||
item.shootSpeed = 18f;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 51;
|
||||
item.damage = 56;
|
||||
item.ranged = true;
|
||||
item.width = 26;
|
||||
item.height = 70;
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 73;
|
||||
item.damage = 80;
|
||||
item.ranged = true;
|
||||
item.width = 38;
|
||||
item.height = 62;
|
||||
@@ -37,7 +37,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-10, 11) * 0.05f;
|
||||
float SpeedY = speedY + (float)Main.rand.Next(-10, 11) * 0.05f;
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<IcicleArrowProj>(), (int)(damage * 0.7f), knockBack, player.whoAmI, 0f, 0f);
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<IcicleArrowProj>(), (int)(damage * 0.7f), knockBack, player.whoAmI);
|
||||
Main.projectile[index].noDropItem = true;
|
||||
|
||||
return true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 15;
|
||||
item.damage = 17;
|
||||
item.ranged = true;
|
||||
item.width = 20;
|
||||
item.height = 62;
|
||||
@@ -55,12 +55,12 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
if (type == ProjectileID.WoodenArrowFriendly)
|
||||
{
|
||||
int num123 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, ModContent.ProjectileType<FlareBat>(), damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int num123 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, ModContent.ProjectileType<FlareBat>(), damage, knockBack, player.whoAmI);
|
||||
Main.projectile[num123].noDropItem = true;
|
||||
}
|
||||
else
|
||||
{
|
||||
int num123 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0.0f, 0.0f);
|
||||
int num123 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[num123].noDropItem = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 16;
|
||||
item.damage = 18;
|
||||
item.ranged = true;
|
||||
item.width = 32;
|
||||
item.height = 52;
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
for (int i = -8; i <= 8; i += 8)
|
||||
{
|
||||
Vector2 perturbedSpeed = new Vector2(speedX, speedY).RotatedBy(MathHelper.ToRadians(i));
|
||||
Projectile.NewProjectile(position, perturbedSpeed, ModContent.ProjectileType<FeatherLarge>(), damage / 4, 0f, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(position, perturbedSpeed, ModContent.ProjectileType<FeatherLarge>(), damage / 4, 0f, player.whoAmI);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 30;
|
||||
item.damage = 33;
|
||||
item.ranged = true;
|
||||
item.width = 30;
|
||||
item.height = 50;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 31;
|
||||
item.damage = 34;
|
||||
item.ranged = true;
|
||||
item.width = 18;
|
||||
item.height = 36;
|
||||
@@ -57,7 +57,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
type = ProjectileID.FireArrow;
|
||||
}
|
||||
int num121 = Projectile.NewProjectile(source + offset, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int num121 = Projectile.NewProjectile(source + offset, new Vector2(speedX, speedY), type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[num121].noDropItem = true;
|
||||
}
|
||||
for (int i = 0; i < 2; i++)
|
||||
@@ -70,7 +70,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
ProjectileID.HellfireArrow,
|
||||
ProjectileID.IchorArrow
|
||||
});
|
||||
int index = Projectile.NewProjectile(position, new Vector2(SpeedX, SpeedY), type, (int)(damage * 0.5f), knockBack, player.whoAmI, 0f, 0f);
|
||||
int index = Projectile.NewProjectile(position, new Vector2(SpeedX, SpeedY), type, (int)(damage * 0.5f), knockBack, player.whoAmI);
|
||||
Main.projectile[index].noDropItem = true;
|
||||
Main.projectile[index].usesLocalNPCImmunity = true;
|
||||
Main.projectile[index].localNPCHitCooldown = 10;
|
||||
|
||||
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 180;
|
||||
item.damage = 198;
|
||||
item.ranged = true;
|
||||
item.width = 44;
|
||||
item.height = 58;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 29;
|
||||
item.damage = 32;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 62;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 51;
|
||||
item.damage = 56;
|
||||
item.ranged = true;
|
||||
item.width = 36;
|
||||
item.height = 58;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
//using TerrariaOverhaul;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
@@ -14,7 +13,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 13;
|
||||
item.damage = 14;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 40;
|
||||
@@ -28,13 +27,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.autoReuse = false;
|
||||
item.shoot = ProjectileID.PurificationPowder;
|
||||
item.shootSpeed = 30f;
|
||||
item.shootSpeed = 15f;
|
||||
item.useAmmo = AmmoID.Arrow;
|
||||
}
|
||||
|
||||
/*public void OverhaulInit()
|
||||
{
|
||||
this.SetTag("bow");
|
||||
}*/
|
||||
}
|
||||
}
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 27;
|
||||
item.damage = 30;
|
||||
item.ranged = true;
|
||||
item.width = 36;
|
||||
item.height = 110;
|
||||
@@ -52,7 +52,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
int randomExtraUpdates = Main.rand.Next(3);
|
||||
float SpeedX = speedX + Main.rand.NextFloat(-10f, 10f) * 0.05f;
|
||||
float SpeedY = speedY + Main.rand.NextFloat(-10f, 10f) * 0.05f;
|
||||
int arrow = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int arrow = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[arrow].noDropItem = true;
|
||||
Main.projectile[arrow].extraUpdates += randomExtraUpdates; //0 to 2 extra updates
|
||||
if (type == ProjectileID.JestersArrow)
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 110;
|
||||
item.damage = 121;
|
||||
item.ranged = true;
|
||||
item.width = 46;
|
||||
item.height = 78;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 66;
|
||||
item.damage = 73;
|
||||
item.ranged = true;
|
||||
item.width = 36;
|
||||
item.height = 64;
|
||||
@@ -53,7 +53,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
value9 -= vector7;
|
||||
}
|
||||
int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int num121 = Projectile.NewProjectile(vector2.X + value9.X, vector2.Y + value9.Y, speedX, speedY, type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[num121].noDropItem = true;
|
||||
}
|
||||
for (int i = 0; i < 2; i++)
|
||||
@@ -71,7 +71,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
default:
|
||||
break;
|
||||
}
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int index = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[index].noDropItem = true;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 100;
|
||||
item.damage = 125;
|
||||
item.ranged = true;
|
||||
item.width = 80;
|
||||
item.height = 46;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 100;
|
||||
item.damage = 110;
|
||||
item.width = 20;
|
||||
item.height = 12;
|
||||
item.useTime = 12;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 53;
|
||||
item.damage = 58;
|
||||
item.ranged = true;
|
||||
item.width = 58;
|
||||
item.height = 102;
|
||||
@@ -96,7 +96,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float speedX4 = num78 + Main.rand.Next(-120, 121) * 0.02f;
|
||||
float speedY5 = num79 + Main.rand.Next(-120, 121) * 0.02f;
|
||||
int num121 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int num121 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5, type, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[num121].noDropItem = true;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 40;
|
||||
item.damage = 44;
|
||||
item.ranged = true;
|
||||
item.width = 50;
|
||||
item.height = 22;
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
int projectile = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ProjectileID.IchorArrow, damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int projectile = Projectile.NewProjectile(position.X, position.Y, speedX, speedY, ProjectileID.IchorArrow, damage, knockBack, player.whoAmI);
|
||||
Main.projectile[projectile].extraUpdates++;
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 11;
|
||||
item.damage = 12;
|
||||
item.ranged = true;
|
||||
item.width = 22;
|
||||
item.height = 46;
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float SpeedX = speedX + (float)Main.rand.Next(-30, 31) * 0.05f;
|
||||
float SpeedY = speedY + (float)Main.rand.Next(-30, 31) * 0.05f;
|
||||
Projectile.NewProjectile(position.X, position.Y, SpeedX * 0.5f, SpeedY * 0.5f, ModContent.ProjectileType<SandWater>(), (int)((double)damage * 0.4), 0f, player.whoAmI, 0f, 0f);
|
||||
Projectile.NewProjectile(position.X, position.Y, SpeedX * 0.5f, SpeedY * 0.5f, ModContent.ProjectileType<SandWater>(), (int)(damage * 0.4), 0f, player.whoAmI);
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 30;
|
||||
item.damage = 33;
|
||||
item.ranged = true;
|
||||
item.width = 30;
|
||||
item.height = 38;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 160;
|
||||
item.damage = 176;
|
||||
item.ranged = true;
|
||||
item.width = 54;
|
||||
item.height = 92;
|
||||
|
||||