Preparations for post-load stuff
This commit is contained in:
1 parent
8c15a33c31
commit
cc4cd1865c
296 files changed
+806
-784
No files matched your search
@@ -4,14 +4,14 @@ namespace CalamityMod.Backgrounds
|
||||
{
|
||||
public class AstralDesertSurfaceBGStyle : ModSurfaceBackgroundStyle
|
||||
{
|
||||
public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralDesertSurfaceFar");
|
||||
public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralDesertSurfaceFar");
|
||||
|
||||
public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralDesertSurfaceMiddle");
|
||||
public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralDesertSurfaceMiddle");
|
||||
|
||||
public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b)
|
||||
{
|
||||
b -= 75f;
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralDesertSurfaceClose");
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralDesertSurfaceClose");
|
||||
}
|
||||
|
||||
public override void ModifyFarFades(float[] fades, float transitionSpeed)
|
||||
|
||||
@@ -5,11 +5,11 @@ namespace CalamityMod.Backgrounds
|
||||
{
|
||||
public class AstralSnowSurfaceBGStyle : ModSurfaceBackgroundStyle
|
||||
{
|
||||
public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSnowSurfaceFar");
|
||||
public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSnowSurfaceFar");
|
||||
|
||||
public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSnowSurfaceMiddle");
|
||||
public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSnowSurfaceMiddle");
|
||||
|
||||
public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b) => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSurfaceClose");
|
||||
public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b) => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSurfaceClose");
|
||||
|
||||
public override void ModifyFarFades(float[] fades, float transitionSpeed)
|
||||
{
|
||||
|
||||
@@ -4,14 +4,14 @@ namespace CalamityMod.Backgrounds
|
||||
{
|
||||
public class AstralSurfaceBGStyle : ModSurfaceBackgroundStyle
|
||||
{
|
||||
public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSurfaceFar");
|
||||
public override int ChooseFarTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSurfaceFar");
|
||||
|
||||
public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSurfaceMiddle");
|
||||
public override int ChooseMiddleTexture() => BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSurfaceMiddle");
|
||||
|
||||
public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b)
|
||||
{
|
||||
scale *= 0.75f;
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralSurfaceClose");
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralSurfaceClose");
|
||||
}
|
||||
|
||||
public override void ModifyFarFades(float[] fades, float transitionSpeed)
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Backgrounds
|
||||
public override void FillTextureArray(int[] textureSlots)
|
||||
{
|
||||
for (int i = 0; i <= 3; i++)
|
||||
textureSlots[i] = BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/AstralUG" + i.ToString());
|
||||
textureSlots[i] = BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/AstralUG" + i.ToString());
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.Backgrounds
|
||||
public override int ChooseCloseTexture(ref float scale, ref double parallax, ref float a, ref float b)
|
||||
{
|
||||
b -= 250f;
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("Backgrounds/SulphurSeaSurfaceClose");
|
||||
return BackgroundTextureLoader.GetBackgroundSlot("CalamityMod/Backgrounds/SulphurSeaSurfaceClose");
|
||||
}
|
||||
|
||||
public override void ModifyFarFades(float[] fades, float transitionSpeed)
|
||||
|
||||
@@ -11,8 +11,8 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
public class AbovegroundAstralBiome : ModBiome
|
||||
{
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<AstralWater>("CalamityMod/Waters/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<AstralSurfaceBGStyle>("CalamityMod/Backgrounds/AstralSurfaceBGStyle");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/AstralSurfaceBGStyle");
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space;
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
public class AbovegroundAstralDesertBiome : ModBiome
|
||||
{
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<AstralWater>("CalamityMod/Waters/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<AstralDesertSurfaceBGStyle>("CalamityMod/Backgrounds/AstralDesertSurfaceBGStyle");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/AstralDesertSurfaceBGStyle");
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space;
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
public class AbovegroundAstralSnowBiome : ModBiome
|
||||
{
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<AstralWater>("CalamityMod/Waters/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<AstralSnowSurfaceBGStyle>("CalamityMod/Backgrounds/AstralSnowSurfaceBGStyle");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AstralWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/AstralSnowSurfaceBGStyle");
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("Astral") ?? MusicID.Space;
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.BiomeManagers
|
||||
abyssPosX;
|
||||
}
|
||||
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<AbyssWater>("CalamityMod/Waters/AbyssWater");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AbyssWater");
|
||||
|
||||
public override int Music
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.BiomeManagers
|
||||
}
|
||||
}
|
||||
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<AbyssWater>("CalamityMod/Waters/AbyssWater");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AbyssWater");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.BiomeManagers
|
||||
}
|
||||
}
|
||||
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<AbyssWater>("CalamityMod/Waters/AbyssWater");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AbyssWater");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@ namespace CalamityMod.BiomeManagers
|
||||
}
|
||||
}
|
||||
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<AbyssWater>("CalamityMod/Waters/AbyssWater");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AbyssWater");
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
|
||||
@@ -12,8 +12,8 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
public class SulphurousSeaBiome : ModBiome
|
||||
{
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<SulphuricWater>("CalamityMod/Waters/SulphuricWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<SulphurSeaSurfaceBGStyle>("CalamityMod/Backgrounds/SulphurSeaSurfaceBGStyle");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/SulphuricWater");
|
||||
public override ModSurfaceBackgroundStyle SurfaceBackgroundStyle => ModContent.Find<ModSurfaceBackgroundStyle>("CalamityMod/SulphurSeaSurfaceBGStyle");
|
||||
|
||||
public override int Music
|
||||
{
|
||||
|
||||
@@ -8,7 +8,7 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
public class SunkenSeaBiome : ModBiome
|
||||
{
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<SunkenSeaWater>("CalamityMod/Waters/SunkenSeaWater");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/SunkenSeaWater");
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("SunkenSea") ?? MusicID.Temple;
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ namespace CalamityMod.BiomeManagers
|
||||
{
|
||||
public class UndergroundAstralBiome : ModBiome
|
||||
{
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<AstralWater>("CalamityMod/Waters/AstralWater");
|
||||
public override ModUndergroundBackgroundStyle UndergroundBackgroundStyle => ModContent.Find<AstralUndergroundBGStyle>("CalamityMod/Backgrounds/AstralUndergroundBGStyle");
|
||||
public override ModWaterStyle WaterStyle => ModContent.Find<ModWaterStyle>("CalamityMod/AstralWater");
|
||||
public override ModUndergroundBackgroundStyle UndergroundBackgroundStyle => ModContent.Find<ModUndergroundBackgroundStyle>("CalamityMod/AstralUndergroundBGStyle");
|
||||
|
||||
public override int Music => CalamityMod.Instance.GetMusicFromMusicMod("AstralUnderground") ?? MusicID.Space;
|
||||
|
||||
|
||||
@@ -1329,7 +1329,7 @@ namespace CalamityMod.CalPlayer
|
||||
tag["moveSpeedStat"] = moveSpeedStat;
|
||||
tag["defenseDamage"] = totalDefenseDamage;
|
||||
tag["defenseDamageRecoveryFrames"] = defenseDamageRecoveryFrames;
|
||||
tag["totalSpeedrunTicks"] = totalDefenseDamageRecoveryFrames;
|
||||
tag["totalSpeedrunTicks"] = totalTicks;
|
||||
tag["lastSplitType"] = lastSplitType;
|
||||
tag["lastSplitTicks"] = lastSplit.Ticks;
|
||||
tag["cooldowns"] = cooldownsTag;
|
||||
|
||||
@@ -50,6 +50,9 @@ namespace CalamityMod.CalPlayer
|
||||
|
||||
public override void ModifyDrawLayerOrdering(IDictionary<PlayerDrawLayer, PlayerDrawLayer.Position> positions)
|
||||
{
|
||||
if (Player is null)
|
||||
return;
|
||||
|
||||
// Remove shoe drawing effects if special legs are meant to be drawn.
|
||||
if (CalamityLists.legOverrideList.Contains(Player.legs))
|
||||
positions.Remove(PlayerDrawLayers.Leggings);
|
||||
|
||||
+28
-13
@@ -153,17 +153,26 @@ namespace CalamityMod
|
||||
ILChanges.Load();
|
||||
|
||||
// If any of these mods aren't loaded, it will simply keep them as null.
|
||||
musicMod = ModLoader.GetMod("CalamityModMusic");
|
||||
ancientsAwakened = ModLoader.GetMod("AAMod");
|
||||
bossChecklist = ModLoader.GetMod("BossChecklist");
|
||||
census = ModLoader.GetMod("Census");
|
||||
crouchMod = ModLoader.GetMod("CrouchMod");
|
||||
fargos = ModLoader.GetMod("Fargowiltas");
|
||||
redemption = ModLoader.GetMod("Redemption");
|
||||
soa = ModLoader.GetMod("SacredTools");
|
||||
summonersAssociation = ModLoader.GetMod("SummonersAssociation");
|
||||
thorium = ModLoader.GetMod("ThoriumMod");
|
||||
varia = ModLoader.GetMod("Varia");
|
||||
musicMod = null;
|
||||
ancientsAwakened = null;
|
||||
census = null;
|
||||
crouchMod = null;
|
||||
fargos = null;
|
||||
redemption = null;
|
||||
soa = null;
|
||||
summonersAssociation = null;
|
||||
thorium = null;
|
||||
varia = null;
|
||||
ModLoader.TryGetMod("CalamityModMusic", out musicMod);
|
||||
ModLoader.TryGetMod("BossChecklist", out bossChecklist);
|
||||
ModLoader.TryGetMod("Census", out census);
|
||||
ModLoader.TryGetMod("CrouchMod", out crouchMod);
|
||||
ModLoader.TryGetMod("Fargowiltas", out fargos);
|
||||
ModLoader.TryGetMod("Redemption", out redemption);
|
||||
ModLoader.TryGetMod("SacredTools", out soa);
|
||||
ModLoader.TryGetMod("SummonersAssociation", out summonersAssociation);
|
||||
ModLoader.TryGetMod("ThoriumMod", out thorium);
|
||||
ModLoader.TryGetMod("Varia", out varia);
|
||||
|
||||
// Initialize the EnemyStats struct as early as it is safe to do so
|
||||
NPCStats.Load();
|
||||
@@ -248,8 +257,14 @@ namespace CalamityMod
|
||||
SkyManager.Instance["CalamityMod:StormWeaverFlash"] = new StormWeaverFlashSky();
|
||||
|
||||
CalamityShaders.LoadShaders();
|
||||
FusableParticleManager.LoadParticleRenderSets();
|
||||
Main.OnPreDraw += PrepareRenderTargets;
|
||||
|
||||
// This must be done separately from immediate loading, as loading is now multithreaded.
|
||||
// However, render targets and certain other graphical objects can only be created on the main thread.
|
||||
Main.QueueMainThreadAction(() =>
|
||||
{
|
||||
FusableParticleManager.LoadParticleRenderSets();
|
||||
Main.OnPreDraw += PrepareRenderTargets;
|
||||
});
|
||||
|
||||
RipperUI.Load();
|
||||
AstralArcanumUI.Load(this);
|
||||
|
||||
@@ -171,7 +171,7 @@ namespace CalamityMod.Cooldowns
|
||||
}
|
||||
else
|
||||
{
|
||||
GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].SetShaderTexture(ModContent.Request<Texture2D>(ChargeBarBackTexture).Value);
|
||||
GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].SetShaderTexture(ModContent.Request<Texture2D>(ChargeBarBackTexture));
|
||||
GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].UseOpacity(opacity);
|
||||
GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].UseSaturation(1 - instance.Completion);
|
||||
GameShaders.Misc["CalamityMod:CircularBarSpriteShader"].Apply();
|
||||
|
||||
@@ -80,7 +80,7 @@ namespace CalamityMod.Events
|
||||
return;
|
||||
|
||||
if (maxDepth >= 0 && minDepth < 0 && GetIntensity() > 0f)
|
||||
spriteBatch.Draw(TextureAssets.BlackTile.Value, new Rectangle(0, 0, Main.screenWidth, Main.screenHeight), GeneralColor * GetIntensity() * 0.5f);
|
||||
spriteBatch.Draw(TextureAssets.BlackTile.Value, new Rectangle(0, 0, Main.screenWidth * 2, Main.screenHeight * 2), GeneralColor * GetIntensity() * 0.5f);
|
||||
|
||||
Main.spriteBatch.End();
|
||||
Main.spriteBatch.Begin(SpriteSortMode.Immediate, BlendState.Additive);
|
||||
@@ -91,6 +91,7 @@ namespace CalamityMod.Events
|
||||
Texture2D whiteTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/XerocLight").Value;
|
||||
Vector2 screenCenter = new Vector2(Main.screenWidth, Main.screenHeight) * 0.5f;
|
||||
float fadeToWhite = Utils.GetLerpValue(110f, 140f, BossRushEvent.EndTimer, true);
|
||||
screenCenter += new Vector2(Main.screenWidth, Main.screenHeight) * (Main.GameViewMatrix.Zoom - Vector2.One) * 0.5f;
|
||||
fadeToWhite *= Utils.GetLerpValue(BossRushEvent.EndVisualEffectTime - 5f, BossRushEvent.EndVisualEffectTime - 25f, BossRushEvent.EndTimer, true);
|
||||
float backScale = MathHelper.Lerp(0.01f, 8f, fadeToWhite);
|
||||
Color backFadeColor = Color.White * fadeToWhite * 0.64f;
|
||||
@@ -105,6 +106,7 @@ namespace CalamityMod.Events
|
||||
if (maxDepth >= float.MaxValue && minDepth < float.MaxValue && (BossRushEvent.EndTimer < BossRushEvent.EndVisualEffectTime - 40f || ShouldDrawRegularly))
|
||||
{
|
||||
Vector2 screenCenter = Main.screenPosition + new Vector2(Main.screenWidth, Main.screenHeight) * 0.5f;
|
||||
screenCenter += new Vector2(Main.screenWidth, Main.screenHeight) * (Main.GameViewMatrix.Zoom - Vector2.One) * 0.5f;
|
||||
float scale = MathHelper.Lerp(0.8f, 0.9f, IncrementalInterest) + (float)Math.Sin(IdleTimer) * 0.01f;
|
||||
Vector2 drawWorldPosition = new Vector2(Main.LocalPlayer.Center.X, 1120f);
|
||||
Vector2 drawPosition = (drawWorldPosition - screenCenter) * 0.097f + screenCenter - Main.screenPosition - Vector2.UnitY * 100f;
|
||||
|
||||
@@ -54,7 +54,9 @@ namespace CalamityMod.ILEditing
|
||||
IL.Terraria.Main.DrawTiles += DrawCustomLava;
|
||||
IL.Terraria.GameContent.Liquid.LiquidRenderer.InternalDraw += DrawCustomLava2;
|
||||
IL.Terraria.Main.oldDrawWater += DrawCustomLava3;
|
||||
IL.Terraria.WaterfallManager.DrawWaterfall += DrawCustomLavafalls;
|
||||
|
||||
// TODO -- Revisit this. It's not an extremely important thing, but it'd be ideal to not just abandon it.
|
||||
// IL.Terraria.WaterfallManager.DrawWaterfall += DrawCustomLavafalls;
|
||||
On.Terraria.NPC.Collision_DecideFallThroughPlatforms += EnableCalamityBossPlatformCollision;
|
||||
IL.Terraria.Wiring.HitWireSingle += AddTwinklersToStatue;
|
||||
|
||||
|
||||
@@ -12,7 +12,9 @@ using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Mono.Cecil.Cil;
|
||||
using MonoMod.Cil;
|
||||
using ReLogic.Content;
|
||||
using System;
|
||||
using System.Reflection;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.GameContent;
|
||||
@@ -585,20 +587,21 @@ namespace CalamityMod.ILEditing
|
||||
|
||||
// Pass the texture in so that the method can ensure it is not messing around with non-lava textures.
|
||||
cursor.Emit(OpCodes.Ldloc, 13);
|
||||
cursor.Emit(OpCodes.Ldsfld, typeof(Main).GetField("liquidTexture"));
|
||||
cursor.Emit(OpCodes.Ldsfld, typeof(TextureAssets).GetField("Liquid"));
|
||||
cursor.Emit(OpCodes.Ldloc, 15);
|
||||
cursor.Emit(OpCodes.Ldelem_Ref);
|
||||
cursor.Emit(OpCodes.Call, typeof(Asset<Texture2D>).GetMethod("get_Value", BindingFlags.Public | BindingFlags.Instance));
|
||||
cursor.EmitDelegate<Func<Color, Texture2D, Color>>((initialColor, initialTexture) => SelectLavaColor(initialTexture, initialColor));
|
||||
cursor.Emit(OpCodes.Stloc, 13);
|
||||
|
||||
// Go back to the start and change textures as necessary.
|
||||
cursor.Index = 0;
|
||||
|
||||
while (cursor.TryGotoNext(c => c.MatchLdsfld<Main>("liquidTexture")))
|
||||
while (cursor.TryGotoNext(c => c.MatchLdsfld(typeof(TextureAssets).GetField("Liquid"))))
|
||||
{
|
||||
// While this may seem crazy, under no circumstances should there not be a load after exactly 3 instructions.
|
||||
// The order is load is texture array field -> load index -> load the reference to the texture at that index.
|
||||
cursor.Index += 3;
|
||||
// The order is load is texture array field -> load index -> load the reference to the texture at that index -> call Value.
|
||||
cursor.Index += 4;
|
||||
cursor.EmitDelegate<Func<Texture2D, Texture2D>>(initialTexture => SelectLavaTexture(initialTexture, true));
|
||||
}
|
||||
}
|
||||
@@ -616,14 +619,14 @@ namespace CalamityMod.ILEditing
|
||||
|
||||
// Determine the waterfall type. This happens after all the "If Lava do blahblahblah" color checks, meaning it will have the same
|
||||
// color properties as lava.
|
||||
cursor.Emit(OpCodes.Ldloc, 12);
|
||||
cursor.Emit(OpCodes.Ldloc, 13);
|
||||
cursor.EmitDelegate<Func<int, int>>(initialWaterfallStyle => CustomLavaManagement.SelectLavafallStyle(initialWaterfallStyle));
|
||||
cursor.Emit(OpCodes.Stloc, 12);
|
||||
cursor.Emit(OpCodes.Stloc, 13);
|
||||
|
||||
cursor.Emit(OpCodes.Ldloc, 12);
|
||||
cursor.Emit(OpCodes.Ldloc, 51);
|
||||
cursor.Emit(OpCodes.Ldloc, 13);
|
||||
cursor.Emit(OpCodes.Ldloc, 56);
|
||||
cursor.EmitDelegate<Func<int, Color, Color>>((initialWaterfallStyle, initialLavafallColor) => CustomLavaManagement.SelectLavafallColor(initialWaterfallStyle, initialLavafallColor));
|
||||
cursor.Emit(OpCodes.Stloc, 51);
|
||||
cursor.Emit(OpCodes.Stloc, 56);
|
||||
}
|
||||
#endregion Custom Lava Visuals
|
||||
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.AngelicAllianceHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y); ;
|
||||
string hotkey = CalamityKeybinds.AngelicAllianceHotKey.TooltipHotkeyString();
|
||||
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip4");
|
||||
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.AegisHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.AegisHotKey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip5");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -33,7 +33,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.AstralArcanumUIHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.AstralArcanumUIHotkey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip3");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.PlaguePackHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.PlaguePackHotKey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip3");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.AstralTeleportHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.AstralTeleportHotKey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.AegisHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.AegisHotKey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip5");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -29,7 +29,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.MomentumCapacitatorHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.MomentumCapacitatorHotkey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip0");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.PlaguePackHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.PlaguePackHotKey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -28,17 +28,23 @@ namespace CalamityMod.Items.Accessories
|
||||
* Projectiles transformed are ONLY affected by alldamage and summon damage bonuses, likewise the weapon's base damage/usetime is NOT taken into account.
|
||||
* You enrage below or at 50% hp.
|
||||
*/
|
||||
public override void Load()
|
||||
{
|
||||
if (Main.netMode == NetmodeID.Server)
|
||||
return;
|
||||
|
||||
Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Head, "CalamityMod/Items/Accessories/ProfanedSoulTransHead");
|
||||
Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Body, "CalamityMod/Items/Accessories/ProfanedSoulTransBody");
|
||||
Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Legs, "CalamityMod/Items/Accessories/ProfanedSoulTransLegs");
|
||||
Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Wings, "CalamityMod/Items/Accessories/Wings/ProfanedSoulTransWings");
|
||||
}
|
||||
|
||||
public override void SetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Profaned Soul Crystal");
|
||||
Tooltip.SetDefault("Transforms you into an emissary of the profaned goddess\n" +
|
||||
"This tooltip gets modified");
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(8, 4));
|
||||
|
||||
Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Head, "CalamityMod/Items/Accessories/ProfanedSoulTransHead");
|
||||
Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Body, "CalamityMod/Items/Accessories/ProfanedSoulTransBody");
|
||||
Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Legs, "CalamityMod/Items/Accessories/ProfanedSoulTransLegs");
|
||||
Mod.AddEquipTexture(new EquipTexture(), this, EquipType.Wings, "CalamityMod/Items/Accessories/Wings/ProfanedSoulTransWings");
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
|
||||
@@ -27,7 +27,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.SandCloakHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SandCloakHotkey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -31,7 +31,7 @@ namespace CalamityMod.Items.Accessories
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.SpectralVeilHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SpectralVeilHotKey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -6,6 +6,7 @@ using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -21,6 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 80\n" +
|
||||
"10% increased movement speed while wearing the Reaver Armor");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(80, 8f, 1.5f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -57,10 +59,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
for (int num67 = 0; num67 < num66; num67++)
|
||||
{
|
||||
int type = 6;
|
||||
if (player.head == 41)
|
||||
{
|
||||
int arg_58FD_0 = player.body;
|
||||
}
|
||||
float scale = 1.75f;
|
||||
int alpha = 100;
|
||||
float x = player.position.X + (float)(player.width / 2) + 16f;
|
||||
@@ -94,7 +92,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
}
|
||||
}
|
||||
}
|
||||
player.wingTimeMax = 80;
|
||||
player.noFallDmg = true;
|
||||
}
|
||||
|
||||
@@ -107,12 +104,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.125f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 8f;
|
||||
acceleration *= 1.5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -6,6 +6,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -27,6 +28,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Immunity to the On Fire! debuff\n" +
|
||||
"Temporary immunity to lava\n" +
|
||||
"Being hit for over 200 damage will make you immune for an extended period of time");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 12f, 3f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -64,7 +66,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.wingTimeMax = 250;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.elysianFire = !hideVisual;
|
||||
@@ -80,12 +81,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.15f; //0.135
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 12f;
|
||||
acceleration *= 3f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
@@ -16,6 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Acceleration multiplier: 3.0\n" +
|
||||
"Excellent vertical speed\n" +
|
||||
"Flight time: 361");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(361, 12f, 3f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -45,7 +48,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
}
|
||||
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
|
||||
}
|
||||
player.wingTimeMax = 361;
|
||||
player.noFallDmg = true;
|
||||
}
|
||||
|
||||
@@ -57,11 +59,5 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
maxAscentMultiplier = 3.25f; //3
|
||||
constantAscend = 0.15f; //0.135
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 12f;
|
||||
acceleration *= 3f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -6,6 +6,7 @@ using Terraria;
|
||||
using Terraria.ID;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -26,6 +27,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Water and lava walking\n" +
|
||||
"Immunity to the On Fire! debuff\n" +
|
||||
"Temporary immunity to lava");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 10.5f, 2.75f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -63,7 +65,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.wingTimeMax = 180;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.elysianFire = !hideVisual;
|
||||
@@ -79,12 +80,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.135f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 10.5f;
|
||||
acceleration *= 2.75f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
using CalamityMod.CalPlayer;
|
||||
using CalamityMod.CalPlayer;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -17,6 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Great vertical speed\n" +
|
||||
"Flight time: 240\n" +
|
||||
"Temporary immunity to lava and 10% increased movement speed");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(240, 9.5f, 2.7f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -34,7 +36,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
player.moveSpeed += 0.1f;
|
||||
player.lavaMax += 240;
|
||||
player.wingTimeMax = 240;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.elysianFire = true;
|
||||
if (hideVisual)
|
||||
@@ -51,11 +52,5 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
maxAscentMultiplier = 3f;
|
||||
constantAscend = 0.135f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 9.75f;
|
||||
acceleration *= 2.7f;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Materials;
|
||||
using CalamityMod.Items.Placeables;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -23,6 +24,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Good vertical speed\n" +
|
||||
"Flight time: 120\n" +
|
||||
"10% increased movement and jump speed while wearing the Astral Armor");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(120, 9f, 1.75f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -70,7 +72,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
|
||||
}
|
||||
}
|
||||
player.wingTimeMax = 120;
|
||||
player.noFallDmg = true;
|
||||
}
|
||||
|
||||
@@ -83,12 +84,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.13f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 9f;
|
||||
acceleration *= 1.75f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -25,6 +26,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Water and lava walking\n" +
|
||||
"Immunity to the On Fire! debuff\n" +
|
||||
"Temporary immunity to lava");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(140, 9f, 2.6f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -62,7 +64,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.fireWalk = true;
|
||||
player.lavaMax += 240;
|
||||
player.buffImmune[BuffID.OnFire] = true;
|
||||
player.wingTimeMax = 140;
|
||||
player.noFallDmg = true;
|
||||
modPlayer.IBoots = !hideVisual;
|
||||
modPlayer.sTracers = true;
|
||||
@@ -77,12 +78,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.125f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 9f;
|
||||
acceleration *= 2.5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -4,6 +4,7 @@ using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
using Terraria.Audio;
|
||||
using Terraria.DataStructures;
|
||||
|
||||
namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
@@ -21,6 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Flight time: 75\n" +
|
||||
"10% increased jump speed and allows constant jumping\n" +
|
||||
"Grants the player cloud, blizzard, and sandstorm mid-air jumps");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(75, 6.5f, 1f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -94,7 +96,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
player.autoJump = true;
|
||||
player.noFallDmg = true;
|
||||
player.jumpSpeedBoost += 0.5f;
|
||||
player.wingTimeMax = 75;
|
||||
}
|
||||
|
||||
public override void VerticalWingSpeeds(Player player, ref float ascentWhenFalling, ref float ascentWhenRising, ref float maxCanAscendMultiplier, ref float maxAscentMultiplier, ref float constantAscend)
|
||||
@@ -106,11 +107,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.125f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 6.5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -4,6 +4,7 @@ using CalamityMod.Items.Placeables;
|
||||
using CalamityMod.Tiles.Furniture.CraftingStations;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -22,6 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Excellent vertical speed\n" +
|
||||
"Flight time: 270\n" +
|
||||
"The Silva revive heals you to half health while wearing the Silva armor");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(270, 11f, 2.8f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -58,7 +60,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
}
|
||||
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
|
||||
}
|
||||
player.wingTimeMax = 270;
|
||||
player.noFallDmg = true;
|
||||
}
|
||||
|
||||
@@ -71,12 +72,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.14f; //0.135
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 11f;
|
||||
acceleration *= 2.8f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
using CalamityMod.Items.Armor;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -17,6 +18,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 80\n" +
|
||||
"10% increased jump speed while wearing the Aerospec armor");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(80, 6.5f, 1f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -37,7 +39,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
{
|
||||
player.jumpSpeedBoost += 0.5f;
|
||||
}
|
||||
player.wingTimeMax = 80;
|
||||
player.noFallDmg = true;
|
||||
}
|
||||
|
||||
|
||||
@@ -23,6 +23,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"All melee attacks and projectiles inflict frostburn\n" +
|
||||
"Icicles rain down as you fly");
|
||||
Main.RegisterItemAnimation(Item.type, new DrawAnimationVertical(6, 3));
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(120, 6.25f, 1f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -50,17 +51,11 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.1f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 6.25f;
|
||||
}
|
||||
|
||||
public override void UpdateAccessory(Player player, bool hideVisual)
|
||||
{
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.cryogenSoul = true;
|
||||
player.GetDamage<GenericDamageClass>() += 0.07f;
|
||||
player.wingTimeMax = 120;
|
||||
player.noFallDmg = true;
|
||||
if (modPlayer.icicleCooldown <= 0)
|
||||
{
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,6 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Average vertical speed\n" +
|
||||
"Flight time: 150\n" +
|
||||
"5% increased damage and critical strike chance while wearing the Daedalus Armor");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(150, 7.5f, 1f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -58,7 +60,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
}
|
||||
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
|
||||
}
|
||||
player.wingTimeMax = 150;
|
||||
player.noFallDmg = true;
|
||||
}
|
||||
|
||||
@@ -71,11 +72,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.1f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 7.5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -3,6 +3,7 @@ using CalamityMod.Items.Armor;
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -21,6 +22,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Great vertical speed\n" +
|
||||
"Flight time: 250\n" +
|
||||
"+15 defense and +2 life regen while wearing the Tarragon Armor");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(250, 9.5f, 2.5f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -60,7 +62,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
}
|
||||
Main.dust[num60].shader = GameShaders.Armor.GetSecondaryShader(player.cWings, player);
|
||||
}
|
||||
player.wingTimeMax = 250;
|
||||
player.noFallDmg = true;
|
||||
}
|
||||
|
||||
@@ -73,12 +74,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.135f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 9.5f;
|
||||
acceleration *= 2.5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Terraria;
|
||||
using Terraria.DataStructures;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
@@ -20,6 +21,7 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
"Great vertical speed\n" +
|
||||
"Flight time: 180\n" +
|
||||
"5% increased rogue damage and critical strike chance while wearing the Empyrean Armor");
|
||||
ArmorIDs.Wing.Sets.Stats[Item.wingSlot] = new WingStats(180, 9f, 2.5f);
|
||||
}
|
||||
|
||||
public override void SetDefaults()
|
||||
@@ -68,12 +70,6 @@ namespace CalamityMod.Items.Accessories.Wings
|
||||
constantAscend = 0.135f;
|
||||
}
|
||||
|
||||
public override void HorizontalWingSpeeds(Player player, ref float speed, ref float acceleration)
|
||||
{
|
||||
speed = 9f;
|
||||
acceleration *= 2.5f;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
CreateRecipe().
|
||||
|
||||
@@ -41,7 +41,7 @@ namespace CalamityMod.Items.Armor
|
||||
CalamityPlayer modPlayer = player.Calamity();
|
||||
modPlayer.bloodflareSet = true;
|
||||
modPlayer.bloodflareRanged = true;
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "Greatly increases life regen\n" +
|
||||
"Enemies below 50% life drop a heart when struck\n" +
|
||||
"This effect has a 5 second cooldown\n" +
|
||||
|
||||
@@ -79,7 +79,7 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.brimflameSet = true;
|
||||
player.GetDamage(DamageClass.Magic) += 0.15f;
|
||||
player.GetCritChance(DamageClass.Magic) += 15;
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "Grants an additional 15% increased magic damage and crit\n" +
|
||||
"Press " + hotkey + " to trigger a brimflame frenzy effect\n" +
|
||||
"While under this effect, your damage is significantly boosted\n" +
|
||||
|
||||
@@ -43,7 +43,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "100% increased minion damage and +10 max minions\n" +
|
||||
"All attacks inflict the demon flame debuff\n" +
|
||||
"Shadowbeams and demon scythes will fire down when you are hit\n" +
|
||||
|
||||
@@ -44,7 +44,7 @@ namespace CalamityMod.Items.Armor
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
int stormMana = (int)(manaCost * player.manaCost);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "Press " + hotkey + " to call an ancient storm to the cursor location\n" +
|
||||
"The ancient storm costs " + stormMana + " mana and benefits from both summon and rogue bonuses\n" +
|
||||
"Rogue stealth strikes spawn homing eaters on enemy hits\n" +
|
||||
|
||||
@@ -63,7 +63,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "Increases armor penetration by 15\n" +
|
||||
"10% increased damage and critical strike chance and +2 max minions\n" +
|
||||
"Short-ranged tentacles heal you by sucking enemy life\n" +
|
||||
|
||||
@@ -39,7 +39,7 @@ namespace CalamityMod.Items.Armor
|
||||
|
||||
public override void UpdateArmorSet(Player player)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "25% reduced ammo usage and 5% increased flight time\n" +
|
||||
"Enemies receive 10% more damage from ranged projectiles when afflicted by the Plague\n" +
|
||||
"Getting hit causes plague cinders to rain from above\n" +
|
||||
|
||||
@@ -47,7 +47,7 @@ namespace CalamityMod.Items.Armor
|
||||
player.statManaMax2 += 40;
|
||||
player.manaCost *= 0.85f;
|
||||
player.manaRegenBonus += 8;
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.TooltipHotkeyString();
|
||||
player.setBonus = "+40 max mana and 15% reduced mana cost\n" +
|
||||
"Increased mana regeneration rate\n" +
|
||||
"Press " + hotkey + " to unleash a barrage of death lasers at the cursor for the next 5 seconds\n" +
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace CalamityMod.Items.Armor
|
||||
modPlayer.tarraSet = true;
|
||||
modPlayer.tarraMelee = true;
|
||||
player.aggro += 800;
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.SetBonusHotKey.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" +
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace CalamityMod.Items
|
||||
private static void BossBagLoot(Player player, int itemID)
|
||||
{
|
||||
// Give a chance for Laudanum, Stress Pills and Heart of Darkness from every boss bag
|
||||
DropHelper.DropRevBagAccessories(player);
|
||||
//DropHelper.DropRevBagAccessories(player);
|
||||
|
||||
switch (itemID)
|
||||
{
|
||||
|
||||
@@ -52,8 +52,8 @@ namespace CalamityMod.Items.DifficultyItems
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string rageKey = CalamityKeybinds.RageHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string adrenKey = CalamityKeybinds.AdrenalineHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string rageKey = CalamityKeybinds.RageHotKey.TooltipHotkeyString();
|
||||
string adrenKey = CalamityKeybinds.AdrenalineHotKey.TooltipHotkeyString();
|
||||
|
||||
TooltipLine lineRage = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1");
|
||||
if (lineRage != null)
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
public class AuricDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/AuricDyeShader").Value), "DyePass").
|
||||
UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SharpNoise").Value);
|
||||
UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTextureArmor(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SharpNoise"));
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Auric Dye");
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
public class BlueCosmicFlameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader").Value), "DyePass").
|
||||
UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(52, 212, 229)).UseImage("Images/Misc/Noise").UseSaturation(0f);
|
||||
UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(52, 212, 229)).UseImage("Images/Misc/noise").UseSaturation(0f);
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Blue Cosmic Flame Dye");
|
||||
|
||||
@@ -11,7 +11,7 @@ namespace CalamityMod.Items.Dyes
|
||||
public class PinkCosmicFlameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader").Value), "DyePass").
|
||||
UseColor(new Color(255, 115, 221)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/Noise").UseSaturation(0f);
|
||||
UseColor(new Color(255, 115, 221)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/noise").UseSaturation(0f);
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Pink Cosmic Flame Dye");
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Dyes
|
||||
public class SwirlingCosmicFlameDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(Mod.Assets.Request<Effect>("Effects/Dyes/CosmicFlameShader").Value), "DyePass").
|
||||
UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/Noise").UseSaturation(1f);
|
||||
UseColor(new Color(52, 212, 229)).UseSecondaryColor(new Color(255, 115, 221)).UseImage("Images/Misc/noise").UseSaturation(1f);
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Swirling Cosmic Flame Dye");
|
||||
|
||||
@@ -32,8 +32,8 @@ namespace CalamityMod.Items.Mounts
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.ExoChairSpeedupHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey2 = CalamityKeybinds.ExoChairSlowdownHotkey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.ExoChairSpeedupHotkey.TooltipHotkeyString();
|
||||
string hotkey2 = CalamityKeybinds.ExoChairSlowdownHotkey.TooltipHotkeyString();
|
||||
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1");
|
||||
TooltipLine line2 = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip2");
|
||||
|
||||
@@ -34,7 +34,7 @@ namespace CalamityMod.Items
|
||||
|
||||
public override void ModifyTooltips(List<TooltipLine> list)
|
||||
{
|
||||
string hotkey = CalamityKeybinds.NormalityRelocatorHotKey.GetAssignedKeys().Aggregate((x, y) => x + ", " + y);
|
||||
string hotkey = CalamityKeybinds.NormalityRelocatorHotKey.TooltipHotkeyString();
|
||||
TooltipLine line = list.FirstOrDefault(x => x.Mod == "Terraria" && x.Name == "Tooltip1");
|
||||
|
||||
if (line != null)
|
||||
|
||||
@@ -93,7 +93,7 @@ namespace CalamityMod.Items.Weapons.Magic
|
||||
AddIngredient<DepthCells>(30).
|
||||
AddIngredient<Lumenite>(10).
|
||||
AddIngredient<Tenebris>(10).
|
||||
AddTile(TileID.MythrilAnvil)
|
||||
AddTile(TileID.MythrilAnvil).
|
||||
Register();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -110,7 +110,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
var clone = base.Clone(item);
|
||||
|
||||
(clone as ArkoftheAncients).Charge = (item.ModItem as ArkoftheAncients).Charge;
|
||||
if (clone is ArkoftheAncients a && item.ModItem is ArkoftheAncients a2)
|
||||
a.Charge = a2.Charge;
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
@@ -188,7 +188,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
var clone = base.Clone(item);
|
||||
|
||||
(clone as ArkoftheCosmos).Charge = (item.ModItem as ArkoftheCosmos).Charge;
|
||||
if (clone is ArkoftheCosmos a && item.ModItem is ArkoftheCosmos a2)
|
||||
a.Charge = a2.Charge;
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
@@ -185,7 +185,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
var clone = base.Clone(item);
|
||||
|
||||
(clone as ArkoftheElements).Charge = (item.ModItem as ArkoftheElements).Charge;
|
||||
if (clone is ArkoftheElements a && item.ModItem is ArkoftheElements a2)
|
||||
a.Charge = a2.Charge;
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
@@ -151,8 +151,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
if (Main.mouseItem.type == ItemType<BiomeBlade>())
|
||||
item.ModItem.HoldItem(Main.player[Main.myPlayer]);
|
||||
|
||||
(clone as BiomeBlade).mainAttunement = (item.ModItem as BiomeBlade).mainAttunement;
|
||||
(clone as BiomeBlade).secondaryAttunement = (item.ModItem as BiomeBlade).secondaryAttunement;
|
||||
if (clone is BiomeBlade a && item.ModItem is BiomeBlade a2)
|
||||
{
|
||||
a.mainAttunement = a2.mainAttunement;
|
||||
a.secondaryAttunement = a2.secondaryAttunement;
|
||||
}
|
||||
|
||||
//As funny as a Broken Broken Biome Blade would be, its also quite funny to make it turn into that. This is only done for a new instance of the item since the goblin tinkerer changes prevent it from happening through reforging
|
||||
if (clone.Item.prefix == PrefixID.Broken)
|
||||
|
||||
@@ -165,7 +165,9 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
var clone = base.Clone(item);
|
||||
if (Main.mouseItem.type == ItemType<FourSeasonsGalaxia>())
|
||||
item.ModItem.HoldItem(Main.player[Main.myPlayer]);
|
||||
(clone as FourSeasonsGalaxia).mainAttunement = (item.ModItem as FourSeasonsGalaxia).mainAttunement;
|
||||
|
||||
if (clone is FourSeasonsGalaxia a && item.ModItem is FourSeasonsGalaxia a2)
|
||||
a.mainAttunement = a2.mainAttunement;
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
@@ -212,8 +212,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
var clone = base.Clone(item);
|
||||
if (Main.mouseItem.type == ItemType<OmegaBiomeBlade>())
|
||||
item.ModItem.HoldItem(Main.player[Main.myPlayer]);
|
||||
(clone as OmegaBiomeBlade).mainAttunement = (item.ModItem as OmegaBiomeBlade).mainAttunement;
|
||||
(clone as OmegaBiomeBlade).secondaryAttunement = (item.ModItem as OmegaBiomeBlade).secondaryAttunement;
|
||||
if (clone is OmegaBiomeBlade a && item.ModItem is OmegaBiomeBlade a2)
|
||||
{
|
||||
a.mainAttunement = a2.mainAttunement;
|
||||
a.secondaryAttunement = a2.secondaryAttunement;
|
||||
}
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
@@ -143,7 +143,8 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
{
|
||||
var clone = base.Clone(item);
|
||||
|
||||
(clone as TrueArkoftheAncients).Charge = (item.ModItem as TrueArkoftheAncients).Charge;
|
||||
if (clone is TrueArkoftheAncients a && item.ModItem is TrueArkoftheAncients a2)
|
||||
a.Charge = a2.Charge;
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
@@ -179,8 +179,11 @@ namespace CalamityMod.Items.Weapons.Melee
|
||||
var clone = base.Clone(item);
|
||||
if (Main.mouseItem.type == ItemType<TrueBiomeBlade>())
|
||||
item.ModItem.HoldItem(Main.player[Main.myPlayer]);
|
||||
(clone as TrueBiomeBlade).mainAttunement = (item.ModItem as TrueBiomeBlade).mainAttunement;
|
||||
(clone as TrueBiomeBlade).secondaryAttunement = (item.ModItem as TrueBiomeBlade).secondaryAttunement;
|
||||
if (clone is TrueBiomeBlade a && item.ModItem is TrueBiomeBlade a2)
|
||||
{
|
||||
a.mainAttunement = a2.mainAttunement;
|
||||
a.secondaryAttunement = a2.secondaryAttunement;
|
||||
}
|
||||
|
||||
return clone;
|
||||
}
|
||||
|
||||
@@ -33,23 +33,23 @@ namespace CalamityMod.Items.Weapons.Rogue
|
||||
public override int ChoosePrefix(UnifiedRandom rand)
|
||||
{
|
||||
WeightedRandom<string> newPrefix = new WeightedRandom<string>();
|
||||
newPrefix.Add("CalamityMod/Prefixes/PointyWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/SharpWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/FeatheredWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/SleekWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/HeftyWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/MightyWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/GloriousWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/SerratedWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/ViciousWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/LethalWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/FlawlessWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/RadicalWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/BluntWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/FlimsyWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/UnbalancedWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/Prefixes/AtrociousWeaponPrefix", 1);
|
||||
return ModContent.Find<RogueWeaponPrefix>(newPrefix.Get()).Type;
|
||||
newPrefix.Add("CalamityMod/PointyWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/SharpWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/FeatheredWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/SleekWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/HeftyWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/MightyWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/GloriousWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/SerratedWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/ViciousWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/LethalWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/FlawlessWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/RadicalWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/BluntWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/FlimsyWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/UnbalancedWeaponPrefix", 1);
|
||||
newPrefix.Add("CalamityMod/AtrociousWeaponPrefix", 1);
|
||||
return ModContent.Find<ModPrefix>(newPrefix.Get()).Type;
|
||||
}
|
||||
|
||||
public override bool PreReforge()
|
||||
|
||||
@@ -227,7 +227,7 @@ namespace CalamityMod.Localization
|
||||
Load();
|
||||
foreach (string[] localization in _localizations)
|
||||
{
|
||||
ModTranslation text = LocalizationLoader.CreateTranslation(localization[0]);
|
||||
ModTranslation text = LocalizationLoader.CreateTranslation($"Mods.{CalamityMod.Instance.Name}.{localization[0]}");
|
||||
text.SetDefault(localization[1]);
|
||||
LocalizationLoader.AddTranslation(text);
|
||||
}
|
||||
|
||||
@@ -205,7 +205,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
float drawPositionX = Main.npc[(int)NPC.ai[2]].Center.X - center.X;
|
||||
float drawPositionY = Main.npc[(int)NPC.ai[2]].Center.Y - center.Y;
|
||||
float rotation = (float)Math.Atan2((double)drawPositionY, (double)drawPositionX) - 1.57f;
|
||||
bool draw = true;
|
||||
bool draw = !NPC.IsABestiaryIconDummy;
|
||||
while (draw)
|
||||
{
|
||||
float totalDrawDistance = (float)Math.Sqrt((double)(drawPositionX * drawPositionX + drawPositionY * drawPositionY));
|
||||
@@ -260,10 +260,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/BobbitWorm").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/BobbitWorm2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/BobbitWorm3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/BobbitWorm4").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("BobbitWorm").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("BobbitWorm2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("BobbitWorm3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("BobbitWorm4").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -562,10 +562,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/ColossalSquid").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/ColossalSquid2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/ColossalSquid3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/ColossalSquid4").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("ColossalSquid").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("ColossalSquid2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("ColossalSquid3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("ColossalSquid4").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
for (int i = 1; i < 4; i++)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/DevilFishMask" + i).Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("DevilFishMask" + i).Type, 1f);
|
||||
}
|
||||
}
|
||||
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/DevilMaskBreak"), (int)NPC.position.X, (int)NPC.position.Y);
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
{
|
||||
for (int i = 1; i < 4; i++)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/DevilFishMask" + i + (i == 3 ? "Alt" : "")).Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("DevilFishMask" + i + (i == 3 ? "Alt" : "")).Type, 1f);
|
||||
}
|
||||
}
|
||||
SoundEngine.PlaySound(SoundLoader.GetLegacySoundSlot(Mod, "Sounds/Item/DevilMaskBreak"), (int)NPC.position.X, (int)NPC.position.Y);
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Gores/Wyrm2").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Wyrm2").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Gores/Wyrm3").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Wyrm3").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -486,7 +486,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.AddIf(EidolonWyrmHeadHuge.CanMinionsDropThings, ModContent.ItemType<Voidstone>(), 30, 40);
|
||||
npcLoot.AddIf(EidolonWyrmHeadHuge.CanMinionsDropThings, ModContent.ItemType<Voidstone>(), 1, 30, 40);
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedPolterghast && EidolonWyrmHeadHuge.CanMinionsDropThings(), ModContent.ItemType<Voidstone>(), 3);
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedPolterghast && EidolonWyrmHeadHuge.CanMinionsDropThings(), ModContent.ItemType<EidolicWail>(), 3);
|
||||
npcLoot.AddIf(() => DownedBossSystem.downedPolterghast && EidolonWyrmHeadHuge.CanMinionsDropThings(), ModContent.ItemType<StardustStaff>(), 3);
|
||||
@@ -509,7 +509,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/Wyrm").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Wyrm").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -149,7 +149,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Gores/Wyrm4").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Wyrm4").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -261,10 +261,10 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/GiantSquid").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/GiantSquid2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/GiantSquid3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/GiantSquid4").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("GiantSquid").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("GiantSquid2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("GiantSquid3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("GiantSquid4").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,8 +158,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Gores/GulperEel2").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Gores/GulperEel3").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("GulperEel2").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("GulperEel3").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,8 +158,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Gores/GulperEel2").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Gores/GulperEel3").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("GulperEel2").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("GulperEel3").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -363,7 +363,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/GulperEel").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("GulperEel").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -158,7 +158,7 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("Gores/GulperEel4").Type, 1f);
|
||||
Gore.NewGore(NPC.Center, NPC.velocity, Mod.Find<ModGore>("GulperEel4").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -132,9 +132,9 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/Laserfish").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/Laserfish2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/Laserfish3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Laserfish").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Laserfish2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Laserfish3").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -137,8 +137,8 @@ namespace CalamityMod.NPCs.Abyss
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/ViperFish").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/ViperFish2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("ViperFish").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("ViperFish2").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -165,9 +165,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/AcidEelGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/AcidEelGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/AcidEelGore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("AcidEelGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("AcidEelGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("AcidEelGore3").Type, NPC.scale);
|
||||
}
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hitDirection, -1f, 0, default, 1f);
|
||||
|
||||
@@ -100,9 +100,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
SoundEngine.PlaySound(SoundID.DD2_ExplosiveTrapExplode, NPC.Center);
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("Gores/AcidRain/CragmawMireP1Gore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("Gores/AcidRain/CragmawMireP1Gore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("Gores/AcidRain/CragmawMireP1Gore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("CragmawMireP1Gore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("CragmawMireP1Gore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("CragmawMireP1Gore3").Type, NPC.scale);
|
||||
}
|
||||
HasMadeShellBreakGore = true;
|
||||
}
|
||||
@@ -474,9 +474,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("Gores/AcidRain/CragmawMireP2Gore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("Gores/AcidRain/CragmawMireP2Gore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("Gores/AcidRain/CragmawMireP2Gore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("CragmawMireP2Gore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("CragmawMireP2Gore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, -Vector2.UnitY.RotatedByRandom(0.4f) * 4f, Mod.Find<ModGore>("CragmawMireP2Gore3").Type, NPC.scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -152,9 +152,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/FlakCrab").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/FlakCrab2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/FlakCrab3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab3").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -213,9 +213,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/FlakCrab").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/FlakCrab2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/FlakCrab3").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("FlakCrab3").Type, 1f);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -178,8 +178,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hitDirection, -1f, 0, default, 1f);
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/GammaSlimeGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/GammaSlimeGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("GammaSlimeGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("GammaSlimeGore2").Type, NPC.scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -100,8 +100,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
}
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/IrradiatedSlime").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/IrradiatedSlime2").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("IrradiatedSlime").Type, 1f);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("IrradiatedSlime2").Type, 1f);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -419,7 +419,7 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
public override void ModifyNPCLoot(NPCLoot npcLoot)
|
||||
{
|
||||
npcLoot.Add(ItemID.SharkFin, 2, 4);
|
||||
npcLoot.Add(ItemID.SharkFin, 1, 2, 4);
|
||||
npcLoot.Add(ModContent.ItemType<SulphuricAcidCannon>(), 3);
|
||||
}
|
||||
|
||||
@@ -435,9 +435,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/Mauler").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Mauler").Type, NPC.scale);
|
||||
for (int i = 2; i <= 5; i++)
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>($"Gores/Mauler{i}").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>($"Mauler{i}").Type, NPC.scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -141,10 +141,10 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/NuclearToadGore1").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/NuclearToadGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/NuclearToadGore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/NuclearToadGore4").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("NuclearToadGore1").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("NuclearToadGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("NuclearToadGore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("NuclearToadGore4").Type, NPC.scale);
|
||||
}
|
||||
for (int i = 0; i < 25; i++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, Main.rand.NextFloat(-2f, 2f), -1f, 0, default, 1f);
|
||||
|
||||
@@ -209,8 +209,8 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/OrthoceraGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/OrthoceraGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("OrthoceraGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("OrthoceraGore2").Type, NPC.scale);
|
||||
}
|
||||
for (int k = 0; k < 10; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, DustID.Blood, hitDirection, -1f, 0, default, 1f);
|
||||
|
||||
@@ -173,9 +173,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/SkyfinGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/SkyfinGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/SkyfinGore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("SkyfinGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("SkyfinGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("SkyfinGore3").Type, NPC.scale);
|
||||
}
|
||||
for (int k = 0; k < 20; k++)
|
||||
Dust.NewDust(NPC.position, NPC.width, NPC.height, (int)CalamityDusts.SulfurousSeaAcid, hitDirection, -1f, 0, default, 1f);
|
||||
|
||||
@@ -217,9 +217,9 @@ namespace CalamityMod.NPCs.AcidRain
|
||||
{
|
||||
if (Main.netMode != NetmodeID.Server)
|
||||
{
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/SulfurousSkaterGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/SulfurousSkaterGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("Gores/AcidRain/SulfurousSkaterGore3").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore2").Type, NPC.scale);
|
||||
Gore.NewGore(NPC.position, NPC.velocity, Mod.Find<ModGore>("SulfurousSkaterGore3").Type, NPC.scale);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loaded 100 of 296 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user