Merge branch '1.4' into umbrella-touchups

This commit is contained in:
ben-tk committed 2022-10-06 11:09:08 -04:00
commit cdbbd1a965
392 files changed
+384 -351

No files matched your search

+22 -22
View File
@@ -117,12 +117,12 @@ namespace CalamityMod.CalPlayer
}
// Hearts
Asset<Texture2D> bOrange = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/HeartBloodOrange");
Asset<Texture2D> mFruit = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/HeartMiracleFruit");
Asset<Texture2D> eBerry = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/HeartElderberry");
Asset<Texture2D> dFruit = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/HeartDragonfruit");
Asset<Texture2D> heartOriginal = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/HeartOriginal"); // Life crystal
Asset<Texture2D> heartOriginal2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/HeartOriginal2"); // Life fruit
Asset<Texture2D> bOrange = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/HeartBloodOrange");
Asset<Texture2D> mFruit = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/HeartMiracleFruit");
Asset<Texture2D> eBerry = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/HeartElderberry");
Asset<Texture2D> dFruit = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/HeartDragonfruit");
Asset<Texture2D> heartOriginal = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/HeartOriginal"); // Life crystal
Asset<Texture2D> heartOriginal2 = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/HeartOriginal2"); // Life fruit
int totalFruit =
(calamityPlayer.mFruit ? 1 : 0) +
@@ -636,22 +636,22 @@ namespace CalamityMod.CalPlayer
};
List<Texture2D> tankTextures = new List<Texture2D>()
{
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_FlurrystormCannon").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_BlightSpewer").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_HavocsBreath").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_SparkSpreader").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_HalleysInferno").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_CleansingBlaze").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_ElementalEruption").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_TheEmpyrean").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_Meowthrower").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_OverloadedBlaster").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_TerraFlameburster").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_Photoviscerator").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_Shadethrower").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_BloodBoiler").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_PristineFury").Value,
ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Tanks/Backpack_AuroraBlazer").Value
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_FlurrystormCannon").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_BlightSpewer").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_HavocsBreath").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_SparkSpreader").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_HalleysInferno").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_CleansingBlaze").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_ElementalEruption").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_TheEmpyrean").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_Meowthrower").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_OverloadedBlaster").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_TerraFlameburster").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_Photoviscerator").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_Shadethrower").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_BloodBoiler").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_PristineFury").Value,
ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/Backpack_AuroraBlazer").Value
};
if (tankItems.Contains(item.type) || drawPlayer.Calamity().plaguebringerCarapace)
{
+9 -9
View File
@@ -2001,14 +2001,14 @@ namespace CalamityMod.CalPlayer
// New textures
if (Main.netMode != NetmodeID.Server && Player.whoAmI == Main.myPlayer)
{
Asset<Texture2D> rain3 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Rain3");
Asset<Texture2D> rainOriginal = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/RainOriginal");
Asset<Texture2D> cometShard = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/ManaCometShard");
Asset<Texture2D> etherealCore = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/ManaEtherealCore");
Asset<Texture2D> phantomHeart = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/ManaPhantomHeart");
Asset<Texture2D> manaOriginal = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/UI/HealthMana/ManaOriginal");
Asset<Texture2D> carpetAuric = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AuricCarpet");
Asset<Texture2D> carpetOriginal = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Carpet");
Asset<Texture2D> sulphSeaRain = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaReplacements/RainSulphSea");
Asset<Texture2D> rainOriginal = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaReplacements/RainOriginal");
Asset<Texture2D> cometShard = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/ManaCometShard");
Asset<Texture2D> etherealCore = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/ManaEtherealCore");
Asset<Texture2D> phantomHeart = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/ManaPhantomHeart");
Asset<Texture2D> manaOriginal = ModContent.Request<Texture2D>("CalamityMod/UI/HealthManaTextures/ManaOriginal");
Asset<Texture2D> carpetAuric = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaReplacements/AuricCarpet");
Asset<Texture2D> carpetOriginal = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VanillaReplacements/Carpet");
int totalManaBoost =
(pHeart ? 1 : 0) +
@@ -2033,7 +2033,7 @@ namespace CalamityMod.CalPlayer
if (Main.bloodMoon)
TextureAssets.Rain = rainOriginal;
else if (Main.raining && ZoneSulphur)
TextureAssets.Rain = rain3;
TextureAssets.Rain = sulphSeaRain;
else
TextureAssets.Rain = rainOriginal;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 384 B

After

Width:  |  Height:  |  Size: 384 B

+1 -1
View File
@@ -14,7 +14,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
protected override void Draw(ref PlayerDrawSet drawInfo)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AmidiasBubble").Value;
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/AmidiasBubble").Value;
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X);
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
drawInfo.DrawDataCache.Add(new DrawData(texture, new Vector2(drawX, drawY), null, Color.White, 0f, texture.Size() * 0.5f, 1f, SpriteEffects.None, 0));
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

+1 -1
View File
@@ -56,7 +56,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
switch (drawPlayer.Calamity().andromedaState)
{
case AndromedaPlayerState.SpecialAttack:
Texture2D dashTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AndromedaBolt").Value;
Texture2D dashTexture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/AndromedaBolt").Value;
Rectangle frame = dashTexture.Frame(1, 4, 0, robotEntityInstance.RightIconCooldown / 4 % 4);
DrawData drawData = new DrawData(dashTexture,
File renamed without changes.

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 3.8 KiB

@@ -14,7 +14,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
protected override void Draw(ref PlayerDrawSet drawInfo)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/IceShield").Value;
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/IceShield").Value;
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X);
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
drawInfo.DrawDataCache.Add(new DrawData(texture, new Vector2(drawX, drawY), null, Color.White, 0f, texture.Size() * 0.5f, 1f, SpriteEffects.None, 0));
File renamed without changes.

Before

Width:  |  Height:  |  Size: 422 B

After

Width:  |  Height:  |  Size: 422 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 405 B

After

Width:  |  Height:  |  Size: 405 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 475 B

After

Width:  |  Height:  |  Size: 475 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 418 B

After

Width:  |  Height:  |  Size: 418 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 489 B

After

Width:  |  Height:  |  Size: 489 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 363 B

After

Width:  |  Height:  |  Size: 363 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 491 B

After

Width:  |  Height:  |  Size: 491 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 459 B

After

Width:  |  Height:  |  Size: 459 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 412 B

After

Width:  |  Height:  |  Size: 412 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 672 B

After

Width:  |  Height:  |  Size: 672 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 539 B

After

Width:  |  Height:  |  Size: 539 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 445 B

After

Width:  |  Height:  |  Size: 445 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 312 B

After

Width:  |  Height:  |  Size: 312 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 528 B

After

Width:  |  Height:  |  Size: 528 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

@@ -19,7 +19,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
protected override void Draw(ref PlayerDrawSet drawInfo)
{
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ColdDivinityBody").Value;
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/ColdDivinityBody").Value;
int drawX = (int)(drawInfo.Center.X - Main.screenPosition.X);
int drawY = (int)(drawInfo.Center.Y - Main.screenPosition.Y);
Player drawPlayer = drawInfo.drawPlayer;
@@ -20,7 +20,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
protected override void Draw(ref PlayerDrawSet drawInfo)
{
Player drawPlayer = drawInfo.drawPlayer;
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/VoidConcentrationAura").Value;
Texture2D tex = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/VoidConcentrationAura").Value;
Vector2 drawPos = drawInfo.Center - Main.screenPosition + new Vector2(0f, drawPlayer.gfxOffY);
drawPos.Y -= 9f;
+6 -6
View File
@@ -31,27 +31,27 @@ namespace CalamityMod.CalPlayer.DrawLayers
{
case 0:
default:
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/RedGem").Value;
gemTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Typeless/GemTechRedGem").Value;
gemType = GemTechArmorGemType.Rogue;
break;
case 1:
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/YellowGem").Value;
gemTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Typeless/GemTechYellowGem").Value;
gemType = GemTechArmorGemType.Melee;
break;
case 2:
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/GreenGem").Value;
gemTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Typeless/GemTechGreenGem").Value;
gemType = GemTechArmorGemType.Ranged;
break;
case 3:
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/BlueGem").Value;
gemTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Typeless/GemTechBlueGem").Value;
gemType = GemTechArmorGemType.Summoner;
break;
case 4:
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/PurpleGem").Value;
gemTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Typeless/GemTechPurpleGem").Value;
gemType = GemTechArmorGemType.Magic;
break;
case 5:
gemTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GemTechArmor/PinkGem").Value;
gemTexture = ModContent.Request<Texture2D>("CalamityMod/Projectiles/Typeless/GemTechPinkGem").Value;
gemType = GemTechArmorGemType.Base;
pulseFactor = 2.5f;
break;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 987 B

After

Width:  |  Height:  |  Size: 987 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.6 KiB

After

Width:  |  Height:  |  Size: 4.6 KiB

@@ -21,7 +21,7 @@ namespace CalamityMod.CalPlayer.DrawLayers
protected override void Draw(ref PlayerDrawSet drawInfo)
{
Player drawPlayer = drawInfo.drawPlayer;
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/RoverAccShield").Value;
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/CalPlayer/DrawLayers/RoverDriveShield").Value;
Vector2 drawPos = drawPlayer.Center - Main.screenPosition + new Vector2(0f, drawPlayer.gfxOffY);
Rectangle frame = texture.Frame(1, 11, 0, drawPlayer.Calamity().roverFrame);
Color color = Color.White * 0.625f;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

+2
View File
@@ -15,6 +15,8 @@ using Terraria.Localization;
using Terraria.ModLoader;
using Terraria.ModLoader.Config;
using CalamityMod.Items.PermanentBoosters;
using CalamityMod.UI.Rippers;
using CalamityMod.UI.DraedonsArsenal;
namespace CalamityMod
{
+4 -2
View File
@@ -63,6 +63,8 @@ using CalamityMod.Schematics;
using CalamityMod.Skies;
using CalamityMod.UI;
using CalamityMod.UI.CalamitasEnchants;
using CalamityMod.UI.DraedonsArsenal;
using CalamityMod.UI.Rippers;
using CalamityMod.Waters;
using CalamityMod.World;
using Microsoft.Xna.Framework;
@@ -220,7 +222,7 @@ namespace CalamityMod
ForegroundDrawing.ForegroundManager.Load();
// Wikithis support
WeakReferenceSupport.WikiThisSupport();
WeakReferenceSupport.WikiThisSupport();
}
CooldownRegistry.Load();
@@ -245,7 +247,7 @@ namespace CalamityMod
private void LoadClient()
{
AstralSky = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AstralSky", AssetRequestMode.ImmediateLoad).Value;
AstralSky = ModContent.Request<Texture2D>("CalamityMod/Skies/AstralSky", AssetRequestMode.ImmediateLoad).Value;
// TODO -- Sky shaders should probably be loaded in a ModSystem
Filters.Scene["CalamityMod:DevourerofGodsHead"] = new Filter(new DoGScreenShaderData("FilterMiniTower").UseColor(0.4f, 0.1f, 1.0f).UseOpacity(0.5f), EffectPriority.VeryHigh);
+1
View File
@@ -37,6 +37,7 @@ using Terraria.ModLoader;
using Terraria.Audio;
using Terraria.DataStructures;
using Terraria.GameContent.Events;
using CalamityMod.Skies;
namespace CalamityMod.Events
{
Binary file not shown.

Before

Width:  |  Height:  |  Size: 67 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 150 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 233 KiB

After

Width:  |  Height:  |  Size: 233 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 91 KiB

After

Width:  |  Height:  |  Size: 91 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 64 KiB

After

Width:  |  Height:  |  Size: 64 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 101 B

After

Width:  |  Height:  |  Size: 101 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 187 KiB

After

Width:  |  Height:  |  Size: 187 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 525 B

After

Width:  |  Height:  |  Size: 525 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 409 B

After

Width:  |  Height:  |  Size: 409 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 70 KiB

After

Width:  |  Height:  |  Size: 70 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 332 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 17 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 7.1 KiB

After

Width:  |  Height:  |  Size: 7.1 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 20 KiB

After

Width:  |  Height:  |  Size: 20 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 51 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 11 KiB

After

Width:  |  Height:  |  Size: 11 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 347 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.4 KiB

After

Width:  |  Height:  |  Size: 1.4 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 413 B

After

Width:  |  Height:  |  Size: 413 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 602 B

After

Width:  |  Height:  |  Size: 602 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 616 B

+1 -1
View File
@@ -131,7 +131,7 @@ namespace CalamityMod.Items.Accessories
playerFound = true;
Player myPlayer = Main.player[i];
if (NoiseTex == null)
NoiseTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/TechyNoise");
NoiseTex = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/TechyNoise");
Texture2D tex = NoiseTex.Value;
Vector2 pos = myPlayer.MountedCenter + myPlayer.gfxOffY * Vector2.UnitY - Main.screenPosition;
+2 -1
View File
@@ -1,5 +1,6 @@
using CalamityMod.Rarities;
using CalamityMod.Rarities;
using CalamityMod.UI;
using CalamityMod.UI.DraedonLogs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
+2 -1
View File
@@ -1,5 +1,6 @@
using CalamityMod.Rarities;
using CalamityMod.Rarities;
using CalamityMod.UI;
using CalamityMod.UI.DraedonLogs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
+2 -1
View File
@@ -1,5 +1,6 @@
using CalamityMod.Rarities;
using CalamityMod.Rarities;
using CalamityMod.UI;
using CalamityMod.UI.DraedonLogs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
+2 -1
View File
@@ -1,5 +1,6 @@
using CalamityMod.Rarities;
using CalamityMod.Rarities;
using CalamityMod.UI;
using CalamityMod.UI.DraedonLogs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
+2 -1
View File
@@ -1,5 +1,6 @@
using CalamityMod.Rarities;
using CalamityMod.Rarities;
using CalamityMod.UI;
using CalamityMod.UI.DraedonLogs;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
@@ -11,6 +11,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.UI.DraedonLogs;
namespace CalamityMod.Items.DraedonMisc
{
+1 -1
View File
@@ -11,7 +11,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.UI.DraedonLogs;
namespace CalamityMod.Items.DraedonMisc
{
@@ -11,6 +11,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.UI.DraedonLogs;
namespace CalamityMod.Items.DraedonMisc
{
@@ -11,6 +11,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.UI.DraedonLogs;
namespace CalamityMod.Items.DraedonMisc
{
@@ -11,6 +11,7 @@ using Microsoft.Xna.Framework;
using Terraria;
using Terraria.ID;
using Terraria.ModLoader;
using CalamityMod.UI.DraedonLogs;
namespace CalamityMod.Items.DraedonMisc
{
+1 -1
View File
@@ -13,7 +13,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", AssetRequestMode.ImmediateLoad).Value), "DyePass").
UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTextureArmor(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/SharpNoise", AssetRequestMode.ImmediateLoad));
UseColor(new Color(170, 96, 60)).UseSecondaryColor(new Color(226, 196, 106)).SetShaderTextureArmor(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GreyscaleGradients/SharpNoise", AssetRequestMode.ImmediateLoad));
public override void SafeSetStaticDefaults()
{
SacrificeTotal = 3;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 559 B

After

Width:  |  Height:  |  Size: 559 B

+2 -2
View File
@@ -132,9 +132,9 @@ namespace CalamityMod.Items.Mounts.Minecarts
if (segment is null)
break;
Texture2D segmentTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/DoGCartBody").Value;
Texture2D segmentTexture = ModContent.Request<Texture2D>("CalamityMod/Items/Mounts/Minecarts/DoGCartBody").Value;
if (i == SegmentCount - 1)
segmentTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/DoGCartTail").Value;
segmentTexture = ModContent.Request<Texture2D>("CalamityMod/Items/Mounts/Minecarts/DoGCartTail").Value;
Vector2 segmentDrawPosition = rotationAdjustedPositions[i] + CalculateSegmentWaveOffset(i, drawPlayer);
Color segmentColor = Lighting.GetColor((int)segmentDrawPosition.X / 16, (int)segmentDrawPosition.Y / 16);
File renamed without changes.

Before

Width:  |  Height:  |  Size: 574 B

After

Width:  |  Height:  |  Size: 574 B

+2 -2
View File
@@ -68,8 +68,8 @@ namespace CalamityMod.Items.Tools
{
float barScale = 1f;
var barBG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
var barFG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
var barBG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f;
Rectangle frameCrop = new Rectangle(0, 0, (int)(storedScrap / (float)TilesPerScrap * barFG.Width), barFG.Height);
+2 -2
View File
@@ -224,8 +224,8 @@ namespace CalamityMod.Items.Tools
float barScale = 1.3f;
var barBG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
var barFG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
var barBG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f;
Rectangle frameCrop = new Rectangle(0, 0, (int)(usesLeft / (float)maxUses * barFG.Width), barFG.Height);
+2 -2
View File
@@ -217,8 +217,8 @@ namespace CalamityMod.Items.Weapons.Melee
if (Charge <= 0)
return;
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
float barScale = 3f;
+2 -2
View File
@@ -232,8 +232,8 @@ namespace CalamityMod.Items.Weapons.Melee
if (Charge <= 0)
return;
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
float barScale = 3.5f;
+2 -2
View File
@@ -135,8 +135,8 @@ namespace CalamityMod.Items.Weapons.Melee
float barScale = 1.3f;
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f;
Rectangle frameCrop = new Rectangle(0, 0, (int)(Charge / 10f * barFG.Width), barFG.Height);
+2 -2
View File
@@ -165,8 +165,8 @@ namespace CalamityMod.Items.Weapons.Melee
if (Charge <= 0)
return;
var barBG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
var barBG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
float barScale = 1.5f;
+2 -2
View File
@@ -173,8 +173,8 @@ namespace CalamityMod.Items.Weapons.Ranged
{
float barScale = 1.2f;
var barBG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarBack").Value;
var barFG = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/GenericBarFront").Value;
var barBG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarBack").Value;
var barFG = ModContent.Request<Texture2D>("CalamityMod/UI/MiscTextures/GenericBarFront").Value;
Vector2 drawPos = position + Vector2.UnitY * (frame.Height - 2 + 6f) * scale + Vector2.UnitX * (frame.Width - barBG.Width * barScale) * scale * 0.5f;
Rectangle frameCrop = new Rectangle(0, 0, (int)(storedScrap / (float)ShotsPerScrap * barFG.Width), barFG.Height);
+1 -1
View File
@@ -30,7 +30,7 @@ namespace CalamityMod.Items.Weapons.Summon
{
if (Main.netMode != NetmodeID.Server)
{
EquipLoader.AddEquipTexture(Mod, "CalamityMod/ExtraTextures/AndromedaWithout_Head", EquipType.Head, name: "HeadlessEquipTexture");
EquipLoader.AddEquipTexture(Mod, "CalamityMod/CalPlayer/DrawLayers/AndromedaWithout_Head", EquipType.Head, name: "HeadlessEquipTexture");
}
}
+1 -1
View File
@@ -122,7 +122,7 @@ namespace CalamityMod.MainMenu
Cinders.RemoveAll(c => c.Time >= c.Lifetime);
// Draw cinders.
Texture2D cinderTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/CalamitasCinder").Value;
Texture2D cinderTexture = ModContent.Request<Texture2D>("CalamityMod/Skies/CalamitasCinder").Value;
for (int i = 0; i < Cinders.Count; i++)
{
Vector2 drawPosition = Cinders[i].Center;
+3 -3
View File
@@ -798,7 +798,7 @@ namespace CalamityMod
int summon = ItemType<CausticTear>();
List<int> collection = new List<int>() { ItemType<RadiatingCrystal>() };
string instructions = $"Use a [i:{summon}] or wait for the invasion to occur naturally after the Eye of Cthulhu is defeated.";
string iconTexture = "CalamityMod/ExtraTextures/UI/AcidRainIcon";
string iconTexture = "CalamityMod/UI/MiscTextures/AcidRainIcon";
Action<SpriteBatch, Rectangle, Color> portrait = (SpriteBatch sb, Rectangle rect, Color color) => {
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Events/AcidRainT1_BossChecklist").Value;
float scale = 1.3f;
@@ -816,7 +816,7 @@ namespace CalamityMod
List<int> summons = new List<int>() { ItemType<CausticTear>() };
List<int> collection = new List<int>() { ItemType<RadiatingCrystal>() };
string instructions = $"Use a [i:{ItemType<CausticTear>()}] or wait for the invasion to occur naturally after the Aquatic Scourge is defeated";
string iconTexture = "CalamityMod/ExtraTextures/UI/AcidRainIcon";
string iconTexture = "CalamityMod/UI/MiscTextures/AcidRainIcon";
Action<SpriteBatch, Rectangle, Color> portrait = (SpriteBatch sb, Rectangle rect, Color color) => {
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Events/AcidRainT2_BossChecklist").Value;
float scale = 0.9f;
@@ -833,7 +833,7 @@ namespace CalamityMod
List<int> summons = new List<int>() { ItemType<CausticTear>() };
List<int> collection = new List<int>() { ItemType<RadiatingCrystal>() };
string instructions = $"Use a [i:{ItemType<CausticTear>()}] or wait for the invasion to occur naturally after the Polterghast is defeated";
string iconTexture = "CalamityMod/ExtraTextures/UI/AcidRainIcon";
string iconTexture = "CalamityMod/UI/MiscTextures/AcidRainIcon";
Action<SpriteBatch, Rectangle, Color> portrait = (SpriteBatch sb, Rectangle rect, Color color) => {
Texture2D texture = ModContent.Request<Texture2D>("CalamityMod/Events/AcidRainT3_BossChecklist").Value;
float scale = 0.9f;
+1 -1
View File
@@ -714,7 +714,7 @@ namespace CalamityMod.NPCs
float drawPosY = npcHeight + npc.gfxOffY + 36f;
// Texture animation variables
Texture2D texture = Request<Texture2D>("CalamityMod/ExtraTextures/UI/NPCAlertDisplay").Value;
Texture2D texture = Request<Texture2D>("CalamityMod/UI/MiscTextures/NPCAlertDisplay").Value;
shopAlertAnimTimer++;
if (shopAlertAnimTimer >= 6)
{
+1 -1
View File
@@ -1488,7 +1488,7 @@ namespace CalamityMod.NPCs.ExoMechs.Apollo
RibbonTrail = new PrimitiveTrail(RibbonTrailWidthFunction, RibbonTrailColorFunction);
// Prepare the flame trail shader with its map texture.
GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/ScarletDevilStreak"));
GameShaders.Misc["CalamityMod:ImpFlameTrail"].SetShaderTexture(ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/Trails/ScarletDevilStreak"));
int numAfterimages = ChargeComboFlash > 0f ? 0 : 5;
Texture2D texture = TextureAssets.Npc[NPC.type].Value;
File renamed without changes.

Before

Width:  |  Height:  |  Size: 715 B

After

Width:  |  Height:  |  Size: 715 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 4.7 KiB

After

Width:  |  Height:  |  Size: 4.7 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 1.3 KiB

After

Width:  |  Height:  |  Size: 1.3 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 460 B

After

Width:  |  Height:  |  Size: 460 B

File renamed without changes.

Before

Width:  |  Height:  |  Size: 7.9 KiB

After

Width:  |  Height:  |  Size: 7.9 KiB

File renamed without changes.

Before

Width:  |  Height:  |  Size: 2.4 KiB

After

Width:  |  Height:  |  Size: 2.4 KiB

+14 -14
View File
@@ -1116,14 +1116,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
// Draw back arms.
if (backArm)
{
Texture2D shoulderTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresArmTopShoulder").Value;
Texture2D armTexture1 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresArmTopPart1").Value;
Texture2D armSegmentTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresArmTopSegment").Value;
Texture2D armTexture2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresArmTopPart2").Value;
Texture2D shoulderTexture = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresArmTopShoulder").Value;
Texture2D armTexture1 = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresArmTopPart1").Value;
Texture2D armSegmentTexture = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresArmTopSegment").Value;
Texture2D armTexture2 = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresArmTopPart2").Value;
Texture2D shoulderGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresArmTopShoulderGlow").Value;
Texture2D armSegmentGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresArmTopSegmentGlow").Value;
Texture2D armGlowmask2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresArmTopPart2Glow").Value;
Texture2D shoulderGlowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresArmTopShoulderGlow").Value;
Texture2D armSegmentGlowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresArmTopSegmentGlow").Value;
Texture2D armGlowmask2 = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresArmTopPart2Glow").Value;
Vector2 shoulderDrawPosition = NPC.Center + NPC.scale * new Vector2(direction * 176f, -100f);
Vector2 arm1DrawPosition = shoulderDrawPosition + NPC.scale * new Vector2(direction * (shoulderTexture.Width + 16f), 10f);
@@ -1185,14 +1185,14 @@ namespace CalamityMod.NPCs.ExoMechs.Ares
}
else
{
Texture2D shoulderTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresBottomArmShoulder").Value;
Texture2D connectorTexture = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresBottomArmConnector").Value;
Texture2D armTexture1 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresBottomArmPart1").Value;
Texture2D armTexture2 = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresBottomArmPart2").Value;
Texture2D shoulderTexture = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresBottomArmShoulder").Value;
Texture2D connectorTexture = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresBottomArmConnector").Value;
Texture2D armTexture1 = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresBottomArmPart1").Value;
Texture2D armTexture2 = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresBottomArmPart2").Value;
Texture2D shoulderGlowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresBottomArmShoulderGlow").Value;
Texture2D armTexture1Glowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresBottomArmPart1Glow").Value;
Texture2D armTexture2Glowmask = ModContent.Request<Texture2D>("CalamityMod/ExtraTextures/AresBottomArmPart2Glow").Value;
Texture2D shoulderGlowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresBottomArmShoulderGlow").Value;
Texture2D armTexture1Glowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresBottomArmPart1Glow").Value;
Texture2D armTexture2Glowmask = ModContent.Request<Texture2D>("CalamityMod/NPCs/ExoMechs/Ares/AresBottomArmPart2Glow").Value;
Vector2 shoulderDrawPosition = NPC.Center + NPC.scale * new Vector2(direction * 110f, -54f);
Vector2 connectorDrawPosition = shoulderDrawPosition + NPC.scale * new Vector2(direction * 20f, 32f);
File renamed without changes.

Before

Width:  |  Height:  |  Size: 899 B

After

Width:  |  Height:  |  Size: 899 B

Loaded 100 of 392 files, more files were not shown because too many files have changed in this diff. Show more