Merge branch 'master' of https://github.com/UncleDanny/CalamityMod
No files matched your search
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 635 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 662 B |
@@ -384,6 +384,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool fabledTortoise = false;
|
||||
public bool manaOverloader = false;
|
||||
public bool royalGel = false;
|
||||
public bool handWarmer = false;
|
||||
public bool oldDie = false;
|
||||
public bool ursaSergeant = false;
|
||||
public bool thiefsDime = false;
|
||||
@@ -432,6 +433,7 @@ namespace CalamityMod.CalPlayer
|
||||
public bool camper = false;
|
||||
|
||||
// Armor Set
|
||||
public bool eskimoSet = false; //vanilla armor
|
||||
public bool victideSet = false;
|
||||
public bool sulfurSet = false;
|
||||
public bool aeroSet = false;
|
||||
@@ -1197,6 +1199,7 @@ namespace CalamityMod.CalPlayer
|
||||
fabledTortoise = false;
|
||||
manaOverloader = false;
|
||||
royalGel = false;
|
||||
handWarmer = false;
|
||||
lol = false;
|
||||
raiderTalisman = false;
|
||||
gSabaton = false;
|
||||
@@ -1241,6 +1244,8 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
astralStarRain = false;
|
||||
|
||||
eskimoSet = false; //vanilla armor
|
||||
|
||||
victideSet = false;
|
||||
|
||||
sulfurSet = false;
|
||||
@@ -1752,6 +1757,7 @@ namespace CalamityMod.CalPlayer
|
||||
ataxiaFire = false;
|
||||
ataxiaVolley = false;
|
||||
ataxiaBlaze = false;
|
||||
eskimoSet = false; //vanilla armor
|
||||
victideSet = false;
|
||||
aeroSet = false;
|
||||
statigelSet = false;
|
||||
@@ -3321,11 +3327,15 @@ namespace CalamityMod.CalPlayer
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(player.name + " vaporized into thin air.");
|
||||
}
|
||||
if (everclear && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8)
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(player.name + " succumbed to alcohol sickness.");
|
||||
}
|
||||
if (manaOverloader && damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8)
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(player.name + "'s life was completely converted into mana.");
|
||||
}
|
||||
if ((bloodyMary || everclear || evergreenGin || fireball || margarita || moonshine || moscowMule || redWine || screwdriver || starBeamRye || tequila || tequilaSunrise || vodka || whiteWine)
|
||||
if ((bloodyMary || evergreenGin || fireball || margarita || moonshine || moscowMule || redWine || screwdriver || starBeamRye || tequila || tequilaSunrise || vodka || whiteWine)
|
||||
&& damage == 10.0 && hitDirection == 0 && damageSource.SourceOtherIndex == 8)
|
||||
{
|
||||
damageSource = PlayerDeathReason.ByCustomReason(player.name + " succumbed to alcohol sickness.");
|
||||
@@ -3418,6 +3428,10 @@ namespace CalamityMod.CalPlayer
|
||||
add += 0.15f;
|
||||
}
|
||||
if (fireball && CalamityMod.fireWeaponList.Contains(item.type))
|
||||
{
|
||||
add += 0.1f;
|
||||
}
|
||||
if (eskimoSet && CalamityMod.iceWeaponList.Contains(item.type))
|
||||
{
|
||||
add += 0.1f;
|
||||
}
|
||||
|
||||
@@ -647,6 +647,10 @@ namespace CalamityMod.CalPlayer
|
||||
player.lifeRegen += 16;
|
||||
}
|
||||
if (modPlayer.camper)
|
||||
{
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
if (modPlayer.handWarmer && modPlayer.eskimoSet)
|
||||
{
|
||||
player.lifeRegen += 2;
|
||||
}
|
||||
|
||||
@@ -446,15 +446,11 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
// Immunity bools
|
||||
bool hasMoltenSet = player.head == ArmorIDs.Head.MoltenHelmet && player.body == ArmorIDs.Body.MoltenBreastplate && player.legs == ArmorIDs.Legs.MoltenGreaves;
|
||||
// Normal and Pink Eskimo set can be mixed and matched
|
||||
bool hasEskimoSet = (player.head == ArmorIDs.Head.EskimoHood || player.head == ArmorIDs.Head.PinkEskimoHood)
|
||||
&& (player.body == ArmorIDs.Body.EskimoCoat || player.body == ArmorIDs.Body.PinkEskimoCoat)
|
||||
&& (player.legs == ArmorIDs.Legs.EskimoPants || player.legs == ArmorIDs.Legs.PinkEskimoPants);
|
||||
|
||||
bool immunityToHotAndCold = hasMoltenSet || player.magmaStone || player.frostArmor || modPlayer.fBulwark || modPlayer.fBarrier ||
|
||||
modPlayer.frostFlare || modPlayer.rampartOfDeities || modPlayer.cryogenSoul || modPlayer.snowman || modPlayer.blazingCore || modPlayer.permafrostsConcoction;
|
||||
|
||||
bool immunityToCold = player.HasBuff(BuffID.Campfire) || Main.campfire || player.resistCold || hasEskimoSet || player.buffImmune[BuffID.Frozen] ||
|
||||
bool immunityToCold = player.HasBuff(BuffID.Campfire) || Main.campfire || player.resistCold || modPlayer.eskimoSet || player.buffImmune[BuffID.Frozen] ||
|
||||
player.HasBuff(BuffID.Inferno) || immunityToHotAndCold || modPlayer.externalColdImmunity;
|
||||
|
||||
bool immunityToHot = player.lavaImmune || player.lavaRose || player.lavaMax > 0 || immunityToHotAndCold || modPlayer.externalHeatImmunity;
|
||||
|
||||
|
Before Width: | Height: | Size: 500 B After Width: | Height: | Size: 854 B |
|
Before Width: | Height: | Size: 510 B After Width: | Height: | Size: 733 B |
|
Before Width: | Height: | Size: 312 B After Width: | Height: | Size: 413 B |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 386 B |
@@ -1,4 +1,5 @@
|
||||
using CalamityMod.Buffs.Potions;
|
||||
using CalamityMod.Buffs.StatDebuffs;
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.Items.Accessories;
|
||||
using CalamityMod.Items.DifficultyItems;
|
||||
@@ -1167,6 +1168,17 @@ Provides heat and cold protection in Death Mode";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.HandWarmer)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
{
|
||||
if (line2.mod == "Terraria" && line2.Name == "Tooltip0")
|
||||
{
|
||||
line2.text = "Provides immunity to chilling and freezing effects\n" +
|
||||
"Provides a regeneration boost while wearing the Eskimo armor";
|
||||
}
|
||||
}
|
||||
}
|
||||
if (item.type == ItemID.AngelWings)
|
||||
{
|
||||
foreach (TooltipLine line2 in tooltips)
|
||||
@@ -1427,9 +1439,9 @@ Provides heat and cold protection in Death Mode";
|
||||
"Acceleration multiplier: 0\n" +
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 140\n" +
|
||||
"10% increased movement speed and 100% increased jump speed\n" +
|
||||
"+20 defense, 15% increased damage, 7% increased critical strike chance\n" +
|
||||
"and 10% increased movement speed at night";
|
||||
"At night or during an eclipse, you will gain the following boosts:\n" +
|
||||
"10% increased movement speed, 100% increased jump speed,\n" +
|
||||
"+15 defense, 10% increased damage, and 5% increased critical strike chance";
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -2186,13 +2198,15 @@ Provides heat and cold protection in Death Mode";
|
||||
return "Obsidian";
|
||||
if (head.type == ItemID.MoltenHelmet && body.type == ItemID.MoltenBreastplate && legs.type == ItemID.MoltenGreaves)
|
||||
return "Molten";
|
||||
if (head.type == (ItemID.EskimoHood | ItemID.PinkEskimoHood) && body.type == (ItemID.EskimoCoat | ItemID.PinkEskimoCoat) && legs.type == (ItemID.EskimoPants | ItemID.PinkEskimoPants))
|
||||
// Normal and Pink Eskimo set can be mixed and matched
|
||||
if ((head.type == ItemID.EskimoHood || head.type == ItemID.PinkEskimoHood) && (body.type == ItemID.EskimoCoat || body.type == ItemID.PinkEskimoCoat) && (legs.type == ItemID.EskimoPants || legs.type == ItemID.PinkEskimoPants))
|
||||
return "Eskimo";
|
||||
return "";
|
||||
}
|
||||
|
||||
public override void UpdateArmorSet(Player player, string set)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
if (set == "Copper")
|
||||
player.pickSpeed -= 0.15f;
|
||||
else if (set == "Tin")
|
||||
@@ -2211,7 +2225,6 @@ Provides heat and cold protection in Death Mode";
|
||||
player.pickSpeed -= 0.4f;
|
||||
else if (set == "Gladiator")
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.rogueStealthMax += 0.7f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.Calamity().throwingDamage += 0.05f;
|
||||
@@ -2226,7 +2239,6 @@ Provides heat and cold protection in Death Mode";
|
||||
}
|
||||
else if (set == "Obsidian")
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.rogueStealthMax += 0.8f;
|
||||
modPlayer.wearingRogueArmor = true;
|
||||
player.Calamity().throwingDamage += 0.05f;
|
||||
@@ -2248,9 +2260,15 @@ Provides heat and cold protection in Death Mode";
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 300;
|
||||
}
|
||||
else if (set == "Eskimo" && CalamityWorld.death)
|
||||
else if (set == "Eskimo")
|
||||
{
|
||||
player.setBonus = "Provides cold immunity in Death Mode";
|
||||
modPlayer.eskimoSet = true;
|
||||
player.buffImmune[BuffID.Frostburn] = true;
|
||||
player.buffImmune[ModContent.BuffType<GlacialState>()] = true;
|
||||
player.setBonus = "All ice-themed weapons receive a 10% damage bonus\n" +
|
||||
"Cold enemies will deal reduced contact damage to the player\n" +
|
||||
"Provides immunity to the Frostburn and Glacial State debuffs\n" +
|
||||
"Provides cold immunity in Death Mode";
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -2258,21 +2276,15 @@ Provides heat and cold protection in Death Mode";
|
||||
#region Equip Changes
|
||||
public override void UpdateEquip(Item item, Player player)
|
||||
{
|
||||
if (item.type == ItemID.FireGauntlet)
|
||||
{
|
||||
player.meleeDamage += 0.04f;
|
||||
player.meleeSpeed += 0.04f;
|
||||
}
|
||||
|
||||
#region Head
|
||||
if (item.type == ItemID.SpectreHood)
|
||||
player.magicDamage += 0.2f;
|
||||
else if (item.type == ItemID.GladiatorHelmet || item.type == ItemID.ObsidianHelm)
|
||||
else if (item.type == (ItemID.GladiatorHelmet | ItemID.ObsidianHelm))
|
||||
player.Calamity().throwingDamage += 0.03f;
|
||||
#endregion
|
||||
|
||||
#region Body
|
||||
if (item.type == ItemID.GladiatorBreastplate || item.type == ItemID.ObsidianShirt)
|
||||
if (item.type == (ItemID.GladiatorBreastplate | ItemID.ObsidianShirt))
|
||||
player.Calamity().throwingCrit += 3;
|
||||
else if (item.type == ItemID.PalladiumBreastplate)
|
||||
player.Calamity().throwingCrit += 2;
|
||||
@@ -2291,7 +2303,7 @@ Provides heat and cold protection in Death Mode";
|
||||
#endregion
|
||||
|
||||
#region Legs
|
||||
if (item.type == ItemID.GladiatorLeggings || item.type == ItemID.ObsidianPants)
|
||||
if (item.type == (ItemID.GladiatorLeggings | ItemID.ObsidianPants))
|
||||
player.Calamity().throwingVelocity += 0.03f;
|
||||
else if (item.type == ItemID.PalladiumLeggings)
|
||||
player.Calamity().throwingCrit += 1;
|
||||
@@ -2312,6 +2324,12 @@ Provides heat and cold protection in Death Mode";
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
|
||||
if (item.type == ItemID.FireGauntlet)
|
||||
{
|
||||
player.meleeDamage += 0.04f;
|
||||
player.meleeSpeed += 0.04f;
|
||||
}
|
||||
|
||||
if (item.type == ItemID.AngelWings) // Boost to max life, defense, and life regen
|
||||
{
|
||||
player.statLifeMax2 += 20;
|
||||
@@ -2358,14 +2376,13 @@ Provides heat and cold protection in Death Mode";
|
||||
}
|
||||
else if (item.type == ItemID.BatWings) // Stronger at night
|
||||
{
|
||||
player.moveSpeed += 0.1f;
|
||||
player.jumpSpeedBoost += 1.0f;
|
||||
player.noFallDmg = true;
|
||||
if (!Main.dayTime || Main.eclipse)
|
||||
{
|
||||
player.statDefense += 20;
|
||||
player.allDamage += 0.15f;
|
||||
modPlayer.AllCritBoost(7);
|
||||
player.jumpSpeedBoost += 1.0f;
|
||||
player.statDefense += 15;
|
||||
player.allDamage += 0.1f;
|
||||
modPlayer.AllCritBoost(5);
|
||||
player.moveSpeed += 0.1f;
|
||||
}
|
||||
}
|
||||
@@ -2514,16 +2531,13 @@ Provides heat and cold protection in Death Mode";
|
||||
player.minionDamage += 0.05f;
|
||||
}
|
||||
}
|
||||
else if (item.type == ItemID.FishronWings || item.type == ItemID.BetsyWings || item.type == ItemID.Yoraiz0rWings ||
|
||||
item.type == ItemID.JimsWings || item.type == ItemID.SkiphsWings || item.type == ItemID.LokisWings ||
|
||||
item.type == ItemID.ArkhalisWings || item.type == ItemID.LeinforsWings || item.type == ItemID.BejeweledValkyrieWing ||
|
||||
item.type == ItemID.RedsWings || item.type == ItemID.DTownsWings || item.type == ItemID.WillsWings ||
|
||||
item.type == ItemID.CrownosWings || item.type == ItemID.CenxsWings || item.type == ItemID.Hoverboard || item.type == ItemID.LeafWings)
|
||||
else if (item.type == (ItemID.FishronWings | ItemID.BetsyWings | ItemID.Yoraiz0rWings | ItemID.JimsWings | ItemID.SkiphsWings |
|
||||
ItemID.LokisWings | ItemID.ArkhalisWings | ItemID.LeinforsWings | ItemID.BejeweledValkyrieWing | ItemID.RedsWings | ItemID.DTownsWings |
|
||||
ItemID.WillsWings | ItemID.CrownosWings | ItemID.CenxsWings | ItemID.Hoverboard | ItemID.LeafWings))
|
||||
{
|
||||
player.noFallDmg = true;
|
||||
}
|
||||
|
||||
// Arctic Diving Gear counts as a Jellyfish Necklace in code, but overrides its abyss light level because it's an upgrade.
|
||||
if (item.type == ItemID.JellyfishNecklace || item.type == ItemID.JellyfishDivingGear || item.type == ItemID.ArcticDivingGear)
|
||||
modPlayer.jellyfishNecklace = true;
|
||||
|
||||
@@ -2533,6 +2547,9 @@ Provides heat and cold protection in Death Mode";
|
||||
if (item.type == ItemID.RoyalGel)
|
||||
modPlayer.royalGel = true;
|
||||
|
||||
if (item.type == ItemID.HandWarmer)
|
||||
modPlayer.handWarmer = true;
|
||||
|
||||
if (item.type == ItemID.CelestialStone || item.type == ItemID.CelestialShell || (item.type == ItemID.MoonStone && !Main.dayTime) ||
|
||||
(item.type == ItemID.SunStone && Main.dayTime))
|
||||
{
|
||||
@@ -2546,7 +2563,7 @@ Provides heat and cold protection in Death Mode";
|
||||
player.Calamity().throwingCrit += 5;
|
||||
|
||||
// Hard / Guarding / Armored / Warding give 0.25% / 0.5% / 0.75% / 1% DR
|
||||
if (item.prefix == 62)
|
||||
if (item.prefix == PrefixID.Hard)
|
||||
{
|
||||
if (NPC.downedMoonlord)
|
||||
player.statDefense += 2;
|
||||
@@ -2555,7 +2572,7 @@ Provides heat and cold protection in Death Mode";
|
||||
|
||||
player.endurance += 0.0025f;
|
||||
}
|
||||
if (item.prefix == 63)
|
||||
if (item.prefix == PrefixID.Guarding)
|
||||
{
|
||||
if (NPC.downedMoonlord)
|
||||
player.statDefense += 2;
|
||||
@@ -2564,7 +2581,7 @@ Provides heat and cold protection in Death Mode";
|
||||
|
||||
player.endurance += 0.005f;
|
||||
}
|
||||
if (item.prefix == 64)
|
||||
if (item.prefix == PrefixID.Armored)
|
||||
{
|
||||
if (NPC.downedMoonlord)
|
||||
player.statDefense += 3;
|
||||
@@ -2573,7 +2590,7 @@ Provides heat and cold protection in Death Mode";
|
||||
|
||||
player.endurance += 0.0075f;
|
||||
}
|
||||
if (item.prefix == 65)
|
||||
if (item.prefix == PrefixID.Warding)
|
||||
{
|
||||
if (NPC.downedMoonlord)
|
||||
player.statDefense += 4;
|
||||
@@ -2584,13 +2601,13 @@ Provides heat and cold protection in Death Mode";
|
||||
}
|
||||
|
||||
// Precise only gives 1% crit and Lucky only gives 3% crit
|
||||
if (item.prefix == 67 || item.prefix == 68)
|
||||
if (item.prefix == (PrefixID.Precise | PrefixID.Lucky))
|
||||
{
|
||||
player.meleeCrit -= 1;
|
||||
player.rangedCrit -= 1;
|
||||
player.magicCrit -= 1;
|
||||
player.thrownCrit -= 1;
|
||||
player.Calamity().throwingCrit += item.prefix == 68 ? 3 : 1;
|
||||
player.Calamity().throwingCrit += item.prefix == PrefixID.Lucky ? 3 : 1;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
Before Width: | Height: | Size: 958 B After Width: | Height: | Size: 820 B |
|
Before Width: | Height: | Size: 633 B After Width: | Height: | Size: 954 B |
@@ -1,5 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
@@ -9,6 +11,7 @@ namespace CalamityMod.Items.Materials
|
||||
{
|
||||
DisplayName.SetDefault("Endothermic Energy");
|
||||
Tooltip.SetDefault("Great for preventing heat stroke");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
|
||||
}
|
||||
|
||||
public override void Update(ref float gravity, ref float maxFallSpeed)
|
||||
|
||||
|
Before Width: | Height: | Size: 606 B After Width: | Height: | Size: 760 B |
@@ -1,5 +1,7 @@
|
||||
using Terraria;
|
||||
using Terraria.ModLoader;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Materials
|
||||
{
|
||||
@@ -9,6 +11,7 @@ namespace CalamityMod.Items.Materials
|
||||
{
|
||||
DisplayName.SetDefault("Nightmare Fuel");
|
||||
Tooltip.SetDefault("May drain your sanity");
|
||||
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
|
||||
}
|
||||
|
||||
public override void Update(ref float gravity, ref float maxFallSpeed)
|
||||
|
||||
|
Before Width: | Height: | Size: 566 B After Width: | Height: | Size: 869 B |
|
Before Width: | Height: | Size: 550 B After Width: | Height: | Size: 951 B |
|
Before Width: | Height: | Size: 474 B After Width: | Height: | Size: 722 B |
@@ -23,6 +23,7 @@ namespace CalamityMod.Items.Tools
|
||||
item.useAnimation = 15;
|
||||
item.useTurn = true;
|
||||
item.pick = 200;
|
||||
item.tileBoost += 1;
|
||||
item.useStyle = 1;
|
||||
item.knockBack = 4.5f;
|
||||
item.value = Item.buyPrice(0, 60, 0, 0);
|
||||
|
||||
@@ -19,7 +19,7 @@ namespace CalamityMod.Items.Tools
|
||||
item.melee = true;
|
||||
item.width = 46;
|
||||
item.height = 46;
|
||||
item.useTime = 20;
|
||||
item.useTime = 16;
|
||||
item.useAnimation = 20;
|
||||
item.pick = 100;
|
||||
item.useStyle = 1;
|
||||
|
||||
@@ -20,7 +20,7 @@ namespace CalamityMod.Items.Tools
|
||||
item.melee = true;
|
||||
item.width = 44;
|
||||
item.height = 44;
|
||||
item.useTime = 16;
|
||||
item.useTime = 14;
|
||||
item.useAnimation = 16;
|
||||
item.useTurn = true;
|
||||
item.pick = 95;
|
||||
|
||||
@@ -28,6 +28,7 @@ namespace CalamityMod.Items.Tools
|
||||
item.rare = 1;
|
||||
item.UseSound = SoundID.Item1;
|
||||
item.autoReuse = true;
|
||||
item.tileBoost += 1;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
|
||||
|
Before Width: | Height: | Size: 909 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 903 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 719 B After Width: | Height: | Size: 1.2 KiB |
|
Before Width: | Height: | Size: 897 B After Width: | Height: | Size: 1.6 KiB |
@@ -87,6 +87,7 @@ namespace CalamityMod.Items.Weapons.Ranged
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public override bool ConsumeAmmo(Player player)
|
||||
{
|
||||
if (Main.rand.Next(0, 100) < 66)
|
||||
|
||||
|
Before Width: | Height: | Size: 536 B After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 675 B After Width: | Height: | Size: 789 B |
@@ -1221,18 +1221,27 @@ namespace CalamityMod.NPCs
|
||||
#region Modify Hit Player
|
||||
public override void ModifyHitPlayer(NPC npc, Player target, ref int damage, ref bool crit)
|
||||
{
|
||||
CalamityPlayer modTarget = target.Calamity();
|
||||
if (tSad > 0)
|
||||
{
|
||||
damage /= 2;
|
||||
}
|
||||
|
||||
if (target.Calamity().beeResist)
|
||||
if (modTarget.beeResist)
|
||||
{
|
||||
if (CalamityMod.beeEnemyList.Contains(npc.type))
|
||||
{
|
||||
damage = (int)(damage * 0.75);
|
||||
}
|
||||
}
|
||||
|
||||
if (modTarget.eskimoSet)
|
||||
{
|
||||
if (npc.coldDamage)
|
||||
{
|
||||
damage = (int)(damage * 0.9);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
||||
|
Before Width: | Height: | Size: 3.4 KiB After Width: | Height: | Size: 4.1 KiB |
@@ -22,13 +22,15 @@ namespace CalamityMod.Projectiles.Magic
|
||||
|
||||
// The actual distance is stored in the ai0 field
|
||||
// By making a property to handle this it makes our life easier, and the accessibility more readable
|
||||
public float Distance {
|
||||
public float Distance
|
||||
{
|
||||
get => projectile.ai[0];
|
||||
set => projectile.ai[0] = value;
|
||||
}
|
||||
|
||||
// The actual charge value is stored in the localAI0 field
|
||||
public float Charge {
|
||||
public float Charge
|
||||
{
|
||||
get => projectile.localAI[0];
|
||||
set => projectile.localAI[0] = value;
|
||||
}
|
||||
@@ -107,7 +109,8 @@ namespace CalamityMod.Projectiles.Magic
|
||||
{
|
||||
if (target.life <= 0)
|
||||
{
|
||||
int shardDamage = SparklingEmpress.BaseDamage / 5;
|
||||
Player player = Main.player[projectile.owner];
|
||||
int shardDamage = (int)((SparklingEmpress.BaseDamage / 5) * (player.allDamage + player.magicDamage - 1f));
|
||||
int num251 = Main.rand.Next(2, 4);
|
||||
if (projectile.owner == Main.myPlayer)
|
||||
{
|
||||
|
||||
@@ -18,6 +18,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
projectile.melee = true;
|
||||
projectile.ignoreWater = true;
|
||||
aiType = 261;
|
||||
projectile.usesLocalNPCImmunity = true;
|
||||
projectile.localNPCHitCooldown = 10;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 621 B After Width: | Height: | Size: 836 B |
|
Before Width: | Height: | Size: 881 B After Width: | Height: | Size: 1.3 KiB |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.8 KiB |
|
Before Width: | Height: | Size: 354 B After Width: | Height: | Size: 386 B |
@@ -35,6 +35,7 @@ namespace CalamityMod
|
||||
AddProgressionRecipes();
|
||||
AddEarlyGameWeaponRecipes();
|
||||
AddEarlyGameAccessoryRecipes();
|
||||
AddArmorRecipes();
|
||||
AddAnkhShieldRecipes();
|
||||
AddAlternateHardmodeRecipes();
|
||||
|
||||
@@ -609,9 +610,49 @@ namespace CalamityMod
|
||||
r.AddTile(TileID.MythrilAnvil);
|
||||
r.SetResult(ItemID.MetalDetector);
|
||||
r.AddRecipe();
|
||||
|
||||
// Hand Warmer
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.Silk, 5);
|
||||
r.AddIngredient(ItemID.Shiverthorn);
|
||||
r.AddRecipeGroup("AnySnowBlock", 10);
|
||||
r.AddTile(TileID.Loom);
|
||||
r.SetResult(ItemID.HandWarmer);
|
||||
r.AddRecipe();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Armor
|
||||
// Rare uncraftable armors like Eskimo armor
|
||||
private static void AddArmorRecipes()
|
||||
{
|
||||
// Eskimo armor
|
||||
ModRecipe r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.Silk, 4);
|
||||
r.AddIngredient(ItemID.Leather);
|
||||
r.AddIngredient(ItemID.BorealWood, 12);
|
||||
r.AddTile(TileID.Loom);
|
||||
r.SetResult(ItemID.EskimoHood);
|
||||
r.AddRecipe();
|
||||
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.Silk, 8);
|
||||
r.AddIngredient(ItemID.Leather);
|
||||
r.AddIngredient(ItemID.BorealWood, 18);
|
||||
r.AddTile(TileID.Loom);
|
||||
r.SetResult(ItemID.EskimoCoat);
|
||||
r.AddRecipe();
|
||||
|
||||
r = GetNewRecipe();
|
||||
r.AddIngredient(ItemID.Silk, 6);
|
||||
r.AddIngredient(ItemID.Leather);
|
||||
r.AddIngredient(ItemID.BorealWood, 15);
|
||||
r.AddTile(TileID.Loom);
|
||||
r.SetResult(ItemID.EskimoPants);
|
||||
r.AddRecipe();
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region AnkhShield
|
||||
// Every base component for the Ankh Shield
|
||||
private static void AddAnkhShieldRecipes()
|
||||
|
||||