1 - Added Sand Shark Tooth Necklace.

2 - Bloodworm spawn changes.
3 - Nerfed post-Provi Ravager contact damage.
4 - Soul Piercer creates less fucking dust.
This commit is contained in:
Andrew Marheine committed 2020-12-23 12:49:53 -06:00
1 parent c6619cc0f7
commit 3198a04a79
12 files changed
+80 -42

No files matched your search

+4 -6
View File
@@ -12,7 +12,7 @@ namespace CalamityMod.Items.Accessories
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Reaper Tooth Necklace");
Tooltip.SetDefault("A grisly trophy from the ultimate predator\n" + "12% increased damage\n" + "Increases armor penetration by 100\n");
Tooltip.SetDefault("A grisly trophy from the ultimate predator\n" + "12% increased damage\n" + "Increases armor penetration by 45");
}
public override void SetDefaults()
@@ -21,22 +21,20 @@ namespace CalamityMod.Items.Accessories
item.height = 50;
item.accessory = true;
item.value = CalamityGlobalItem.Rarity13BuyPrice;
item.rare = ItemRarityID.Red;
item.rare = ItemRarityID.Purple;
item.Calamity().customRarity = CalamityRarity.PureGreen;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
CalamityPlayer modPlayer = player.Calamity();
player.allDamage += 0.12f;
player.armorPenetration += 100;
player.armorPenetration += 45;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.SharkToothNecklace);
recipe.AddIngredient(ItemID.AvengerEmblem);
recipe.AddIngredient(ModContent.ItemType<SandSharkToothNecklace>());
recipe.AddIngredient(ModContent.ItemType<ReaperTooth>(), 6);
recipe.AddIngredient(ModContent.ItemType<Lumenite>(), 15);
recipe.AddIngredient(ModContent.ItemType<DepthCells>(), 15);
@@ -0,0 +1,42 @@
using CalamityMod.Items.Materials;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
namespace CalamityMod.Items.Accessories
{
public class SandSharkToothNecklace : ModItem
{
public override void SetStaticDefaults()
{
DisplayName.SetDefault("Sand Shark Tooth Necklace");
Tooltip.SetDefault("Increases armor penetration by 15\n" + "6% increased damage");
}
public override void SetDefaults()
{
item.width = 32;
item.height = 44;
item.accessory = true;
item.value = CalamityGlobalItem.Rarity7BuyPrice;
item.rare = ItemRarityID.Lime;
}
public override void UpdateAccessory(Player player, bool hideVisual)
{
player.allDamage += 0.06f;
player.armorPenetration += 15;
}
public override void AddRecipes()
{
ModRecipe recipe = new ModRecipe(mod);
recipe.AddIngredient(ItemID.SharkToothNecklace);
recipe.AddIngredient(ItemID.AvengerEmblem);
recipe.AddIngredient(ModContent.ItemType<GrandScale>());
recipe.AddTile(TileID.TinkerersWorkbench);
recipe.SetResult(this);
recipe.AddRecipe();
}
}
}
Binary file not shown.

After

Width:  |  Height:  |  Size: 821 B

+4 -3
View File
@@ -99,13 +99,14 @@ namespace CalamityMod.NPCs.AcidRain
public override float SpawnChance(NPCSpawnInfo spawnInfo)
{
if (!spawnInfo.player.Calamity().ZoneSulphur || !CalamityWorld.encounteredOldDuke || CalamityWorld.rainingAcid)
if (!spawnInfo.player.Calamity().ZoneSulphur || CalamityWorld.rainingAcid)
return 0f;
//Increase bloodworm spawn rate relative to the number of existing bloodworms, parabolic multiplier ranging from 5x spawn rate with 0 blood worms to 1x with 5 or more
// Increase bloodworm spawn rate relative to the number of existing bloodworms, parabolic multiplier ranging from 5x spawn rate with 0 blood worms to 1x with 5 or more
int bloodwormAmt = NPC.CountNPCS(npc.type);
float spawnMult = bloodwormAmt > 5 ? 1f : (float)(0.16 * Math.Pow(5 - bloodwormAmt, 2)) + 1f;
float spawnRate = SpawnCondition.WormCritter.Chance * 2.569f * spawnMult;
float baseSpawnRate = CalamityWorld.encounteredOldDuke ? 2.569f : 5.138f;
float spawnRate = SpawnCondition.WormCritter.Chance * baseSpawnRate * spawnMult;
return spawnRate;
}
+3
View File
@@ -405,6 +405,9 @@ namespace CalamityMod.NPCs.OldDuke
// Mark Old Duke as dead
CalamityWorld.downedBoomerDuke = true;
// Mark first acid rain encounter as true even if he wasn't fought in the acid rain, because it makes sense
CalamityWorld.encounteredOldDuke = true;
CalamityNetcode.SyncWorld();
}
+1 -1
View File
@@ -70,7 +70,7 @@ namespace CalamityMod.NPCs.Ravager
else
{
if (CalamityWorld.downedProvidence && !BossRushEvent.BossRushActive)
npc.damage = npc.defDamage * 2;
npc.damage = (int)(npc.defDamage * 1.5);
else
npc.damage = npc.defDamage;
}
+1 -1
View File
@@ -49,7 +49,7 @@ namespace CalamityMod.NPCs.Ravager
npc.LifeMaxNERB(42700, 53500, 4600000);
if (CalamityWorld.downedProvidence && !BossRushEvent.BossRushActive)
{
npc.damage *= 2;
npc.damage = (int)(npc.damage * 1.5);
npc.defense *= 2;
npc.lifeMax *= 5;
npc.value *= 1.5f;
+2 -2
View File
@@ -37,8 +37,8 @@ namespace CalamityMod.NPCs.Ravager
npc.DeathSound = SoundID.NPCDeath14;
if (CalamityWorld.downedProvidence && !BossRushEvent.BossRushActive)
{
npc.damage *= 2;
npc.defense *= 2;
npc.damage = (int)(npc.damage * 1.5);
npc.defense *= 2;
npc.lifeMax *= 5;
}
if (BossRushEvent.BossRushActive)
+2 -2
View File
@@ -37,8 +37,8 @@ namespace CalamityMod.NPCs.Ravager
npc.DeathSound = SoundID.NPCDeath14;
if (CalamityWorld.downedProvidence && !BossRushEvent.BossRushActive)
{
npc.damage *= 2;
npc.defense *= 2;
npc.damage = (int)(npc.damage * 1.5);
npc.defense *= 2;
npc.lifeMax *= 5;
}
if (BossRushEvent.BossRushActive)
+2 -2
View File
@@ -57,8 +57,8 @@ namespace CalamityMod.NPCs.Ravager
else
{
if (CalamityWorld.downedProvidence && !BossRushEvent.BossRushActive)
npc.damage = npc.defDamage * 2;
else
npc.damage = (int)(npc.defDamage * 1.5);
else
npc.damage = npc.defDamage;
}
+10 -13
View File
@@ -29,19 +29,16 @@ namespace CalamityMod.Projectiles.Magic
public override void AI()
{
projectile.localAI[0] += 1f;
if (projectile.localAI[0] > 9f)
{
for (int num447 = 0; num447 < 4; num447++)
{
Vector2 vector33 = projectile.position;
vector33 -= projectile.velocity * ((float)num447 * 0.25f);
projectile.alpha = 255;
int num448 = Dust.NewDust(vector33, 1, 1, 173, 0f, 0f, 0, default, 0.5f);
Main.dust[num448].position = vector33;
Main.dust[num448].scale = (float)Main.rand.Next(70, 110) * 0.007f;
Main.dust[num448].velocity *= 0.2f;
}
}
if (projectile.localAI[0] > 9f)
{
Vector2 vector33 = projectile.position;
vector33 -= projectile.velocity;
projectile.alpha = 255;
int num448 = Dust.NewDust(vector33, 1, 1, 173, 0f, 0f, 0, default, 0.5f);
Main.dust[num448].position = vector33;
Main.dust[num448].scale = Main.rand.Next(70, 110) * 0.014f;
Main.dust[num448].velocity *= 0.2f;
}
}
public override void OnHitNPC(NPC target, int damage, float knockback, bool crit)
+9 -12
View File
@@ -25,17 +25,14 @@ namespace CalamityMod.Projectiles.Magic
projectile.localNPCHitCooldown = 5;
}
public override void AI()
{
for (int num447 = 0; num447 < 4; num447++)
{
Vector2 vector33 = projectile.position;
vector33 -= projectile.velocity * ((float)num447 * 0.25f);
int num448 = Dust.NewDust(vector33, 1, 1, 173, 0f, 0f, 0, default, 0.5f);
Main.dust[num448].position = vector33;
Main.dust[num448].scale = (float)Main.rand.Next(70, 110) * 0.007f;
Main.dust[num448].velocity *= 0.2f;
}
}
public override void AI()
{
Vector2 vector33 = projectile.position;
vector33 -= projectile.velocity;
int num448 = Dust.NewDust(vector33, 1, 1, 173, 0f, 0f, 0, default, 0.5f);
Main.dust[num448].position = vector33;
Main.dust[num448].scale = Main.rand.Next(70, 110) * 0.014f;
Main.dust[num448].velocity *= 0.2f;
}
}
}