This commit is contained in:
Andrew Marheine committed 2021-11-23 12:11:17 -06:00
commit 3614eb6de1
18 files changed
+93 -39

No files matched your search

+3 -2
View File
@@ -1134,9 +1134,10 @@ namespace CalamityMod.CalPlayer
}
else
{
// First Shadowflame is +1, Statis' Blessing is +2, Statis' Curse inherits both for +3
if (modPlayer.shadowMinions)
player.maxMinions += 3;
else if (modPlayer.holyMinions)
player.maxMinions ++;
if (modPlayer.holyMinions)
player.maxMinions += 2;
if (modPlayer.starTaintedGenerator)
+1
View File
@@ -2493,6 +2493,7 @@ namespace CalamityMod
ProjectileID.StardustDragon2,
ProjectileID.StardustDragon3,
ProjectileID.StardustDragon4,
ProjectileType<DeathstareEyeball>(),
ProjectileType<MechwormHead>(),
ProjectileType<MechwormBody>(),
ProjectileType<MechwormTail>(),
-1
View File
@@ -28,7 +28,6 @@ namespace CalamityMod.Items.Accessories
item.height = 20;
item.value = CalamityGlobalItem.Rarity9BuyPrice;
item.rare = ItemRarityID.Cyan;
item.defense = 9;
item.accessory = true;
item.Calamity().customRarity = CalamityRarity.Rainbow;
}
+1 -1
View File
@@ -13,7 +13,7 @@ namespace CalamityMod.Items.Accessories
DisplayName.SetDefault("The First Shadowflame");
Tooltip.SetDefault("It is said that in the past, Prometheus descended from the heavens to grant man fire.\n" +
"If that were true, then it is surely the demons of hell that would have risen from below to do the same.\n" +
"Minions inflict shadowflame on enemy hits.");
"Increases max minions by 1 and minions inflict the Shadowflame debuff on enemies.");
Main.RegisterItemAnimation(item.type, new DrawAnimationVertical(6, 6));
}
+20 -8
View File
@@ -960,6 +960,22 @@ namespace CalamityMod.Items
return "Meteor";
if (head.type == ItemID.PearlwoodHelmet && body.type == ItemID.PearlwoodBreastplate && legs.type == ItemID.PearlwoodGreaves)
return "Pearlwood";
if (head.type == ItemID.MonkBrows && body.type == ItemID.MonkShirt && legs.type == ItemID.MonkPants)
return "MonkTier2";
if (head.type == ItemID.SquireGreatHelm && body.type == ItemID.SquirePlating && legs.type == ItemID.SquireGreaves)
return "SquireTier2";
if (head.type == ItemID.HuntressWig && body.type == ItemID.HuntressJerkin && legs.type == ItemID.HuntressPants)
return "HuntressTier2";
if (head.type == ItemID.ApprenticeHat && body.type == ItemID.ApprenticeRobe && legs.type == ItemID.ApprenticeTrousers)
return "ApprenticeTier2";
if (head.type == ItemID.MonkAltHead && body.type == ItemID.MonkAltShirt && legs.type == ItemID.MonkAltPants)
return "MonkTier3";
if (head.type == ItemID.SquireAltHead && body.type == ItemID.SquireAltShirt && legs.type == ItemID.SquireAltPants)
return "SquireTier3";
if (head.type == ItemID.HuntressAltHead && body.type == ItemID.HuntressAltShirt && legs.type == ItemID.HuntressAltPants)
return "HuntressTier3";
if (head.type == ItemID.ApprenticeAltHead && body.type == ItemID.ApprenticeAltShirt && legs.type == ItemID.ApprenticeAltPants)
return "ApprenticeTier3";
return "";
}
@@ -986,8 +1002,8 @@ namespace CalamityMod.Items
{
modPlayer.rogueStealthMax += 0.7f;
modPlayer.wearingRogueArmor = true;
player.Calamity().throwingDamage += 0.05f;
player.Calamity().throwingVelocity += 0.1f;
modPlayer.throwingDamage += 0.05f;
modPlayer.throwingVelocity += 0.1f;
player.statDefense += 3;
player.setBonus = "+3 defense\n" +
"5% increased rogue damage and 10% increased velocity\n" +
@@ -1000,8 +1016,8 @@ namespace CalamityMod.Items
{
modPlayer.rogueStealthMax += 0.8f;
modPlayer.wearingRogueArmor = true;
player.Calamity().throwingDamage += 0.05f;
player.Calamity().throwingCrit += 5;
modPlayer.throwingDamage += 0.05f;
modPlayer.throwingCrit += 5;
player.statDefense += 2;
player.fireWalk = true;
player.lavaMax += 180;
@@ -1108,10 +1124,6 @@ namespace CalamityMod.Items
"Greatly enhances Flameburst effectiveness\n" +
"10% increased minion damage and 15% increased magic critical strike chance";
}
else if (set == "Stardust")
{
player.maxMinions += 2;
}
}
#endregion
-3
View File
@@ -732,9 +732,6 @@ namespace CalamityMod.Items
// 1) Chest and Legs only give 1 minion slot each instead of 2 each.
if (item.type == ItemID.StardustBreastplate || item.type == ItemID.StardustLeggings)
EditTooltipByNum(0, (line) => line.text = line.text.Replace('2', '1'));
// 2) Set bonus gives 2 minions instead of 0.
if (item.type == ItemID.StardustHelmet || item.type == ItemID.StardustBreastplate || item.type == ItemID.StardustLeggings)
EditTooltipByName("SetBonus", (line) => line.text += "\nIncreases your max number of minions by 2");
#endregion
// Provide the full stats of every vanilla set of wings
+1 -1
View File
@@ -26,7 +26,7 @@ namespace CalamityMod.Items.Materials
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ModContent.ItemType<CharredOre>(), 4);
recipe.AddIngredient(ItemID.Hellstone, 4);
recipe.AddTile(TileID.AdamantiteForge);
recipe.AddTile(TileID.Hellforge);
recipe.SetResult(this);
recipe.AddRecipe();
}
+1 -1
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Weapons.Magic
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Miasma");
Tooltip.SetDefault("Releases gas clouds that stay still and explode after a while");
Tooltip.SetDefault("Fires a spread of gas clouds that slow down after hitting an enemy");
Item.staff[item.type] = true;
}
+1 -1
View File
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Weapons.Melee
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Brimlance");
Tooltip.SetDefault("Enemies killed by the spear explode into brimstone flames");
Tooltip.SetDefault("Creates brimstone explosions on enemy hits");
}
public override void SetDefaults()
+2 -2
View File
@@ -12,12 +12,12 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Eye of Night");
Tooltip.SetDefault("Summons a diseased eyeball that fires cells which attach to enemies and explode");
Tooltip.SetDefault("Summons a diseased eyeball that fires cells which attach to enemies and inflict cursed flames");
}
public override void SetDefaults()
{
item.damage = 35;
item.damage = 28;
item.mana = 10;
item.width = item.height = 36;
item.useTime = item.useAnimation = 30;
+1 -1
View File
@@ -16,7 +16,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 26;
item.damage = 23;
item.mana = 10;
item.width = item.height = 48;
item.useTime = item.useAnimation = 30;
+1 -1
View File
@@ -18,7 +18,7 @@ namespace CalamityMod.Items.Weapons.Summon
public override void SetDefaults()
{
item.damage = 156;
item.damage = 280;
item.summon = true;
item.sentry = true;
item.mana = 10;
+3 -6
View File
@@ -21,11 +21,11 @@ namespace CalamityMod.Projectiles.Summon
projectile.minionSlots = 0f;
projectile.ignoreWater = true;
projectile.tileCollide = false;
projectile.penetrate = -1;
projectile.penetrate = 2;
projectile.timeLeft = 180;
projectile.extraUpdates = 1;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 19;
projectile.localNPCHitCooldown = 90;
}
public override void AI()
@@ -37,15 +37,12 @@ namespace CalamityMod.Projectiles.Summon
}
public override void Kill(int timeLeft)
{
CalamityGlobalProjectile.ExpandHitboxBy(projectile, 60);
projectile.Damage();
if (!Main.dedServ)
for (int i = 0; i < 10; i++)
Dust.NewDustDirect(projectile.position, 36, 36, (int)CalamityDusts.SulfurousSeaAcid).noGravity = true;
}
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => projectile.ModifyHitNPCSticky(10, true);
public override void ModifyHitNPC(NPC target, ref int damage, ref float knockback, ref bool crit, ref int hitDirection) => projectile.ModifyHitNPCSticky(4, true);
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit) => target.AddBuff(BuffID.CursedInferno, 120);
+2
View File
@@ -133,5 +133,7 @@ namespace CalamityMod.Projectiles.Summon
projectile.velocity = (destination - projectile.Center).SafeNormalize(Vector2.Zero) * flySpeed;
}
public override bool CanDamage() => false;
}
}
+7 -9
View File
@@ -1,5 +1,4 @@
using CalamityMod.Buffs.Summon;
using CalamityMod.Projectiles.Melee;
using Microsoft.Xna.Framework;
using System;
using Terraria;
@@ -13,6 +12,7 @@ namespace CalamityMod.Projectiles.Summon
public Player Owner => Main.player[projectile.owner];
public bool SittingOnGround => Math.Abs(projectile.velocity.X) < 1.55f && projectile.velocity.Y == 0f;
public ref float HopTimer => ref projectile.ai[0];
public ref float HopAmount => ref projectile.ai[1];
public const float Gravity = 0.25f;
public const float MaxFallSpeed = 12f;
public override void SetStaticDefaults()
@@ -35,6 +35,8 @@ namespace CalamityMod.Projectiles.Summon
projectile.extraUpdates = 1;
projectile.tileCollide = false;
projectile.minion = true;
projectile.usesLocalNPCImmunity = true;
projectile.localNPCHitCooldown = 60;
}
public override void AI()
@@ -127,19 +129,15 @@ namespace CalamityMod.Projectiles.Summon
if (SittingOnGround && HopTimer % 20f == 19f)
{
projectile.velocity = projectile.SafeDirectionTo(target.Center) * 6f + new Vector2(Math.Sign(projectile.velocity.X) * 2f, -7f);
HopAmount++;
// Release a bunch of blood.
if (Main.myPlayer == projectile.owner)
if (Main.myPlayer == projectile.owner && HopAmount % 3f == 2f)
{
for (int i = 0; i < Main.rand.Next(1, 4 + 1); i++)
for (int i = 0; i < 2; i++)
{
Vector2 shootVelocity = -Vector2.UnitY.RotatedByRandom(0.3f) * Main.rand.NextFloat(6f, 11f);
int blood = Projectile.NewProjectile(projectile.Top, shootVelocity, ModContent.ProjectileType<Blood2>(), projectile.damage, projectile.knockBack, projectile.owner);
if (Main.projectile.IndexInRange(blood))
{
Main.projectile[blood].Calamity().forceMinion = true;
Main.projectile[blood].penetrate = 1;
}
int blood = Projectile.NewProjectile(projectile.Top, shootVelocity, ModContent.ProjectileType<FleshBlood>(), projectile.damage, projectile.knockBack, projectile.owner);
}
}
+47
View File
@@ -0,0 +1,47 @@
using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Projectiles.Summon
{
public class FleshBlood : ModProjectile
{
public override string Texture => "CalamityMod/Projectiles/InvisibleProj";
public const int LifeTime = 300;
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Blood");
ProjectileID.Sets.MinionShot[projectile.type] = true;
}
public override void SetDefaults()
{
projectile.width = 4;
projectile.height = 4;
projectile.friendly = true;
projectile.minion = true;
projectile.penetrate = 1;
projectile.timeLeft = LifeTime;
}
public override bool? CanHitNPC(NPC target) => projectile.timeLeft < LifeTime - 30 && target.CanBeChasedBy(projectile);
public override void AI()
{
projectile.localAI[0] += 1f;
if (projectile.localAI[0] > 4f)
{
for (int i = 0; i < 2; i++)
{
int d = Dust.NewDust(projectile.position, projectile.width, projectile.height, DustID.Blood, 0f, 0f, 100, default, 1f);
Main.dust[d].noGravity = true;
Main.dust[d].velocity *= 0f;
}
}
if (projectile.timeLeft < LifeTime - 30)
CalamityGlobalProjectile.HomeInOnNPC(projectile, !projectile.tileCollide, 450f, 6f, 20f);
}
}
}
+1 -1
View File
@@ -151,7 +151,7 @@ namespace CalamityMod.Projectiles.Summon
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
{
if (RemainingSlices > 0)
if (RemainingSlices > 0 && FiringTime <= 80f)
{
FiringTime = 10f;
RemainingSlices--;
+1 -1
View File
@@ -22,7 +22,7 @@ namespace CalamityMod.Tiles.Crags
soundType = SoundID.Tink;
mineResist = 3f;
minPick = 180;
minPick = 100;
drop = ModContent.ItemType<Items.Placeables.BrimstoneSlag>();
AddMapEntry(new Color(53, 33, 56));
}