Merge branch '1.4.4' of https://github.com/CalamityTeam/CalamityMod into 1.4.4
This commit is contained in:
commit
5f82a5dc45
8 files changed
+16
-34
No files matched your search
@@ -13,7 +13,7 @@ namespace CalamityMod.BiomeManagers
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/AstralDesertSurfaceBGStyle");
|
||||
public override int BiomeTorchItemType => ModContent.ItemType<AstralTorch>();
|
||||
public override SceneEffectPriority Priority => Sandstorm.Happening ? SceneEffectPriority.Environment : SceneEffectPriority.BiomeHigh;
|
||||
public override SceneEffectPriority Priority => Sandstorm.Happening && !(Main.slimeRain || Main.eclipse) ? SceneEffectPriority.Environment : SceneEffectPriority.BiomeHigh;
|
||||
public override string BestiaryIcon => "CalamityMod/BiomeManagers/AstralDesertIcon";
|
||||
// Could use its own unique background
|
||||
public override string BackgroundPath => "CalamityMod/Backgrounds/MapBackgrounds/AstralBG";
|
||||
|
||||
@@ -3081,7 +3081,7 @@ namespace CalamityMod.CalPlayer
|
||||
float rageRatio = rage / rageMax;
|
||||
float baseDamage = rageRatio * GaelsGreatsword.SkullsplosionDamageMultiplier * GaelsGreatsword.BaseDamage;
|
||||
int damage = (int)Player.GetTotalDamage<MeleeDamageClass>().ApplyTo(baseDamage);
|
||||
float skullCount = 20f;
|
||||
float skullCount = 14f + (rageBoostOne ? 4f : 0f) + (rageBoostTwo ? 4f : 0f) + (rageBoostThree ? 4f : 0f);
|
||||
float skullSpeed = 12f;
|
||||
for (float i = 0; i < skullCount; i += 1f)
|
||||
{
|
||||
|
||||
@@ -14,8 +14,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
public new string LocalizationCategory => "Items.Weapons.Melee";
|
||||
// Weapon attribute constants
|
||||
public static readonly int BaseDamage = 670;
|
||||
public static readonly float GiantSkullDamageMultiplier = 1.5f;
|
||||
public static readonly int BaseDamage = 690;
|
||||
public static readonly float GiantSkullDamageMultiplier = 1.7f;
|
||||
|
||||
// Weapon projectile attribute constants
|
||||
public static readonly int SearchDistance = 1450;
|
||||
@@ -73,7 +73,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
player.Calamity().gaelSwipes++;
|
||||
if (player.statLife <= player.statLifeMax2 * 0.5f)
|
||||
{
|
||||
for (int i = 0; i < 170; i++)
|
||||
for (int i = 0; i < 120; i++)
|
||||
{
|
||||
float r = (float)Math.Sqrt(Main.rand.NextDouble());
|
||||
float t = Main.rand.NextFloat() * MathHelper.TwoPi;
|
||||
@@ -127,7 +127,7 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
case 1:
|
||||
int largeSkullDmg = (int)(damage * GiantSkullDamageMultiplier);
|
||||
int projectileIndex = Projectile.NewProjectile(source, position, velocity * 0.6f, type, largeSkullDmg, knockback, player.whoAmI, ai1: 1f);
|
||||
Main.projectile[projectileIndex].scale = 1.75f;
|
||||
Main.projectile[projectileIndex].scale = 2f;
|
||||
break;
|
||||
}
|
||||
return false;
|
||||
|
||||
@@ -81,7 +81,6 @@ Frogfish: Well-camouflaged and prepared to strike at any moment, Frogfish show t
|
||||
Horse: After the Brimstone Elemental became dormant, the forgemasters of Azafure used clockwork and crystal to bind the powers of an elemental to a mechanical body. While formidable, it seems the dream of creating a true replacement for an elemental died unfulfilled with Azafure itself.
|
||||
IceClasper: Though their exact origins are an enigma, what is known is that these ethereal beings seek to stamp out any and all sources of warmth that exist in their home. Due to this fact, and taking into account the fossil record, many speculate that ice claspers may have played a vital role in the tundra's creation.
|
||||
ImpiousImmolator: An idol carved in the image of Her, it is lit ablaze with the crafter's lifeforce. After all, what weight does one's life hold when one wishes to see the world wreathed in Her holy flames?
|
||||
LavaSlimeNoLavaDrop: Due to the heat of the underworld, these slimes have taken on the properties of lava. Slaying them is difficult and dangerous.
|
||||
MantisShrimp: Though a variety of answers are given when one asks adventurers about dangerous creatures, few aside from sailors will mention the small yet mighty Mantis Shrimp. Their strikes are so swift that the energy generated from them heats the water to temperatures rivaling the magma of Azafure.
|
||||
OverloadedSoldier: A body given life again, overflowing with the souls of warriors that perished during the Crusade who were unable to find peace. Their ravenous hunger for battle has been reignited due to sensing godly essences in the land once more.
|
||||
PerennialSlime: These slimes have seized a small amount of the Goddess of Life's essence. Despite her reimprisonment in the deepest depths of the Abyss, the tendrils of her influence now stretch far into the world beyond.
|
||||
|
||||
@@ -1,17 +1,6 @@
|
||||
using System;
|
||||
using System.IO;
|
||||
using CalamityMod.DataStructures;
|
||||
using CalamityMod.Events;
|
||||
using CalamityMod.Items.Placeables.Banners;
|
||||
using CalamityMod.Items.Placeables.Ores;
|
||||
using CalamityMod.NPCs.TownNPCs;
|
||||
using CalamityMod.World;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.Bestiary;
|
||||
using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.ModLoader.Utilities;
|
||||
|
||||
namespace CalamityMod.NPCs.NormalNPCs
|
||||
{
|
||||
@@ -22,8 +11,7 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
Main.npcFrameCount[NPC.type] = 2;
|
||||
NPCID.Sets.NPCBestiaryDrawModifiers bestiaryData = new NPCID.Sets.NPCBestiaryDrawModifiers() { Hide = true };
|
||||
NPCID.Sets.NPCBestiaryDrawOffset.Add(Type, bestiaryData);
|
||||
this.HideFromBestiary();
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -49,7 +37,9 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
NPC.lifeMax = 25;
|
||||
NPC.value = 25f;
|
||||
}
|
||||
|
||||
//Banner = NPCID.LavaSlime;
|
||||
//BannerItem = ItemID.LavaSlimeBanner;
|
||||
|
||||
NPC.Calamity().VulnerableToCold = true;
|
||||
NPC.Calamity().VulnerableToSickness = false;
|
||||
NPC.Calamity().VulnerableToHeat = false;
|
||||
@@ -60,15 +50,6 @@ namespace CalamityMod.NPCs.NormalNPCs
|
||||
CalamityGlobalNPC.AdjustMasterModeStatScaling(NPC);
|
||||
}
|
||||
|
||||
public override void SetBestiary(BestiaryDatabase database, BestiaryEntry bestiaryEntry)
|
||||
{
|
||||
bestiaryEntry.Info.AddRange(new IBestiaryInfoElement[]
|
||||
{
|
||||
BestiaryDatabaseNPCsPopulator.CommonTags.SpawnConditions.Biomes.TheUnderworld,
|
||||
new FlavorTextBestiaryInfoElement("Mods.CalamityMod.Bestiary.LavaSlimeNoLavaDrop")
|
||||
});
|
||||
}
|
||||
|
||||
public override void HitEffect(NPC.HitInfo hit)
|
||||
{
|
||||
if (NPC.life > 0)
|
||||
|
||||
@@ -105,8 +105,8 @@ namespace CalamityMod.Projectiles.Melee
|
||||
if (Projectile.ai[1] == 1f)
|
||||
{
|
||||
Projectile.penetrate = -1;
|
||||
Projectile.velocity *= 1.05f;
|
||||
Projectile.alpha += 1;
|
||||
Projectile.damage = (int)Math.Ceiling(Projectile.damage * 0.992); //Exponentially decays to a factor of 0.12896 of the original damage
|
||||
if (Projectile.alpha >= 255)
|
||||
{
|
||||
Projectile.Kill();
|
||||
|
||||
@@ -60,10 +60,10 @@ namespace CalamityMod.Projectiles.Melee
|
||||
Projectile.tileCollide = target != null; //Go through walls if we're hunting an NPC
|
||||
if (target != null)
|
||||
{
|
||||
float homingSpeed = Projectile.velocity.Length() * (Projectile.Distance(target.Center) < 220f ? 1.3f : 1f);
|
||||
float homingSpeed = Projectile.velocity.Length() * (Projectile.Distance(target.Center) < 420f ? 1.3f : 1.1f);
|
||||
Vector2 idealVelocity = Projectile.SafeDirectionTo(target.Center) * homingSpeed;
|
||||
|
||||
float inertia = Projectile.Distance(target.Center) < 240f ? 4f : 13f;
|
||||
float inertia = Projectile.Distance(target.Center) < 420f ? 4f : 8f;
|
||||
Projectile.velocity = (Projectile.velocity * inertia + idealVelocity) / (inertia + 1f);
|
||||
Projectile.velocity.Normalize();
|
||||
Projectile.velocity *= homingSpeed;
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.NPCs.Abyss;
|
||||
using CalamityMod.NPCs.Astral;
|
||||
using CalamityMod.NPCs.NormalNPCs;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using static Terraria.ModLoader.ModContent;
|
||||
@@ -13,6 +14,7 @@ namespace CalamityMod.Systems
|
||||
// Manually register variants post-initiailization
|
||||
ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<AstralachneaGround>()] = ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<AstralachneaWall>()];
|
||||
ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<DevilFishAlt>()] = ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<DevilFish>()];
|
||||
ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCType<LavaSlimeNoLavaDrop>()] = ContentSamples.NpcBestiaryCreditIdsByNpcNetIds[NPCID.LavaSlime];
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user