Merge branch 'master' into draedon-summoner
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;
|
||||
|
||||
|
Before Width: | Height: | Size: 476 B After Width: | Height: | Size: 571 B |
@@ -1,23 +0,0 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class EvasionScarfBoost : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Evasion Scarf Boost");
|
||||
Description.SetDefault("10% increased damage, 10% increased crit chance, and 15% increased melee speed");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().eScarfBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 547 B |
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -1,23 +0,0 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Buffs.StatBuffs
|
||||
{
|
||||
public class ScarfMeleeBoost : ModBuff
|
||||
{
|
||||
public override void SetDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Scarf Boost");
|
||||
Description.SetDefault("10% increased damage, 5% increased crit chance, and 5% increased melee speed");
|
||||
Main.debuff[Type] = false;
|
||||
Main.pvpBuff[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
longerExpertDebuff = false;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
player.Calamity().sMeleeBoost = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 575 B |
@@ -32,6 +32,7 @@ using CalamityMod.NPCs.GreatSandShark;
|
||||
using CalamityMod.NPCs.Leviathan;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.NPCs.PlagueEnemies;
|
||||
using CalamityMod.NPCs.Polterghast;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
@@ -608,7 +609,8 @@ namespace CalamityMod.CalPlayer
|
||||
public int tarraMageHealCooldown = 0;
|
||||
public int tarraCrits = 0;
|
||||
public bool tarraRanged = false;
|
||||
public bool tarraThrowing = false;
|
||||
public int tarraRangedCooldown = 0;
|
||||
public bool tarraThrowing = false;
|
||||
public bool tarragonImmunityCooldown = false;
|
||||
public bool tarragonImmunity = false;
|
||||
public int tarraThrowingCrits = 0;
|
||||
@@ -688,9 +690,10 @@ namespace CalamityMod.CalPlayer
|
||||
public int prismaticLasers = 0;
|
||||
public bool silvaSet = false;
|
||||
public bool silvaMage = false;
|
||||
public bool silvaSummon = false;
|
||||
public int silvaMageCooldown = 0;
|
||||
public bool silvaSummon = false;
|
||||
public bool hasSilvaEffect = false;
|
||||
public int silvaCountdown = 300;
|
||||
public int silvaCountdown = 480;
|
||||
public bool auricSet = false;
|
||||
public bool omegaBlueChestplate = false;
|
||||
public bool omegaBlueSet = false;
|
||||
@@ -760,8 +763,6 @@ namespace CalamityMod.CalPlayer
|
||||
public bool xWrath = false;
|
||||
public bool graxDefense = false;
|
||||
public bool encased = false;
|
||||
public bool sMeleeBoost = false;
|
||||
public bool eScarfBoost = false;
|
||||
public bool tFury = false;
|
||||
public bool cadence = false;
|
||||
public bool omniscience = false;
|
||||
@@ -1777,8 +1778,6 @@ namespace CalamityMod.CalPlayer
|
||||
xWrath = false;
|
||||
graxDefense = false;
|
||||
encased = false;
|
||||
sMeleeBoost = false;
|
||||
eScarfBoost = false;
|
||||
tFury = false;
|
||||
cadence = false;
|
||||
omniscience = false;
|
||||
@@ -2048,8 +2047,10 @@ namespace CalamityMod.CalPlayer
|
||||
gSabatonFall = 0;
|
||||
gSabatonCooldown = 0;
|
||||
astralStarRainCooldown = 0;
|
||||
bloodflareMageCooldown = 0;
|
||||
tarraMageHealCooldown = 0;
|
||||
silvaMageCooldown = 0;
|
||||
bloodflareMageCooldown = 0;
|
||||
tarraRangedCooldown = 0;
|
||||
tarraMageHealCooldown = 0;
|
||||
bossRushImmunityFrameCurseTimer = 0;
|
||||
aBulwarkRareMeleeBoostTimer = 0;
|
||||
acidRoundMultiplier = 1D;
|
||||
@@ -2170,8 +2171,6 @@ namespace CalamityMod.CalPlayer
|
||||
kamiBoost = false;
|
||||
graxDefense = false;
|
||||
encased = false;
|
||||
sMeleeBoost = false;
|
||||
eScarfBoost = false;
|
||||
tFury = false;
|
||||
cadence = false;
|
||||
omniscience = false;
|
||||
@@ -2271,7 +2270,7 @@ namespace CalamityMod.CalPlayer
|
||||
silvaMage = false;
|
||||
silvaSummon = false;
|
||||
hasSilvaEffect = false;
|
||||
silvaCountdown = 300;
|
||||
silvaCountdown = 480;
|
||||
auricSet = false;
|
||||
omegaBlueChestplate = false;
|
||||
omegaBlueSet = false;
|
||||
@@ -3581,14 +3580,6 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
meleeSpeedMult += 0.1f;
|
||||
}
|
||||
if (sMeleeBoost)
|
||||
{
|
||||
meleeSpeedMult += 0.05f;
|
||||
}
|
||||
if (eScarfBoost)
|
||||
{
|
||||
meleeSpeedMult += 0.15f;
|
||||
}
|
||||
if (yPower)
|
||||
{
|
||||
meleeSpeedMult += 0.05f;
|
||||
@@ -4019,15 +4010,9 @@ namespace CalamityMod.CalPlayer
|
||||
private void OnDodge()
|
||||
{
|
||||
if (evasionScarf)
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<EvasionScarfBoost>(), CalamityUtils.SecondsToFrames(9f));
|
||||
player.AddBuff(ModContent.BuffType<EvasionScarfCooldown>(), player.chaosState ? CalamityUtils.SecondsToFrames(20f) : CalamityUtils.SecondsToFrames(13f));
|
||||
}
|
||||
else
|
||||
{
|
||||
player.AddBuff(ModContent.BuffType<ScarfMeleeBoost>(), 540);
|
||||
player.AddBuff(ModContent.BuffType<ScarfCooldown>(), player.chaosState ? 1800 : 900);
|
||||
}
|
||||
|
||||
player.immune = true;
|
||||
player.immuneTime = player.longInvince ? 100 : 60;
|
||||
@@ -4261,7 +4246,7 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
Main.PlaySound(mod.GetLegacySoundSlot(SoundType.Custom, "Sounds/Custom/SilvaActivation"), (int)player.position.X, (int)player.position.Y);
|
||||
|
||||
player.AddBuff(ModContent.BuffType<SilvaRevival>(), 300);
|
||||
player.AddBuff(ModContent.BuffType<SilvaRevival>(), 480);
|
||||
|
||||
if (draconicSurge && !draconicSurgeCooldown)
|
||||
{
|
||||
@@ -4487,24 +4472,6 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Use Time Mult
|
||||
public override float UseTimeMultiplier(Item item)
|
||||
{
|
||||
if (auricSet && godSlayerRanged)
|
||||
{
|
||||
if (item.ranged && item.useTime > 3)
|
||||
return 1.05f;
|
||||
}
|
||||
if (auricSet && godSlayerThrowing)
|
||||
{
|
||||
if (player.statLife > (int)(player.statLifeMax2 * 0.5) &&
|
||||
item.Calamity().rogue && item.useTime > 3)
|
||||
return 1.05f;
|
||||
}
|
||||
return 1f;
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Get Heal Life
|
||||
public override void GetHealLife(Item item, bool quickHeal, ref int healValue)
|
||||
{
|
||||
@@ -5179,10 +5146,6 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
#region MultiplierBoosts
|
||||
double damageMult = 1.0;
|
||||
if (auricSet && godSlayerDamage && item.melee)
|
||||
{
|
||||
damageMult += 0.15;
|
||||
}
|
||||
if (item.melee && item.type != ModContent.ItemType<UltimusCleaver>() && item.type != ModContent.ItemType<InfernaCutter>())
|
||||
{
|
||||
damageMult += trueMeleeDamage;
|
||||
@@ -5310,28 +5273,12 @@ namespace CalamityMod.CalPlayer
|
||||
damageMult += 0.05;
|
||||
}
|
||||
|
||||
if (auricSet && godSlayerDamage && isTrueMelee)
|
||||
damageMult += 0.15;
|
||||
|
||||
if (enraged)
|
||||
damageMult += 1.25;
|
||||
|
||||
if (silvaCountdown <= 0 && hasSilvaEffect && silvaMage && proj.magic)
|
||||
damageMult += 0.1;
|
||||
|
||||
if (silvaCountdown <= 0 && hasSilvaEffect && silvaSummon && isSummon)
|
||||
damageMult += 0.1;
|
||||
|
||||
if (proj.type == ModContent.ProjectileType<FrostsparkBulletProj>())
|
||||
{
|
||||
if (target.buffImmune[ModContent.BuffType<GlacialState>()])
|
||||
damageMult += 0.1;
|
||||
}
|
||||
|
||||
else if (proj.type == ProjectileID.InfernoFriendlyBlast)
|
||||
{
|
||||
if (proj.type == ProjectileID.InfernoFriendlyBlast)
|
||||
damageMult += 0.33;
|
||||
}
|
||||
|
||||
if (brimflameFrenzy && brimflameSet)
|
||||
{
|
||||
if (proj.magic)
|
||||
@@ -7430,7 +7377,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++)
|
||||
@@ -8034,7 +7981,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)))
|
||||
@@ -8066,8 +8013,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++)
|
||||
@@ -8093,7 +8040,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)))
|
||||
@@ -8125,8 +8072,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++)
|
||||
{
|
||||
@@ -8151,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)))
|
||||
@@ -8182,8 +8129,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++)
|
||||
{
|
||||
@@ -8208,7 +8155,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)))
|
||||
@@ -8238,8 +8185,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++)
|
||||
@@ -8265,7 +8212,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)))
|
||||
@@ -8283,8 +8230,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++)
|
||||
@@ -8310,7 +8257,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)))
|
||||
@@ -8355,8 +8302,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++)
|
||||
@@ -9187,7 +9134,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)))
|
||||
@@ -9205,7 +9152,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++)
|
||||
{
|
||||
|
||||
@@ -23,6 +23,7 @@ using CalamityMod.NPCs.AcidRain;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.Crags;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.PlagueEnemies;
|
||||
using CalamityMod.NPCs.SupremeCalamitas;
|
||||
using CalamityMod.Projectiles.Boss;
|
||||
using CalamityMod.Projectiles.Environment;
|
||||
@@ -1105,8 +1106,12 @@ namespace CalamityMod.CalPlayer
|
||||
modPlayer.gSabatonFall--;
|
||||
if (modPlayer.astralStarRainCooldown > 0)
|
||||
modPlayer.astralStarRainCooldown--;
|
||||
if (modPlayer.tarraRangedCooldown > 0)
|
||||
modPlayer.tarraRangedCooldown--;
|
||||
if (modPlayer.bloodflareMageCooldown > 0)
|
||||
modPlayer.bloodflareMageCooldown--;
|
||||
if (modPlayer.silvaMageCooldown > 0)
|
||||
modPlayer.silvaMageCooldown--;
|
||||
if (modPlayer.tarraMageHealCooldown > 0)
|
||||
modPlayer.tarraMageHealCooldown--;
|
||||
if (modPlayer.featherCrownCooldown > 0)
|
||||
@@ -2477,17 +2482,6 @@ namespace CalamityMod.CalPlayer
|
||||
player.meleeDamage += 0.2f;
|
||||
}
|
||||
|
||||
if (modPlayer.eScarfBoost)
|
||||
{
|
||||
player.allDamage += 0.1f;
|
||||
modPlayer.AllCritBoost(10);
|
||||
}
|
||||
if (modPlayer.sMeleeBoost)
|
||||
{
|
||||
player.allDamage += 0.1f;
|
||||
modPlayer.AllCritBoost(5);
|
||||
}
|
||||
|
||||
if (modPlayer.tFury)
|
||||
{
|
||||
player.meleeDamage += 0.3f;
|
||||
@@ -3643,8 +3637,8 @@ namespace CalamityMod.CalPlayer
|
||||
modPlayer.GetStatBonuses();
|
||||
|
||||
// True melee damage bonuses
|
||||
double damageAdd = (modPlayer.dodgeScarf ? 0.15 : 0) +
|
||||
(modPlayer.evasionScarf ? 0.1 : 0) +
|
||||
double damageAdd = (modPlayer.dodgeScarf ? 0.1 : 0) +
|
||||
(modPlayer.evasionScarf ? 0.05 : 0) +
|
||||
((modPlayer.aBulwarkRare && modPlayer.aBulwarkRareMeleeBoostTimer > 0) ? 0.5 : 0) +
|
||||
(modPlayer.fungalSymbiote ? 0.15 : 0) +
|
||||
((player.head == ArmorIDs.Head.MoltenHelmet && player.body == ArmorIDs.Body.MoltenBreastplate && player.legs == ArmorIDs.Legs.MoltenGreaves) ? 0.2 : 0) +
|
||||
|
||||
@@ -242,21 +242,12 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
if (modPlayer.tarraRanged && Main.rand.Next(0, 100) >= 88 && player.ownedProjectileCounts[ProjectileType<TarraEnergy>()] < 5 && (proj.timeLeft <= 2 || proj.penetrate <= 1))
|
||||
{
|
||||
int projAmt = Main.rand.Next(2, 4);
|
||||
for (int projCount = 0; projCount < projAmt; projCount++)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
Projectile.NewProjectile(proj.Center, velocity, ProjectileType<TarraEnergy>(), CalamityUtils.DamageSoftCap(proj.damage * 0.33, 65), 0f, proj.owner);
|
||||
}
|
||||
}
|
||||
if (npcCheck)
|
||||
{
|
||||
if (modPlayer.tarraRanged && crit && proj.ranged)
|
||||
if (modPlayer.tarraRanged && proj.ranged && modPlayer.tarraRangedCooldown <= 0)
|
||||
{
|
||||
int leafAmt = Main.rand.Next(2, 4);
|
||||
for (int l = 0; l < leafAmt; l++)
|
||||
modPlayer.tarraRangedCooldown = 60;
|
||||
for (int l = 0; l < 2; l++)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
int FUCKYOU = Projectile.NewProjectile(position, velocity, ProjectileID.Leaf, CalamityUtils.DamageSoftCap(proj.damage * 0.25, 60), 0f, player.whoAmI);
|
||||
@@ -266,7 +257,15 @@ namespace CalamityMod.CalPlayer
|
||||
Main.projectile[FUCKYOU].netUpdate = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
if (player.ownedProjectileCounts[ProjectileType<TarraEnergy>()] < 2)
|
||||
{
|
||||
for (int projCount = 0; projCount < 2; projCount++)
|
||||
{
|
||||
Vector2 velocity = CalamityUtils.RandomVelocity(100f, 70f, 100f);
|
||||
Projectile.NewProjectile(proj.Center, velocity, ProjectileType<TarraEnergy>(), CalamityUtils.DamageSoftCap(proj.damage * 0.33, 65), 0f, proj.owner);
|
||||
}
|
||||
}
|
||||
}
|
||||
if (proj.type == ProjectileType<PolarStar>())
|
||||
{
|
||||
modPlayer.polarisBoostCounter += 1;
|
||||
@@ -306,8 +305,9 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
}
|
||||
}
|
||||
if (modPlayer.silvaMage && proj.penetrate == 1 && Main.rand.Next(0, 100) >= 97)
|
||||
if (modPlayer.silvaMage && modPlayer.silvaMageCooldown <= 0 && (proj.penetrate == 1 || proj.timeLeft <= 5))
|
||||
{
|
||||
modPlayer.silvaMageCooldown = 300;
|
||||
Main.PlaySound(SoundID.Zombie, (int)proj.position.X, (int)proj.position.Y, 103);
|
||||
CalamityGlobalProjectile.ExpandHitboxBy(proj, 96);
|
||||
for (int d = 0; d < 3; d++)
|
||||
@@ -327,6 +327,7 @@ namespace CalamityMod.CalPlayer
|
||||
proj.localNPCHitCooldown = 10;
|
||||
proj.usesLocalNPCImmunity = true;
|
||||
proj.Damage();
|
||||
proj.Kill();
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
@@ -23,6 +23,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;
|
||||
@@ -44,6 +45,7 @@ using CalamityMod.NPCs.NormalNPCs;
|
||||
using CalamityMod.NPCs.OldDuke;
|
||||
using CalamityMod.NPCs.Perforator;
|
||||
using CalamityMod.NPCs.PlaguebringerGoliath;
|
||||
using CalamityMod.NPCs.PlagueEnemies;
|
||||
using CalamityMod.NPCs.Providence;
|
||||
using CalamityMod.NPCs.Ravager;
|
||||
using CalamityMod.NPCs.Signus;
|
||||
@@ -311,11 +313,8 @@ namespace CalamityMod
|
||||
ProjectileID.MushroomSpear,
|
||||
ProjectileID.Gungnir,
|
||||
ProjectileID.ObsidianSwordfish,
|
||||
ProjectileID.ChlorophytePartisan,
|
||||
ProjectileID.MonkStaffT1,
|
||||
ProjectileID.MonkStaffT2,
|
||||
ProjectileID.MonkStaffT3,
|
||||
ProjectileID.NorthPoleWeapon,
|
||||
|
||||
// Tools
|
||||
ProjectileID.CobaltDrill,
|
||||
@@ -349,28 +348,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>()
|
||||
@@ -494,6 +479,8 @@ namespace CalamityMod
|
||||
NPCID.SkeletronHand,
|
||||
NPCID.WallofFlesh,
|
||||
NPCID.WallofFleshEye,
|
||||
NPCID.PirateShipCannon,
|
||||
NPCID.Probe,
|
||||
NPCID.Retinazer,
|
||||
NPCID.Spazmatism,
|
||||
NPCID.SkeletronPrime,
|
||||
@@ -502,7 +489,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,
|
||||
@@ -510,12 +501,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,
|
||||
@@ -554,8 +554,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>()
|
||||
{
|
||||
@@ -1269,7 +1308,8 @@ namespace CalamityMod
|
||||
|
||||
sixtySixDamageBuffList = new List<int>()
|
||||
{
|
||||
ItemID.TrueNightsEdge,
|
||||
ItemID.PulseBow,
|
||||
ItemID.TrueNightsEdge,
|
||||
ItemID.MedusaHead,
|
||||
ItemID.StaffofEarth,
|
||||
ItemID.ChristmasTreeSword,
|
||||
@@ -1281,11 +1321,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,
|
||||
@@ -1303,8 +1344,6 @@ namespace CalamityMod
|
||||
thirtyThreeDamageBuffList = new List<int>()
|
||||
{
|
||||
ItemID.WandofSparking,
|
||||
ItemID.IceBow,
|
||||
ItemID.Marrow,
|
||||
ItemID.CrystalVileShard,
|
||||
ItemID.SoulDrain,
|
||||
ItemID.ClingerStaff,
|
||||
@@ -1341,6 +1380,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
|
||||
@@ -1438,8 +1523,8 @@ namespace CalamityMod
|
||||
|
||||
tenDamageNerfList = new List<int>()
|
||||
{
|
||||
ItemID.Phantasm,
|
||||
ItemID.StarWrath
|
||||
ItemID.DaedalusStormbow,
|
||||
ItemID.StarWrath
|
||||
};
|
||||
|
||||
quarterDamageNerfList = new List<int>()
|
||||
@@ -1447,7 +1532,6 @@ namespace CalamityMod
|
||||
ItemID.LastPrism,
|
||||
ItemID.DemonScythe,
|
||||
ItemID.Razorpine,
|
||||
ItemID.DaedalusStormbow,
|
||||
ItemID.PhoenixBlaster,
|
||||
ItemID.InfluxWaver,
|
||||
ItemID.Xenopopper,
|
||||
|
||||
|
After Width: | Height: | Size: 408 B |
|
Before Width: | Height: | Size: 268 B |
|
Before Width: | Height: | Size: 259 B |
|
Before Width: | Height: | Size: 254 B |
@@ -23,7 +23,6 @@ namespace CalamityMod.Items.Accessories
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.expert = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
|
||||
@@ -11,9 +11,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Counter Scarf");
|
||||
Tooltip.SetDefault("True melee strikes deal 15% more damage\n" +
|
||||
Tooltip.SetDefault("True melee strikes deal 10% more damage\n" +
|
||||
"Grants the ability to dash; dashing into an attack will cause you to dodge it\n" +
|
||||
"After a dodge you will be granted a buff to all damage, melee speed, and all crit chance for a short time\n" +
|
||||
"After a successful dodge you must wait 15 seconds before you can dodge again\n" +
|
||||
"This cooldown will be twice as long if you have Chaos State\n" +
|
||||
"While on cooldown, Chaos State will last twice as long");
|
||||
|
||||
@@ -19,8 +19,8 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 28;
|
||||
item.width = 64;
|
||||
item.height = 58;
|
||||
item.accessory = true;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
|
||||
|
Before Width: | Height: | Size: 747 B After Width: | Height: | Size: 1.4 KiB |
@@ -11,9 +11,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Evasion Scarf");
|
||||
Tooltip.SetDefault("True melee strikes deal 25% more damage\n" +
|
||||
Tooltip.SetDefault("True melee strikes deal 15% more damage\n" +
|
||||
"Grants the ability to dash; dashing into an attack will cause you to dodge it\n" +
|
||||
"After a dodge you will be granted a buff to all damage, melee speed, and all crit chance for a short time\n" +
|
||||
"After a successful dodge you must wait 13 seconds before you can dodge again\n" +
|
||||
"This cooldown will be 50 percent longer if you have Chaos State\n" +
|
||||
"While on cooldown, Chaos State will be 50 percent longer");
|
||||
|
||||
@@ -22,8 +22,8 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 38;
|
||||
item.height = 44;
|
||||
item.width = 34;
|
||||
item.height = 40;
|
||||
item.value = CalamityGlobalItem.Rarity7BuyPrice;
|
||||
item.rare = ItemRarityID.Lime;
|
||||
item.defense = 8;
|
||||
|
||||
|
Before Width: | Height: | Size: 615 B After Width: | Height: | Size: 1.0 KiB |
@@ -17,8 +17,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.defense = 6;
|
||||
item.width = 20;
|
||||
item.height = 24;
|
||||
item.width = 30;
|
||||
item.height = 28;
|
||||
item.value = CalamityGlobalItem.Rarity1BuyPrice;
|
||||
item.rare = ItemRarityID.Blue;
|
||||
item.accessory = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 456 B After Width: | Height: | Size: 529 B |
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Gravistar Sabaton");
|
||||
Tooltip.SetDefault("Tap the DOWN key to increase your fall speed for 5 seconds\n" +
|
||||
"This has a 8 second cooldown\n" +
|
||||
"This has an 8 second cooldown\n" +
|
||||
"Striking the ground with increased fall speed will cause an astral explosion");
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
[AutoloadEquip(EquipType.Shield)]
|
||||
public class RampartofDeities : ModItem
|
||||
{
|
||||
public override void SetStaticDefaults()
|
||||
@@ -26,8 +27,8 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 38;
|
||||
item.height = 44;
|
||||
item.width = 64;
|
||||
item.height = 62;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.defense = 12;
|
||||
item.accessory = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 900 B After Width: | Height: | Size: 1.7 KiB |
|
After Width: | Height: | Size: 2.6 KiB |
@@ -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;
|
||||
|
||||
@@ -41,8 +41,7 @@ namespace CalamityMod.Items.Armor
|
||||
player.setBonus = "Melee Tarragon, Bloodflare and God Slayer effects\n" +
|
||||
"Enemies are more likely to target you\n" +
|
||||
"All projectiles spawn healing auric orbs on enemy hits\n" +
|
||||
"Max run speed and acceleration boosted by 10%\n" +
|
||||
"Your melee damage is multiplied based on how high your HP is; at full HP this effect is at max";
|
||||
"Max run speed and acceleration boosted by 10%";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.tarraSet = true;
|
||||
modPlayer.tarraMelee = true;
|
||||
|
||||
@@ -41,7 +41,6 @@ namespace CalamityMod.Items.Armor
|
||||
player.setBonus = "Rogue Tarragon, Bloodflare and God Slayer armor effects\n" +
|
||||
"All projectiles spawn healing auric orbs on enemy hits\n" +
|
||||
"Max run speed and acceleration boosted by 10%\n" +
|
||||
"Rogue weapon critical strikes will do 1.25 times damage while you are above 50% HP\n" +
|
||||
"Rogue stealth builds while not attacking and slower while moving, up to a max of 130\n" +
|
||||
"Once you have built max stealth, you will be able to perform a Stealth Strike\n" +
|
||||
"Rogue stealth only reduces when you attack, it does not reduce while moving\n" +
|
||||
|
||||
@@ -45,10 +45,9 @@ namespace CalamityMod.Items.Armor
|
||||
player.setBonus = "75% increased minion damage and +5 max minions\n" +
|
||||
"All projectiles spawn healing leaf orbs on enemy hits\n" +
|
||||
"Max run speed and acceleration boosted by 5%\n" +
|
||||
"If you are reduced to 1 HP you will not die from any further damage for 5 seconds\n" +
|
||||
"If you are reduced to 1 HP you will not die from any further damage for 8 seconds\n" +
|
||||
"This effect only triggers once per life\n" +
|
||||
"Summons an ancient leaf prism to blast your enemies with life energy\n" +
|
||||
"After the silva invulnerability time your minions will deal 10% more damage";
|
||||
"Summons an ancient leaf prism to blast your enemies with life energy";
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (player.FindBuffIndex(ModContent.BuffType<SilvaSummonSetBuff>()) == -1)
|
||||
|
||||
@@ -44,10 +44,9 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.silvaMage = true;
|
||||
player.setBonus = "All projectiles spawn healing leaf orbs on enemy hits\n" +
|
||||
"Max run speed and acceleration boosted by 5%\n" +
|
||||
"If you are reduced to 1 HP you will not die from any further damage for 5 seconds\n" +
|
||||
"If you are reduced to 1 HP you will not die from any further damage for 8 seconds\n" +
|
||||
"This effect only triggers once per life\n" +
|
||||
"Magic projectiles have a 10% chance to cause a massive explosion on enemy hits\n" +
|
||||
"After the silva invulnerability time your magic weapons will do 10% more damage";
|
||||
"Magic projectiles have a 10% chance to cause a massive explosion on enemy hits";
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -63,8 +63,7 @@ namespace CalamityMod.Items.Armor
|
||||
player.setBonus = "Reduces enemy spawn rates\n" +
|
||||
"Increased heart pickup range\n" +
|
||||
"Enemies have a chance to drop extra hearts on death\n" +
|
||||
"Ranged critical strikes will cause an explosion of leaves\n" +
|
||||
"Ranged projectiles have a chance to split into life energy on death by hitting an enemy";
|
||||
"Ranged projectiles split into homing life energy and leaves on death";
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -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,15 @@ 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 yoyo glove and bag because it's bad and stupid and dumb and bad.
|
||||
if (player.yoyoGlove && ItemID.Sets.Yoyo[item.type])
|
||||
mult *= 0.66f;
|
||||
|
||||
// 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.
|
||||
|
||||
@@ -83,7 +83,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
|
||||
@@ -293,6 +293,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)
|
||||
{
|
||||
@@ -323,7 +327,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)
|
||||
|
||||
@@ -13,8 +13,8 @@ namespace CalamityMod.Items.Materials
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 16;
|
||||
item.height = 22;
|
||||
item.width = 26;
|
||||
item.height = 34;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.buyPrice(0, 0, 50, 0);
|
||||
item.rare = ItemRarityID.Green;
|
||||
|
||||
|
Before Width: | Height: | Size: 319 B After Width: | Height: | Size: 557 B |
@@ -1,4 +1,5 @@
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
@@ -9,12 +10,13 @@ namespace CalamityMod.Items.Materials
|
||||
{
|
||||
DisplayName.SetDefault("Ruinous Soul");
|
||||
Tooltip.SetDefault("A shard of the distant past");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 20;
|
||||
item.height = 20;
|
||||
item.width = 26;
|
||||
item.height = 42;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.buyPrice(0, 7, 0, 0);
|
||||
item.Calamity().customRarity = CalamityRarity.PureGreen;
|
||||
|
||||
|
Before Width: | Height: | Size: 347 B After Width: | Height: | Size: 1.7 KiB |
@@ -10,13 +10,13 @@ namespace CalamityMod.Items.Materials
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Stormlion Mandible");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(5, 8));
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 12;
|
||||
item.height = 24;
|
||||
item.width = 36;
|
||||
item.height = 38;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 1, copper: 40);
|
||||
item.rare = ItemRarityID.Blue;
|
||||
|
||||
|
Before Width: | Height: | Size: 770 B After Width: | Height: | Size: 1.7 KiB |
@@ -19,8 +19,8 @@ namespace CalamityMod.Items.SummonItems
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 28;
|
||||
item.height = 28;
|
||||
item.width = 26;
|
||||
item.height = 24;
|
||||
item.maxStack = 20;
|
||||
item.rare = ItemRarityID.Pink;
|
||||
item.useAnimation = 45;
|
||||
|
||||
|
Before Width: | Height: | Size: 349 B After Width: | Height: | Size: 472 B |
@@ -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.Tools
|
||||
item.damage = 43;
|
||||
item.melee = true;
|
||||
item.width = 58;
|
||||
item.height = 46;
|
||||
item.height = 54;
|
||||
item.useTime = 19;
|
||||
item.useAnimation = 19;
|
||||
item.useTurn = true;
|
||||
|
||||
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.4 KiB |
@@ -27,8 +27,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shootSpeed = 14f;
|
||||
item.shoot = ModContent.ProjectileType<DragonRageStaff>();
|
||||
|
||||
item.width = 68;
|
||||
item.height = 82;
|
||||
item.width = 128;
|
||||
item.height = 140;
|
||||
item.noUseGraphic = true;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.UseSound = SoundID.DD2_SkyDragonsFurySwing;
|
||||
|
||||
|
Before Width: | Height: | Size: 2.0 KiB After Width: | Height: | Size: 2.1 KiB |
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 64;
|
||||
item.damage = 160;
|
||||
item.damage = 260;
|
||||
item.melee = true;
|
||||
item.useAnimation = 21;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 90;
|
||||
item.damage = 99;
|
||||
item.ranged = true;
|
||||
item.width = 40;
|
||||
item.height = 70;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 22;
|
||||
item.damage = 24;
|
||||
item.ranged = true;
|
||||
item.width = 34;
|
||||
item.height = 50;
|
||||
@@ -87,17 +87,17 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
float speedY5 = num79 + (float)Main.rand.Next(-120, 121) * 0.01f;
|
||||
if (type == ProjectileID.WoodenArrowFriendly)
|
||||
{
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.9f, ModContent.ProjectileType<Bolt>(), damage, num74, i, 0f, 0f);
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.8f, ModContent.ProjectileType<Bolt>(), damage, num74, i, 0f, 0f);
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.7f, ModContent.ProjectileType<Bolt>(), damage, num74, i, 0f, 0f);
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.9f, ModContent.ProjectileType<Bolt>(), damage, num74, i);
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.8f, ModContent.ProjectileType<Bolt>(), damage, num74, i);
|
||||
Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.7f, ModContent.ProjectileType<Bolt>(), damage, num74, i);
|
||||
}
|
||||
else
|
||||
{
|
||||
int num121 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.9f, type, damage, num74, i, 0f, 0f);
|
||||
int num121 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.9f, type, damage, num74, i);
|
||||
Main.projectile[num121].noDropItem = true;
|
||||
int num122 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.8f, type, damage, num74, i, 0f, 0f);
|
||||
int num122 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.8f, type, damage, num74, i);
|
||||
Main.projectile[num122].noDropItem = true;
|
||||
int num123 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.7f, type, damage, num74, i, 0f, 0f);
|
||||
int num123 = Projectile.NewProjectile(vector2.X, vector2.Y, speedX4, speedY5 * 0.7f, type, damage, num74, i);
|
||||
Main.projectile[num123].noDropItem = true;
|
||||
}
|
||||
}
|
||||
|
||||