More dye changes
This commit is contained in:
1 parent
2bce08c68a
commit
c4f8058652
11 files changed
+41
-2
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,38 @@
|
||||
using CalamityMod.Items.Materials;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ElementalDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(mod.GetEffect("Effects/Dyes/ElementalDyeShader")), "DyePass").UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
DisplayName.SetDefault("Elemental Dye");
|
||||
}
|
||||
|
||||
public override void SafeSetDefaults()
|
||||
{
|
||||
item.rare = 10;
|
||||
item.Calamity().customRarity = CalamityRarity.Turquoise;
|
||||
item.value = CalamityGlobalItem.RarityTurquoiseBuyPrice;
|
||||
}
|
||||
|
||||
public override void AddRecipes()
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.SolarDye);
|
||||
recipe.AddIngredient(ItemID.VortexDye);
|
||||
recipe.AddIngredient(ItemID.StardustDye);
|
||||
recipe.AddIngredient(ItemID.NebulaDye);
|
||||
recipe.AddIngredient(ModContent.ItemType<GalacticaSingularity>());
|
||||
recipe.AddTile(TileID.DyeVat);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
}
|
||||
}
|
||||
}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 427 B |
@@ -28,7 +28,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
ModRecipe recipe = new ModRecipe(mod);
|
||||
recipe.AddIngredient(ItemID.BottledWater);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicDye>(), 5);
|
||||
recipe.AddIngredient(ModContent.ItemType<EndothermicEnergy>(), 5);
|
||||
recipe.AddTile(TileID.DyeVat);
|
||||
recipe.SetResult(this);
|
||||
recipe.AddRecipe();
|
||||
|
||||
@@ -2,6 +2,7 @@ using CalamityMod.Items.Placeables.Ores;
|
||||
using Microsoft.Xna.Framework;
|
||||
using Microsoft.Xna.Framework.Graphics;
|
||||
using Terraria;
|
||||
using Terraria.GameContent.Dyes;
|
||||
using Terraria.Graphics.Shaders;
|
||||
using Terraria.ID;
|
||||
using Terraria.ModLoader;
|
||||
|
||||
@@ -10,7 +10,7 @@ namespace CalamityMod.Items.Dyes
|
||||
{
|
||||
public class ShadowspecDye : BaseDye
|
||||
{
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(mod.GetEffect("Effects/Dyes/DragonSoulDyeShader")), "DyePass").
|
||||
public override ArmorShaderData ShaderDataToBind => new ArmorShaderData(new Ref<Effect>(mod.GetEffect("Effects/Dyes/ShadowspecDyeShader")), "DyePass").
|
||||
UseColor(new Color(46, 27, 60)).UseSecondaryColor(new Color(132, 142, 191)).UseImage("Images/Misc/Perlin");
|
||||
public override void SafeSetStaticDefaults()
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user