Merge branch 'master' into weapons
This commit is contained in:
commit
a75c882751
149 files changed
+744
-546
No files matched your search
@@ -13,13 +13,13 @@ namespace CalamityMod.Buffs.Summon
|
||||
Description.SetDefault("A giant plague jet is following you");
|
||||
Main.buffNoTimeDisplay[Type] = true;
|
||||
Main.buffNoSave[Type] = true;
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
//Main.persistentBuff[Type] = true;
|
||||
}
|
||||
|
||||
public override void Update(Player player, ref int buffIndex)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<TacticalPlagueEngineSummon>()] > 0)
|
||||
if (player.ownedProjectileCounts[ModContent.ProjectileType<TacticalPlagueJet>()] > 0)
|
||||
{
|
||||
modPlayer.plagueEngine = true;
|
||||
}
|
||||
|
||||
@@ -5128,7 +5128,7 @@ namespace CalamityMod.CalPlayer
|
||||
}
|
||||
if (silvaMelee && proj.melee)
|
||||
{
|
||||
double multiplier = (double)player.statLife / (double)player.statLifeMax2;
|
||||
double multiplier = player.statLife / (double)player.statLifeMax2;
|
||||
damageMult += multiplier * 0.2;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -67,7 +67,7 @@ namespace CalamityMod.CalPlayer
|
||||
CalamityPlayer.areThereAnyDamnEvents = CalamityGlobalNPC.AnyEvents(player);
|
||||
|
||||
// If any boss NPC is active, apply Zen to the player to reduce spawn rate
|
||||
if (CalamityPlayer.areThereAnyDamnBosses)
|
||||
if (CalamityPlayer.areThereAnyDamnBosses && CalamityConfig.Instance.BossZen)
|
||||
{
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
player.AddBuff(ModContent.BuffType<BossZen>(), 2, false);
|
||||
@@ -1227,7 +1227,7 @@ namespace CalamityMod.CalPlayer
|
||||
if (modPlayer.absorber)
|
||||
{
|
||||
player.moveSpeed += 0.06f;
|
||||
player.jumpSpeedBoost += 1.2f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.3f : 1.2f;
|
||||
player.thorns += 0.5f;
|
||||
player.endurance += 0.05f;
|
||||
|
||||
@@ -2649,7 +2649,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.eGauntlet)
|
||||
{
|
||||
player.longInvince = true;
|
||||
player.kbGlove = true;
|
||||
player.magmaStone = true;
|
||||
player.meleeDamage += 0.15f;
|
||||
@@ -3018,7 +3017,8 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.tarraSet)
|
||||
{
|
||||
player.calmed = modPlayer.tarraMelee ? false : true;
|
||||
if (!modPlayer.tarraMelee)
|
||||
player.calmed = true;
|
||||
player.lifeMagnet = true;
|
||||
}
|
||||
|
||||
@@ -3269,7 +3269,6 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
if (modPlayer.yInsignia)
|
||||
{
|
||||
player.longInvince = true;
|
||||
player.meleeDamage += 0.1f;
|
||||
player.lavaMax += 240;
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
|
||||
@@ -25,9 +25,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
item.width = 26;
|
||||
item.height = 26;
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.accessory = true;
|
||||
item.Calamity().customRarity = CalamityRarity.PureGreen;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace CalamityMod.Items.Accessories
|
||||
Tooltip.SetDefault("Melee attacks and projectiles inflict most debuffs\n" +
|
||||
"15% increased melee speed, damage, and 5% increased melee critical strike chance\n" +
|
||||
"20% increased true melee damage\n" +
|
||||
"Increased invincibility after taking damage\n" +
|
||||
"Temporary immunity to lava\n" +
|
||||
"Increased melee knockback");
|
||||
}
|
||||
|
||||
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Grand Gelatin");
|
||||
Tooltip.SetDefault("10% increased movement speed\n" +
|
||||
"40% increased jump speed\n" +
|
||||
"24% increased jump speed\n" +
|
||||
"+20 max life and mana\n" +
|
||||
"Standing still boosts life and mana regen");
|
||||
}
|
||||
@@ -29,21 +29,19 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "10" : "40";
|
||||
string jumpAmt = autoJump ? "6" : "24";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
||||
{
|
||||
line2.text = jumpAmt + "% increased jump speed";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.5f : 2f;
|
||||
player.statLifeMax2 += 20;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.3f : 1.2f;
|
||||
player.statLifeMax2 += 20;
|
||||
player.statManaMax2 += 20;
|
||||
if (Math.Abs(player.velocity.X) < 0.05f && Math.Abs(player.velocity.Y) < 0.05f && player.itemAnimation == 0)
|
||||
{
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Projectiles.Summon;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
@@ -17,9 +18,9 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
DisplayName.SetDefault("Heart of the Elements");
|
||||
Tooltip.SetDefault("The heart of the world\n" +
|
||||
"Increases max life by 20, life regen by 1, and all damage by 5%\n" +
|
||||
"Increases movement speed by 5% and jump speed by 20%\n" +
|
||||
"Increases damage reduction by 5%\n" +
|
||||
"Increases max life by 20, life regen by 1 and all damage by 5%\n" +
|
||||
"Increases jump speed by 24%\n" +
|
||||
"Increases damage reduction and movement speed by 5%\n" +
|
||||
"Increases max mana by 50 and reduces mana usage by 5%\n" +
|
||||
"You grow flowers on the grass beneath you, chance to grow very random dye plants on grassless dirt\n" +
|
||||
"Summons all elementals to protect you\n" +
|
||||
@@ -39,7 +40,36 @@ namespace CalamityMod.Items.Accessories
|
||||
item.Calamity().customRarity = CalamityRarity.Rainbow;
|
||||
}
|
||||
|
||||
public override bool CanEquipAccessory(Player player, int slot)
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
bool hideVisual = false;
|
||||
for (int i = 3; i < 10; i++)
|
||||
{
|
||||
if (Main.player[Main.myPlayer].armor[i].type == item.type)
|
||||
hideVisual = Main.player[Main.myPlayer].hideVisual[i];
|
||||
}
|
||||
string lifeAmt = hideVisual ? "25" : "20";
|
||||
string lifeRegenAmt = hideVisual ? "2" : "1";
|
||||
string damageAmt = hideVisual ? "7" : "5";
|
||||
string jumpAmt = hideVisual ? (autoJump ? "6" : "24") : (autoJump ? "5" : "20");
|
||||
string damageReductionAndMoveSpeedAmt = hideVisual ? "6" : "5";
|
||||
string manaAmt = hideVisual ? "60" : "50";
|
||||
string manaUsageAmt = hideVisual ? "7" : "5";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
||||
line2.text = "Increases max life by " + lifeAmt + ", life regen by " + lifeRegenAmt + " and all damage by " + damageAmt + "%";
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip2")
|
||||
line2.text = jumpAmt + "% increased jump speed";
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip3")
|
||||
line2.text = "Increases damage reduction and movement speed by " + damageReductionAndMoveSpeedAmt + "%";
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip4")
|
||||
line2.text = "Increases max mana by " + manaAmt + " and reduces mana usage by " + manaUsageAmt + "%";
|
||||
}
|
||||
}
|
||||
|
||||
public override bool CanEquipAccessory(Player player, int slot)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (modPlayer.brimstoneWaifu || modPlayer.sandWaifu || modPlayer.sandBoobWaifu || modPlayer.cloudWaifu || modPlayer.sirenWaifu)
|
||||
@@ -52,9 +82,8 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
if (player != null && !player.dead)
|
||||
{
|
||||
Lighting.AddLight((int)player.Center.X / 16, (int)player.Center.Y / 16, Main.DiscoR / 255f, Main.DiscoG / 255f, Main.DiscoB / 255f);
|
||||
}
|
||||
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.allWaifus = !hideVisual;
|
||||
modPlayer.elementalHeart = true;
|
||||
@@ -62,7 +91,7 @@ namespace CalamityMod.Items.Accessories
|
||||
player.lifeRegen += hideVisual ? 2 : 1;
|
||||
player.statLifeMax2 += hideVisual ? 25 : 20;
|
||||
player.moveSpeed += hideVisual ? 0.06f : 0.05f;
|
||||
player.jumpSpeedBoost += hideVisual ? (player.autoJump ? 0.3f : 1.1f) : (player.autoJump ? 0.25f : 1f);
|
||||
player.jumpSpeedBoost += hideVisual ? (player.autoJump ? 0.3f : 1.2f) : (player.autoJump ? 0.25f : 1f);
|
||||
player.endurance += hideVisual ? 0.06f : 0.05f;
|
||||
player.statManaMax2 += hideVisual ? 60 : 50;
|
||||
player.manaCost *= hideVisual ? 0.93f : 0.95f;
|
||||
|
||||
@@ -14,7 +14,6 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
public class Sponge : ModItem
|
||||
{
|
||||
|
||||
public override string Texture => (DateTime.Now.Month == 4 && DateTime.Now.Day == 1) ? "CalamityMod/Items/Accessories/SpongeReal" : "CalamityMod/Items/Accessories/Sponge";
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
@@ -48,6 +47,14 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "6" : "24";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip5")
|
||||
line2.text = jumpAmt + "% increased jump speed and 12% increased movement speed";
|
||||
}
|
||||
|
||||
if (CalamityWorld.death)
|
||||
{
|
||||
foreach (TooltipLine line2 in list)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Accessories
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Statis' Ninja Belt");
|
||||
Tooltip.SetDefault("8% increased jump speed and allows constant jumping\n" +
|
||||
Tooltip.SetDefault("12% increased jump speed and allows constant jumping\n" +
|
||||
"Increased fall damage resistance by 35 blocks\n" +
|
||||
"Can climb walls, dash, and dodge attacks");
|
||||
}
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
player.autoJump = true;
|
||||
player.jumpSpeedBoost += 0.4f;
|
||||
player.jumpSpeedBoost += 0.6f;
|
||||
player.extraFall += 35;
|
||||
player.blackBelt = true;
|
||||
player.dash = 1;
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -34,7 +35,18 @@ namespace CalamityMod.Items.Accessories
|
||||
item.accessory = true;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "6" : "24";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip1")
|
||||
line2.text = jumpAmt + "% increased jump speed";
|
||||
}
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.aSpark = true;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 12\n" +
|
||||
"Acceleration multiplier: 3\n" +
|
||||
"Excellent vertical speed\n" +
|
||||
"Flight time: 280\n" +
|
||||
"Flight time: 250\n" +
|
||||
"50% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.wingTimeMax = 280;
|
||||
player.wingTimeMax = 250;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.elysianFire = !hideVisual;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 10.5\n" +
|
||||
"Acceleration multiplier: 2.75\n" +
|
||||
"Great vertical speed\n" +
|
||||
"Flight time: 160\n" +
|
||||
"Flight time: 140\n" +
|
||||
"36% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
@@ -78,7 +78,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.wingTimeMax = 160;
|
||||
player.wingTimeMax = 140;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.elysianFire = !hideVisual;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Horizontal speed: 9\n" +
|
||||
"Acceleration multiplier: 2.5\n" +
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 120\n" +
|
||||
"Flight time: 100\n" +
|
||||
"24% increased running acceleration\n" +
|
||||
"Greater mobility on ice\n" +
|
||||
"Water and lava walking\n" +
|
||||
@@ -78,7 +78,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.waterWalk = true;
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.wingTimeMax = 120;
|
||||
player.wingTimeMax = 100;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.sTracers = true;
|
||||
|
||||
@@ -17,7 +17,6 @@ namespace CalamityMod.Items.Accessories
|
||||
"10% increased melee speed\n" +
|
||||
"10% increased melee and true melee damage\n" +
|
||||
"Melee attacks and melee projectiles inflict holy fire\n" +
|
||||
"Increased invincibility after taking damage\n" +
|
||||
"Temporary immunity to lava\n" +
|
||||
"Increased melee knockback");
|
||||
}
|
||||
@@ -60,7 +59,6 @@ namespace CalamityMod.Items.Accessories
|
||||
recipe.AddIngredient(ModContent.ItemType<NecklaceofVexation>());
|
||||
recipe.AddIngredient(ModContent.ItemType<CoreofCinder>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<DivineGeode>(), 5);
|
||||
recipe.AddIngredient(ItemID.CrossNecklace);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 40;
|
||||
item.damage = 26;
|
||||
item.ranged = true;
|
||||
item.width = 14;
|
||||
item.height = 36;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Ammo
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 40;
|
||||
item.damage = 26;
|
||||
item.ranged = true;
|
||||
item.width = 14;
|
||||
item.height = 30;
|
||||
|
||||
@@ -37,6 +37,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "5% increased movement speed and melee critical strike chance\n" +
|
||||
"Enemies are more likely to target you\n" +
|
||||
"Taking over 25 damage in one hit will cause a spread of homing feathers to fall\n" +
|
||||
"Allows you to fall more quickly and disables fall damage";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
@@ -44,6 +45,7 @@ namespace CalamityMod.Items.Armor
|
||||
player.noFallDmg = true;
|
||||
player.moveSpeed += 0.05f;
|
||||
player.meleeCrit += 5;
|
||||
player.aggro += 300;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -58,6 +58,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "5% increased melee damage\n" +
|
||||
"Enemies are more likely to target you\n" +
|
||||
"Inferno effect when below 50% life\n" +
|
||||
"Melee attacks and projectiles cause chaos flames to erupt on enemy hits\n" +
|
||||
"You have a 20% chance to emit a blazing explosion when you are hit";
|
||||
@@ -65,6 +66,7 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.ataxiaBlaze = true;
|
||||
modPlayer.ataxiaGeyser = true;
|
||||
player.meleeDamage += 0.05f;
|
||||
player.aggro += 700;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -39,6 +39,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Melee Tarragon, Bloodflare, God Slayer, and Silva armor 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";
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Armor
|
||||
item.defense = 7; //41
|
||||
}
|
||||
|
||||
private void updateFrenzy(Player player)
|
||||
private void UpdateFrenzy(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (!frenzy)
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Items.Armor
|
||||
player.buffImmune[ModContent.BuffType<BrimstoneFlames>()] = true;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
updateFrenzy(player);
|
||||
UpdateFrenzy(player);
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
|
||||
@@ -39,11 +39,13 @@ namespace CalamityMod.Items.Armor
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "5% increased melee damage\n" +
|
||||
"Enemies are more likely to target you\n" +
|
||||
"You have a 33% chance to reflect projectiles back at enemies\n" +
|
||||
"If you reflect a projectile you are also healed for 1/5 of that projectile's damage";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.daedalusReflect = true;
|
||||
player.meleeDamage += 0.05f;
|
||||
player.aggro += 500;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -42,10 +42,12 @@ namespace CalamityMod.Items.Armor
|
||||
player.setBonus = "You will survive fatal damage and will be healed 150 HP if an attack would have killed you\n" +
|
||||
"This effect can only occur once every 45 seconds\n" +
|
||||
"While the cooldown for this effect is active all life regen is halved\n" +
|
||||
"Enemies are more likely to target you\n" +
|
||||
"Taking over 80 damage in one hit will cause you to release a swarm of high-damage god killer darts\n" +
|
||||
"Enemies take a lot of damage when they hit you\n" +
|
||||
"An attack that would deal 80 damage or less will have its damage reduced to 1";
|
||||
player.thorns += 2.5f;
|
||||
player.aggro += 1000;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -45,9 +45,11 @@ namespace CalamityMod.Items.Armor
|
||||
player.moveSpeed -= 0.2f;
|
||||
player.statDefense += 10;
|
||||
player.lifeRegen += 3;
|
||||
player.aggro += 600;
|
||||
modPlayer.reaverDefense = true;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.setBonus = "+10 defense and +3 life regen\n" +
|
||||
"Enemies are more likely to target you\n" +
|
||||
"Reduces the life regen lost from damage over time debuffs by 20%\n" +
|
||||
"All attacks have a small chance to steal life and speed up the rate of life regen\n" +
|
||||
"20% decreased movement speed and flight time\n" +
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Materials;
|
||||
using System.Collections.Generic;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -13,7 +14,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Reaver Visage");
|
||||
Tooltip.SetDefault("25% increased movement speed and 20% increased jump speed");
|
||||
Tooltip.SetDefault("20% increased jump speed and 25% increased movement speed");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -25,7 +26,18 @@ namespace CalamityMod.Items.Armor
|
||||
item.defense = 13; //46
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string jumpAmt = autoJump ? "5" : "20";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
line2.text = jumpAmt + "% increased jump speed and 25% increased movement speed";
|
||||
}
|
||||
}
|
||||
|
||||
public override bool IsArmorSet(Item head, Item body, Item legs)
|
||||
{
|
||||
return body.type == ModContent.ItemType<ReaverScaleMail>() && legs.type == ModContent.ItemType<ReaverCuisses>();
|
||||
}
|
||||
@@ -53,7 +65,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
player.jumpSpeedBoost += 1f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.25f : 1f;
|
||||
player.moveSpeed += 0.25f;
|
||||
}
|
||||
|
||||
|
||||
@@ -33,14 +33,15 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed";
|
||||
jumpSpeedBonus + "% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.statigelJump = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -33,15 +33,16 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
jumpSpeedBonus + "% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.statigelJump = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
|
||||
@@ -33,15 +33,18 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "Enemies are more likely to target you\n" +
|
||||
"When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
jumpSpeedBonus + "% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.statigelJump = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
player.aggro += 400;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
|
||||
@@ -34,18 +34,19 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "18% increased minion damage\n" +
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "18% increased minion damage\n" +
|
||||
"Summons a mini slime god to fight for you, the type depends on what world evil you have\n" +
|
||||
"When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed";
|
||||
jumpSpeedBonus + "% increased jump speed";
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.statigelSet = true;
|
||||
modPlayer.slimeGod = true;
|
||||
modPlayer.statigelJump = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
player.minionDamage += 0.18f;
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
player.minionDamage += 0.18f;
|
||||
if (player.whoAmI == Main.myPlayer)
|
||||
{
|
||||
if (player.FindBuffIndex(ModContent.BuffType<StatigelSummonSetBuff>()) == -1)
|
||||
|
||||
@@ -33,9 +33,10 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
string jumpSpeedBonus = player.autoJump ? "7.5" : "30";
|
||||
player.setBonus = "When you take over 100 damage in one hit you become immune to damage for an extended period of time\n" +
|
||||
"Grants an extra jump and increased jump height\n" +
|
||||
"30% increased jump speed\n" +
|
||||
jumpSpeedBonus + "% increased jump speed\n" +
|
||||
"Rogue stealth builds while not attacking and slower while moving, up to a max of 100\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" +
|
||||
@@ -46,8 +47,8 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.rogueStealthMax += 1f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
Player.jumpHeight += 5;
|
||||
player.jumpSpeedBoost += 1.5f;
|
||||
}
|
||||
player.jumpSpeedBoost += player.autoJump ? 0.375f : 1.5f;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
{
|
||||
|
||||
@@ -61,9 +61,11 @@ namespace CalamityMod.Items.Armor
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.tarraSet = true;
|
||||
modPlayer.tarraMelee = true;
|
||||
player.aggro += 800;
|
||||
string hotkey = CalamityMod.TarraHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "Increased heart pickup range\n" +
|
||||
"Enemies have a chance to drop extra hearts on death\n" +
|
||||
"Enemies are more likely to target you\n" +
|
||||
"You have a 25% chance to gain a life regen buff when you take damage\n" +
|
||||
"Press " + hotkey + " to cloak yourself in life energy that heavily reduces enemy contact damage for 10 seconds\n" +
|
||||
"This has a 30 second cooldown";
|
||||
|
||||
@@ -31,7 +31,8 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "Increased life regen and melee damage while submerged in liquid\n" +
|
||||
player.setBonus = "Enemies are more likely to target you\n" +
|
||||
"Increased life regen and melee damage while submerged in liquid\n" +
|
||||
"When using any weapon you have a 10% chance to throw a returning seashell projectile\n" +
|
||||
"This seashell does true damage and does not benefit from any damage class\n" +
|
||||
"Provides increased underwater mobility and slightly reduces breath loss in the abyss";
|
||||
@@ -43,6 +44,7 @@ namespace CalamityMod.Items.Armor
|
||||
player.meleeDamage += 0.1f;
|
||||
player.lifeRegen += 3;
|
||||
}
|
||||
player.aggro += 200;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -30,13 +30,15 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
player.setBonus = "+3 defense\n" +
|
||||
player.setBonus = "Enemies are more likely to target you\n" +
|
||||
"+3 defense\n" +
|
||||
"+5 defense when below 50% life";
|
||||
player.statDefense += 3; //11
|
||||
if (player.statLife <= (int)((double)player.statLifeMax2 * 0.5))
|
||||
if (player.statLife <= (int)(player.statLifeMax2 * 0.5))
|
||||
{
|
||||
player.statDefense += 5; //16
|
||||
}
|
||||
player.aggro += 100;
|
||||
}
|
||||
|
||||
public override void UpdateEquip(Player player)
|
||||
|
||||
@@ -100,8 +100,8 @@ namespace CalamityMod.Items
|
||||
#region SetDefaults
|
||||
public override void SetDefaults(Item item)
|
||||
{
|
||||
if (customRarity.IsPostML() && item.rare != ItemRarityID.Red)
|
||||
item.rare = ItemRarityID.Red;
|
||||
if (customRarity.IsPostML() && item.rare != ItemRarityID.Purple)
|
||||
item.rare = ItemRarityID.Purple;
|
||||
|
||||
if (item.maxStack == 99 || item.type == ItemID.Dynamite || item.type == ItemID.StickyDynamite ||
|
||||
item.type == ItemID.BouncyDynamite || item.type == ItemID.StickyBomb || item.type == ItemID.BouncyBomb)
|
||||
|
||||
@@ -29,12 +29,12 @@ namespace CalamityMod.Items.LoreItems
|
||||
{
|
||||
bool autoJump = Main.player[Main.myPlayer].autoJump;
|
||||
string hasJumpBoost = "Favorite this item to gain 5% increased movement speed and 2% increased jump speed.";
|
||||
string noJumpBoost = "Favorite this item to gain 5% increased movement speed.";
|
||||
string lessJumpBoost = "Favorite this item to gain 5% increased movement speed and 0.5% increased jump speed.";
|
||||
foreach (TooltipLine line2 in list)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip2")
|
||||
{
|
||||
line2.text = autoJump ? noJumpBoost : hasJumpBoost;
|
||||
line2.text = autoJump ? lessJumpBoost : hasJumpBoost;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Tools
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 90;
|
||||
item.damage = 60;
|
||||
item.melee = true;
|
||||
item.width = 50;
|
||||
item.height = 52;
|
||||
|
||||
+5
-5
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Tools
|
||||
item.width = 62;
|
||||
item.height = 62;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 500;
|
||||
item.damage = 325;
|
||||
item.melee = true;
|
||||
item.useAnimation = 16;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -33,10 +33,10 @@ namespace CalamityMod.Items.Tools
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.tileBoost += 5;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool AltFunctionUse(Player player) => true;
|
||||
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.width = 84;
|
||||
item.height = 28;
|
||||
item.ranged = true;
|
||||
item.damage = 270;
|
||||
item.damage = 176;
|
||||
item.knockBack = 4f;
|
||||
item.useTime = 25;
|
||||
item.useAnimation = 25;
|
||||
|
||||
@@ -45,8 +45,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
|
||||
item.noUseGraphic = true;
|
||||
|
||||
item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
modItem.customRarity = CalamityRarity.DraedonRust;
|
||||
|
||||
item.UseSound = SoundID.Item1;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
// still awkward that the item called Plasma Rifle is the same class and exact same tier as this item
|
||||
public class PlasmaCaster : ModItem
|
||||
{
|
||||
public const int BaseDamage = 1100;
|
||||
public const int BaseDamage = 715;
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Plasma Caster");
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
|
||||
item.value = Item.sellPrice(silver: 80);
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.value = Item.sellPrice(silver: 10);
|
||||
item.rare = ItemRarityID.Purple;
|
||||
modItem.customRarity = CalamityRarity.DraedonRust;
|
||||
|
||||
item.shoot = ModContent.ProjectileType<PlasmaGrenadeProjectile>();
|
||||
|
||||
@@ -31,8 +31,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.noMelee = true;
|
||||
item.knockBack = 8f;
|
||||
|
||||
item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
modItem.customRarity = CalamityRarity.DraedonRust;
|
||||
|
||||
item.UseSound = SoundID.Item15;
|
||||
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.damage = 420;
|
||||
item.damage = 273;
|
||||
item.melee = true;
|
||||
item.width = 30;
|
||||
item.height = 10;
|
||||
|
||||
@@ -37,8 +37,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PulseRifleFire");
|
||||
item.noMelee = true;
|
||||
|
||||
item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
modItem.customRarity = CalamityRarity.DraedonRust;
|
||||
|
||||
item.shoot = ModContent.ProjectileType<PulseRifleShot>();
|
||||
|
||||
@@ -36,7 +36,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.UseSound = SoundID.Item15;
|
||||
item.noMelee = true;
|
||||
|
||||
item.value = CalamityGlobalItem.Rarity5BuyPrice;
|
||||
item.value = CalamityGlobalItem.Rarity8BuyPrice;
|
||||
item.rare = ItemRarityID.Red;
|
||||
modItem.customRarity = CalamityRarity.DraedonRust;
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.shootSpeed = 10f;
|
||||
item.damage = 55;
|
||||
item.damage = 36;
|
||||
item.mana = 12;
|
||||
item.width = 38;
|
||||
item.height = 24;
|
||||
|
||||
@@ -38,8 +38,8 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/TeslaCannonFire");
|
||||
item.noMelee = true;
|
||||
|
||||
item.value = CalamityGlobalItem.RarityVioletBuyPrice;
|
||||
item.rare = ItemRarityID.Red;
|
||||
item.value = CalamityGlobalItem.Rarity14BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
modItem.customRarity = CalamityRarity.DraedonRust;
|
||||
|
||||
item.shoot = ModContent.ProjectileType<TeslaCannonShot>();
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.DraedonsArsenal
|
||||
{
|
||||
CalamityGlobalItem modItem = item.Calamity();
|
||||
|
||||
item.damage = 102;
|
||||
item.damage = 66;
|
||||
modItem.rogue = true;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 110;
|
||||
item.damage = 72;
|
||||
item.magic = true;
|
||||
item.mana = 4;
|
||||
item.width = 28;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 52;
|
||||
item.damage = 33;
|
||||
item.magic = true;
|
||||
item.mana = 25;
|
||||
item.width = 78;
|
||||
@@ -29,13 +29,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4f;
|
||||
item.value = Item.buyPrice(1, 80, 0, 0);
|
||||
item.rare = 10;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item20;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<MagneticOrb>();
|
||||
item.shootSpeed = 12f;
|
||||
item.Calamity().customRarity = CalamityRarity.DarkBlue;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOrigin() => new Vector2(15, 15);
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 66;
|
||||
item.damage = 43;
|
||||
item.magic = true;
|
||||
item.mana = 5;
|
||||
item.width = 48;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 183;
|
||||
item.damage = 120;
|
||||
item.mana = 40;
|
||||
item.magic = true;
|
||||
item.width = 48;
|
||||
@@ -27,13 +27,13 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4f;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBlast");
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBlast");
|
||||
item.autoReuse = true;
|
||||
item.shootSpeed = 12f;
|
||||
item.shoot = ModContent.ProjectileType<PlasmaShot>();
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
|
||||
|
||||
@@ -15,7 +15,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 80;
|
||||
item.damage = 52;
|
||||
item.magic = true;
|
||||
item.mana = 12;
|
||||
item.width = 58;
|
||||
@@ -26,12 +26,12 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4.5f;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/LaserCannon");
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.autoReuse = true;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<HolyLaser>();
|
||||
item.shootSpeed = 6f;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 220;
|
||||
item.damage = 143;
|
||||
item.magic = true;
|
||||
item.mana = 22;
|
||||
item.width = 56;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 153;
|
||||
item.damage = 100;
|
||||
item.magic = true;
|
||||
item.mana = 15;
|
||||
item.width = 50;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 50;
|
||||
item.damage = 200;
|
||||
item.damage = 130;
|
||||
item.melee = true;
|
||||
item.useAnimation = 16;
|
||||
item.useTime = 16;
|
||||
@@ -29,8 +29,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.UseSound = SoundID.Item60;
|
||||
item.autoReuse = true;
|
||||
item.height = 72;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shoot = ModContent.ProjectileType<OceanBeam>();
|
||||
item.shootSpeed = 12f;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 60;
|
||||
item.damage = 241;
|
||||
item.damage = 157;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.autoReuse = true;
|
||||
@@ -29,11 +29,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.melee = true;
|
||||
item.height = 62;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 8;
|
||||
item.shoot = ModContent.ProjectileType<DivineHatchetBoomerang>();
|
||||
item.shootSpeed = 14f;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 60;
|
||||
item.damage = 135;
|
||||
item.damage = 88;
|
||||
item.melee = true;
|
||||
item.useAnimation = 17;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -30,11 +30,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.UseSound = SoundID.Item105;
|
||||
item.autoReuse = true;
|
||||
item.height = 58;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<GalacticaComet>();
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shoot = ModContent.ProjectileType<GalacticaComet>();
|
||||
item.shootSpeed = 23f;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.width = 94;
|
||||
item.height = 80;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 400;
|
||||
item.damage = 260;
|
||||
item.melee = true;
|
||||
item.useAnimation = 22;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -29,8 +29,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 7.75f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shootSpeed = 10f;
|
||||
}
|
||||
|
||||
|
||||
@@ -24,7 +24,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.width = 30;
|
||||
item.height = 26;
|
||||
item.melee = true;
|
||||
item.damage = 100;
|
||||
item.damage = 65;
|
||||
item.knockBack = 7f;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 62;
|
||||
item.damage = 250;
|
||||
item.damage = 163;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -28,11 +28,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.UseSound = SoundID.Item71;
|
||||
item.autoReuse = true;
|
||||
item.height = 72;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<LifeScythe>();
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shoot = ModContent.ProjectileType<LifeScythe>();
|
||||
item.shootSpeed = 9f;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public class MirrorBlade : ModItem
|
||||
{
|
||||
private int baseDamage = 295;
|
||||
private int baseDamage = 192;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
item.width = 16;
|
||||
item.height = 16;
|
||||
item.damage = 230;
|
||||
item.damage = 150;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.channel = true;
|
||||
@@ -30,11 +30,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.knockBack = 2.5f;
|
||||
item.UseSound = SoundID.Item116;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shootSpeed = 24f;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shootSpeed = 24f;
|
||||
item.shoot = ModContent.ProjectileType<MourningstarFlail>();
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 74;
|
||||
item.damage = 90;
|
||||
item.damage = 75;
|
||||
item.melee = true;
|
||||
item.useAnimation = 20;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -28,9 +28,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 90;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.shoot = ModContent.ProjectileType<PlagueBeeDust>();
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.shoot = ModContent.ProjectileType<PlagueBeeDust>();
|
||||
item.shootSpeed = 9f;
|
||||
}
|
||||
|
||||
@@ -40,7 +40,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
recipe.AddIngredient(ModContent.ItemType<VirulentKatana>());
|
||||
recipe.AddIngredient(ItemID.BeeKeeper);
|
||||
recipe.AddIngredient(ItemID.FragmentSolar, 10);
|
||||
recipe.AddIngredient(ModContent.ItemType<InfectedArmorPlating>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<InfectedArmorPlating>(), 5);
|
||||
recipe.AddIngredient(ItemID.LunarBar, 5);
|
||||
recipe.AddTile(TileID.LunarCraftingStation);
|
||||
recipe.SetResult(this);
|
||||
@@ -54,11 +54,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
int bee = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, player.beeType(),
|
||||
player.beeDamage((int)(item.damage * player.MeleeDamage()) / 3), player.beeKB(0f), player.whoAmI);
|
||||
if (bee.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[bee].penetrate = 1;
|
||||
Main.projectile[bee].Calamity().forceMelee = true;
|
||||
}
|
||||
if (bee.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[bee].penetrate = 1;
|
||||
Main.projectile[bee].Calamity().forceMelee = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,12 +69,12 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
int bee = Projectile.NewProjectile(player.Center.X, player.Center.Y, 0f, 0f, player.beeType(),
|
||||
player.beeDamage((int)(item.damage * player.MeleeDamage()) / 3), player.beeKB(0f), player.whoAmI);
|
||||
if (bee.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[bee].penetrate = 1;
|
||||
Main.projectile[bee].Calamity().forceMelee = true;
|
||||
}
|
||||
if (bee.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[bee].penetrate = 1;
|
||||
Main.projectile[bee].Calamity().forceMelee = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.width = 40;
|
||||
item.height = 38;
|
||||
item.melee = true;
|
||||
item.damage = 60;
|
||||
item.damage = 39;
|
||||
item.knockBack = 7.5f;
|
||||
item.useTime = 20;
|
||||
item.useAnimation = 20;
|
||||
@@ -37,9 +37,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shoot = ModContent.ProjectileType<SolarFlareYoyo>();
|
||||
item.shootSpeed = 16f;
|
||||
|
||||
item.rare = 10;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.value = Item.buyPrice(platinum: 1, gold: 20);
|
||||
}
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -21,7 +21,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.width = 90;
|
||||
item.height = 90;
|
||||
item.scale = 1.5f;
|
||||
item.damage = 700;
|
||||
item.damage = 455;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -30,10 +30,10 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.knockBack = 8f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.value = Item.buyPrice(1, 40, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shootSpeed = 10f;
|
||||
item.Calamity().customRarity = CalamityRarity.PureGreen;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shootSpeed = 10f;
|
||||
}
|
||||
|
||||
public override void OnHitNPC(Player player, NPC target, int damage, float knockback, bool crit)
|
||||
|
||||
@@ -22,7 +22,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.width = 102;
|
||||
item.damage = 185;
|
||||
item.damage = 120;
|
||||
item.melee = true;
|
||||
item.useAnimation = 18;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
@@ -32,11 +32,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.height = 102;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<BlazingPhantomBlade>();
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shoot = ModContent.ProjectileType<BlazingPhantomBlade>();
|
||||
item.shootSpeed = 12f;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.width = 30;
|
||||
item.height = 30;
|
||||
item.melee = true;
|
||||
item.damage = 110;
|
||||
item.damage = 72;
|
||||
item.knockBack = 6f;
|
||||
item.useTime = 22;
|
||||
item.useAnimation = 22;
|
||||
@@ -38,11 +38,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
item.shoot = ModContent.ProjectileType<VerdantYoyo>();
|
||||
item.shootSpeed = 16f;
|
||||
|
||||
item.rare = 10;
|
||||
item.autoReuse = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.value = Item.buyPrice(platinum: 1, gold: 20);
|
||||
}
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 200;
|
||||
item.damage = 130;
|
||||
item.ranged = true;
|
||||
item.width = 44;
|
||||
item.height = 100;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 75;
|
||||
item.damage = 50;
|
||||
item.ranged = true;
|
||||
item.width = 76;
|
||||
item.height = 30;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 415;
|
||||
item.damage = 270;
|
||||
item.ranged = true;
|
||||
item.width = 60;
|
||||
item.height = 30;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 215;
|
||||
item.damage = 140;
|
||||
item.ranged = true;
|
||||
item.width = 48;
|
||||
item.height = 30;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 45;
|
||||
item.damage = 49;
|
||||
item.ranged = true;
|
||||
item.width = 34;
|
||||
item.height = 100;
|
||||
@@ -26,9 +26,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4.25f;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ProjectileID.PurificationPowder;
|
||||
item.shootSpeed = 30f;
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Projectiles.Ranged;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -27,9 +26,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 1.75f;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBolt");
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = mod.GetLegacySoundSlot(SoundType.Item, "Sounds/Item/PlasmaBolt");
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<RainbowBlast>();
|
||||
item.shootSpeed = 18f;
|
||||
|
||||
@@ -18,33 +18,30 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 45;
|
||||
item.damage = 77;
|
||||
item.ranged = true;
|
||||
item.width = 64;
|
||||
item.height = 34;
|
||||
item.useTime = 7;
|
||||
item.useTime = 14;
|
||||
item.useAnimation = 14;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 3.5f;
|
||||
item.UseSound = SoundID.Item34;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.autoReuse = true;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<TerraFireGreen2>();
|
||||
item.shootSpeed = 10f;
|
||||
item.useAmmo = AmmoID.Gel;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-10, 0);
|
||||
}
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-10, 0);
|
||||
|
||||
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 num6 = Main.rand.Next(3, 5);
|
||||
for (int index = 0; index < num6; ++index)
|
||||
int numFirestreams = Main.rand.Next(3, 5);
|
||||
for (int index = 0; index < numFirestreams; ++index)
|
||||
{
|
||||
float SpeedX = speedX + Main.rand.Next(-20, 21) * 0.05f;
|
||||
float SpeedY = speedY + Main.rand.Next(-20, 21) * 0.05f;
|
||||
@@ -53,12 +50,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool ConsumeAmmo(Player player)
|
||||
{
|
||||
if (Main.rand.Next(0, 100) < 90)
|
||||
return false;
|
||||
return true;
|
||||
}
|
||||
public override bool ConsumeAmmo(Player player) => Main.rand.NextFloat() > 0.9f;
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
|
||||
@@ -15,28 +15,25 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 36;
|
||||
item.damage = 86;
|
||||
item.ranged = true;
|
||||
item.noMelee = true;
|
||||
item.width = 46;
|
||||
item.height = 30;
|
||||
item.useTime = 10;
|
||||
item.useAnimation = 10;
|
||||
item.useTime = 19;
|
||||
item.useAnimation = 19;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.knockBack = 3f;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item41;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item41;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ProjectileID.PurificationPowder;
|
||||
item.shoot = ProjectileID.Bullet;
|
||||
item.shootSpeed = 20f;
|
||||
item.useAmmo = AmmoID.Bullet;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
}
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-5, 0);
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 890;
|
||||
item.damage = 580;
|
||||
item.ranged = true;
|
||||
item.width = 56;
|
||||
item.height = 34;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 115;
|
||||
item.damage = 75;
|
||||
item.ranged = true;
|
||||
item.width = 36;
|
||||
item.height = 64;
|
||||
@@ -26,14 +26,14 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 3f;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ProjectileID.PurificationPowder;
|
||||
item.shootSpeed = 16f;
|
||||
item.useAmmo = AmmoID.Arrow;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -19,18 +19,18 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 52;
|
||||
item.damage = 54;
|
||||
item.ranged = true;
|
||||
item.width = 58;
|
||||
item.height = 102;
|
||||
item.useTime = 23;
|
||||
item.useAnimation = 23;
|
||||
item.useTime = 22;
|
||||
item.useAnimation = 22;
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 5.5f;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item75;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item75;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<PlanetaryAnnihilationProj>();
|
||||
item.shootSpeed = 12f;
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
public int frameCounter = 0;
|
||||
public int frame = 0;
|
||||
public static int BaseDamage = 140;
|
||||
public static int BaseDamage = 91;
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
@@ -33,9 +33,9 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 5f;
|
||||
item.rare = 10;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.ItemSpecific;
|
||||
item.UseSound = SoundID.Item34;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<PristineFire>();
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 108;
|
||||
item.damage = 70;
|
||||
item.ranged = true;
|
||||
item.width = 78;
|
||||
item.height = 26;
|
||||
|
||||
@@ -29,24 +29,18 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 1.5f;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item31;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item31;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ProjectileID.PurificationPowder;
|
||||
item.shoot = ProjectileID.Bullet;
|
||||
item.shootSpeed = 12f;
|
||||
item.useAmmo = AmmoID.Bullet;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
{
|
||||
return new Vector2(-5, 0);
|
||||
}
|
||||
public override Vector2? HoldoutOffset() => new Vector2(-5, 0);
|
||||
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
public override bool AltFunctionUse(Player player) => true;
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
@@ -68,7 +62,8 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
{
|
||||
float SpeedX = speedX + Main.rand.Next(-30, 31) * 0.05f;
|
||||
float SpeedY = speedY + Main.rand.Next(-30, 31) * 0.05f;
|
||||
int shot = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<ChargedBlast>(), damage, knockBack, player.whoAmI, 0f, 0f);
|
||||
int shredderBoltDamage = (int)(0.85f * damage);
|
||||
int shot = Projectile.NewProjectile(position.X, position.Y, SpeedX, SpeedY, ModContent.ProjectileType<ChargedBlast>(), shredderBoltDamage, knockBack, player.whoAmI, 0f, 0f);
|
||||
Main.projectile[shot].timeLeft = 180;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 240;
|
||||
item.damage = 156;
|
||||
item.ranged = true;
|
||||
item.width = 44;
|
||||
item.height = 26;
|
||||
@@ -26,14 +26,14 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 6f;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.UseSound = SoundID.Item108;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.UseSound = SoundID.Item108;
|
||||
item.autoReuse = true;
|
||||
item.shootSpeed = 9f;
|
||||
item.shoot = ModContent.ProjectileType<SpykerProj>();
|
||||
item.useAmmo = AmmoID.Bullet;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override Vector2? HoldoutOffset()
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 94;
|
||||
item.damage = 62;
|
||||
item.ranged = true;
|
||||
item.width = 74;
|
||||
item.height = 34;
|
||||
|
||||
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 70;
|
||||
item.damage = 46;
|
||||
item.ranged = true;
|
||||
item.width = 54;
|
||||
item.height = 92;
|
||||
@@ -25,14 +25,14 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
item.useStyle = ItemUseStyleID.HoldingOut;
|
||||
item.noMelee = true;
|
||||
item.knockBack = 4f;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.UseSound = SoundID.Item5;
|
||||
item.autoReuse = true;
|
||||
item.shoot = ModContent.ProjectileType<TelluricGlareProj>();
|
||||
item.shootSpeed = 12f;
|
||||
item.useAmmo = AmmoID.Arrow;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 44;
|
||||
item.damage = 29;
|
||||
item.ranged = true;
|
||||
item.width = 34;
|
||||
item.height = 50;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 44;
|
||||
item.damage = 400;
|
||||
item.damage = 260;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = 31;
|
||||
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.autoReuse = true;
|
||||
item.height = 44;
|
||||
item.maxStack = 1;
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.shoot = ModContent.ProjectileType<AlphaVirusProjectile>();
|
||||
item.shootSpeed = 4f;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.damage = 300;
|
||||
item.damage = 195;
|
||||
item.knockBack = 3f;
|
||||
item.autoReuse = true;
|
||||
item.Calamity().rogue = true;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 26;
|
||||
item.damage = 165;
|
||||
item.damage = 108;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useTime = 2;
|
||||
|
||||
@@ -20,7 +20,7 @@ Stealth strikes summon more lightning and travel faster");
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.damage = 567;
|
||||
item.damage = 370;
|
||||
item.knockBack = 10f;
|
||||
|
||||
item.width = 56;
|
||||
|
||||
@@ -8,9 +8,9 @@ using CalamityMod.CalPlayer;
|
||||
|
||||
namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
public class HellsSun : RogueWeapon
|
||||
public class HellsSun : RogueWeapon
|
||||
{
|
||||
private static int damage = 75;
|
||||
private static int damage = 85;
|
||||
private static int knockBack = 5;
|
||||
private static float SdamageMult = 0.6f;
|
||||
|
||||
@@ -18,10 +18,10 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
DisplayName.SetDefault("Hell's Sun");
|
||||
Tooltip.SetDefault("The Subterranean Sun in the palm of your hand.\n" +
|
||||
"Shoots a gravity-defying spiky ball. Stacks up to 10.\n" +
|
||||
"Shoots a gravity-defying spiky ball. Stacks up to 10.\n" +
|
||||
"Once stationary, periodically emits small suns that explode on hit\n" +
|
||||
"Stealth strikes emit suns at a faster rate and last for a longer amount of time\n" +
|
||||
"Right click to delete all existing spiky balls");
|
||||
"Right click to delete all existing spiky balls");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
@@ -36,9 +36,9 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.useAnimation = 15;
|
||||
item.useStyle = ItemUseStyleID.SwingThrow;
|
||||
item.knockBack = knockBack;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.value = CalamityGlobalItem.Rarity11BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.maxStack = 10;
|
||||
|
||||
@@ -46,36 +46,36 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.shoot = ModContent.ProjectileType<HellsSunProj>();
|
||||
}
|
||||
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
item.shoot = 0;
|
||||
item.shootSpeed = 0f;
|
||||
return player.ownedProjectileCounts[ModContent.ProjectileType<HellsSunProj>()] > 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
item.shoot = ModContent.ProjectileType<HellsSunProj>();
|
||||
item.shootSpeed = 5f;
|
||||
int UseMax = item.stack;
|
||||
return player.ownedProjectileCounts[ModContent.ProjectileType<HellsSunProj>()] < UseMax;
|
||||
}
|
||||
}
|
||||
public override bool CanUseItem(Player player)
|
||||
{
|
||||
if (player.altFunctionUse == 2)
|
||||
{
|
||||
item.shoot = 0;
|
||||
item.shootSpeed = 0f;
|
||||
return player.ownedProjectileCounts[ModContent.ProjectileType<HellsSunProj>()] > 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
item.shoot = ModContent.ProjectileType<HellsSunProj>();
|
||||
item.shootSpeed = 5f;
|
||||
int UseMax = item.stack;
|
||||
return player.ownedProjectileCounts[ModContent.ProjectileType<HellsSunProj>()] < UseMax;
|
||||
}
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.killSpikyBalls = false;
|
||||
modPlayer.killSpikyBalls = false;
|
||||
if (modPlayer.StealthStrikeAvailable()) //setting the stealth strike
|
||||
{
|
||||
int stealth = Projectile.NewProjectile(position, new Vector2(speedX, speedY), ModContent.ProjectileType<HellsSunProj>(), (int)(damage * SdamageMult), knockBack, player.whoAmI);
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
Main.projectile[stealth].penetrate = -1;
|
||||
Main.projectile[stealth].timeLeft = 2400;
|
||||
}
|
||||
if (stealth.WithinBounds(Main.maxProjectiles))
|
||||
{
|
||||
Main.projectile[stealth].Calamity().stealthStrike = true;
|
||||
Main.projectile[stealth].penetrate = -1;
|
||||
Main.projectile[stealth].timeLeft = 2400;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
@@ -84,7 +84,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override bool AltFunctionUse(Player player)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.killSpikyBalls = true;
|
||||
modPlayer.killSpikyBalls = true;
|
||||
return true;
|
||||
}
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 60;
|
||||
item.damage = 169;
|
||||
item.damage = 110;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.autoReuse = true;
|
||||
@@ -28,12 +28,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.knockBack = 9f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.height = 60;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<MoltenAmputatorProj>();
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shoot = ModContent.ProjectileType<MoltenAmputatorProj>();
|
||||
item.shootSpeed = 12f;
|
||||
item.Calamity().rogue = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -18,7 +18,7 @@ Stealth strikes spawn smaller spears to fly along side it");
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.damage = 231;
|
||||
item.damage = 150;
|
||||
item.knockBack = 8f;
|
||||
|
||||
item.width = 56;
|
||||
@@ -27,13 +27,13 @@ Stealth strikes spawn smaller spears to fly along side it");
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.useTime = 18;
|
||||
item.useAnimation = 18;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.rare = 10;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise; //12
|
||||
item.Calamity().rogue = true;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.Calamity().rogue = true;
|
||||
|
||||
item.autoReuse = true;
|
||||
item.shootSpeed = 6f;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.damage = 169;
|
||||
item.damage = 110;
|
||||
item.knockBack = 5f;
|
||||
item.useAnimation = item.useTime = 25;
|
||||
item.useStyle = 1;
|
||||
@@ -30,8 +30,8 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.noMelee = item.noUseGraphic = true;
|
||||
item.height = item.width = 34;
|
||||
item.UseSound = SoundID.Item106;
|
||||
item.value = CalamityGlobalItem.Rarity13BuyPrice;
|
||||
item.rare = 10;
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Dedicated;
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
{
|
||||
item.width = 56;
|
||||
item.height = 56;
|
||||
item.damage = 82;
|
||||
item.damage = 54;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
item.useAnimation = 12;
|
||||
@@ -29,12 +29,12 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
item.knockBack = 6f;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<ShatteredSunKnife>();
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shoot = ModContent.ProjectileType<ShatteredSunKnife>();
|
||||
item.shootSpeed = 25f;
|
||||
item.Calamity().rogue = true;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
// Terraria seems to really dislike high crit values in SetDefaults
|
||||
|
||||
@@ -18,7 +18,7 @@ Does not consume stealth and cannot stealth strike");
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 72;
|
||||
item.damage = 87;
|
||||
item.damage = 57;
|
||||
item.Calamity().rogue = true;
|
||||
item.noMelee = true;
|
||||
item.noUseGraphic = true;
|
||||
@@ -29,11 +29,11 @@ Does not consume stealth and cannot stealth strike");
|
||||
item.knockBack = 3f;
|
||||
item.autoReuse = false;
|
||||
item.height = 78;
|
||||
item.value = Item.buyPrice(1, 20, 0, 0);
|
||||
item.rare = 10;
|
||||
item.shoot = ModContent.ProjectileType<SylvanSlashAttack>();
|
||||
item.value = CalamityGlobalItem.Rarity12BuyPrice;
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.shoot = ModContent.ProjectileType<SylvanSlashAttack>();
|
||||
item.shootSpeed = 24f;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
}
|
||||
|
||||
public override bool Shoot(Player player, ref Vector2 position, ref float speedX, ref float speedY, ref int type, ref int damage, ref float knockBack)
|
||||
|
||||
@@ -19,7 +19,7 @@ Stealth strikes erupt into thorns on enemy hits");
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.width = 34;
|
||||
item.damage = 380;
|
||||
item.damage = 247;
|
||||
item.noMelee = true;
|
||||
item.consumable = true;
|
||||
item.noUseGraphic = true;
|
||||
@@ -32,6 +32,7 @@ Stealth strikes erupt into thorns on enemy hits");
|
||||
item.height = 34;
|
||||
item.maxStack = 999;
|
||||
item.value = Item.sellPrice(silver: 3);
|
||||
item.rare = ItemRarityID.Purple;
|
||||
item.shoot = ModContent.ProjectileType<TarragonThrowingDartProjectile>();
|
||||
item.shootSpeed = 24f;
|
||||
item.Calamity().rogue = true;
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 130;
|
||||
item.damage = 85;
|
||||
item.mana = 10;
|
||||
item.width = 42;
|
||||
item.height = 60;
|
||||
|
||||
@@ -23,7 +23,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
item.UseSound = SoundID.DD2_DarkMageHealImpact;
|
||||
item.summon = true;
|
||||
item.mana = 12;
|
||||
item.damage = 40;
|
||||
item.damage = 26;
|
||||
item.knockBack = 2f;
|
||||
item.autoReuse = true;
|
||||
item.useTime = item.useAnimation = 15;
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 300;
|
||||
item.damage = 195;
|
||||
item.mana = 30;
|
||||
item.width = 64;
|
||||
item.height = 62;
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace CalamityMod.Items.Weapons.Summon
|
||||
|
||||
public override void SetDefaults()
|
||||
{
|
||||
item.damage = 100;
|
||||
item.damage = 50;
|
||||
item.summon = true;
|
||||
item.mana = 10;
|
||||
item.width = 36;
|
||||
|
||||
Loaded 100 of 149 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user