Skip to content

Commit

Permalink
Add Terraria v1.4 files
Browse files Browse the repository at this point in the history
  • Loading branch information
ASPNyan committed May 31, 2022
1 parent 5096231 commit 7dbddfc
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 51 deletions.
59 changes: 27 additions & 32 deletions EasyShards.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

namespace EasyShards
{
public class EasyShards : Mod
public class EasyShards : ModSystem
{


Expand Down Expand Up @@ -59,40 +59,35 @@ public override void AddRecipeGroups()
RecipeGroup.RegisterGroup("EasyShards:EvilDrop", evilDrop);
}

public override void AddRecipes()
{

ModRecipe recipe = new ModRecipe(this);
recipe.AddIngredient(ItemID.PearlstoneBlock, 15);
recipe.AddRecipeGroup("EasyShards:Non-EvilSands", 15);
recipe.AddIngredient(ItemID.PixieDust, 3);
recipe.AddIngredient(ItemID.SoulofLight, 1);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(ItemID.LightShard, 1);
recipe.AddRecipe();
public override void AddRecipes() {

Recipe lightShard = Mod.CreateRecipe(ItemID.LightShard, 1);
lightShard.AddIngredient(ItemID.PearlstoneBlock, 15);
lightShard.AddRecipeGroup("EasyShards:Non-EvilSands", 15);
lightShard.AddIngredient(ItemID.PixieDust, 3);
lightShard.AddIngredient(ItemID.SoulofLight, 1);
lightShard.AddTile(TileID.MythrilAnvil);
lightShard.Register();

recipe = new ModRecipe(this);
recipe.AddRecipeGroup("EasyShards:EvilStones", 15);
recipe.AddRecipeGroup("EasyShards:EvilSands", 15);
recipe.AddRecipeGroup("EasyShards:EvilDrop", 3);
recipe.AddIngredient(ItemID.SoulofNight, 1);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(ItemID.DarkShard, 1);
recipe.AddRecipe();
Recipe darkShard = Mod.CreateRecipe(ItemID.DarkShard, 1);
darkShard.AddRecipeGroup("EasyShards:EvilStones", 15);
darkShard.AddRecipeGroup("EasyShards:EvilSands", 15);
darkShard.AddRecipeGroup("EasyShards:EvilDrop", 3);
darkShard.AddIngredient(ItemID.SoulofNight, 1);
darkShard.AddTile(TileID.MythrilAnvil);
darkShard.Register();

recipe = new ModRecipe(this);
recipe.AddRecipeGroup("EasyShards:EvilSpreaders", 1);
recipe.AddIngredient(ItemID.LightShard, 2);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(ItemID.DarkShard, 2);
recipe.AddRecipe();
Recipe lightToDark = Mod.CreateRecipe(ItemID.DarkShard, 2);
lightToDark.AddRecipeGroup("EasyShards:EvilSpreaders", 1);
lightToDark.AddIngredient(ItemID.LightShard, 2);
lightToDark.AddTile(TileID.MythrilAnvil);
lightToDark.Register();

recipe = new ModRecipe(this);
recipe.AddRecipeGroup("EasyShards:PureHolySpreaders", 1);
recipe.AddIngredient(ItemID.DarkShard, 2);
recipe.AddTile(TileID.MythrilAnvil);
recipe.SetResult(ItemID.LightShard, 2);
recipe.AddRecipe();
Recipe darkToLight = Mod.CreateRecipe(ItemID.LightShard, 2);
darkToLight.AddRecipeGroup("EasyShards:PureHolySpreaders", 1);
darkToLight.AddIngredient(ItemID.DarkShard, 2);
darkToLight.AddTile(TileID.MythrilAnvil);
darkToLight.Register();
}
}
}
11 changes: 4 additions & 7 deletions EasyShards.csproj
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
<?xml version="1.0" encoding="utf-8"?>
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="..\..\references\tModLoader.targets" />
<Import Project="..\tModLoader.targets" />
<PropertyGroup>
<AssemblyName>EasyShards</AssemblyName>
<TargetFramework>net45</TargetFramework>
<PlatformTarget>x86</PlatformTarget>
<LangVersion>7.3</LangVersion>
<TargetFramework>net6.0</TargetFramework>
<PlatformTarget>AnyCPU</PlatformTarget>
<LangVersion>latest</LangVersion>
</PropertyGroup>
<Target Name="BuildMod" AfterTargets="Build">
<Exec Command="&quot;$(tMLBuildServerPath)&quot; -build $(ProjectDir) -eac $(TargetPath) -define &quot;$(DefineConstants)&quot; -unsafe $(AllowUnsafeBlocks)" />
</Target>
<ItemGroup>
<PackageReference Include="tModLoader.CodeAssist" Version="0.1.*" />
</ItemGroup>
Expand Down
2 changes: 1 addition & 1 deletion build.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
displayName = EasyShards
author = Nyan
version = 1.0.4
version = 1.0.0
hideCode = false
homepage = https://github.com/ASPNyan/EasyShards-tMod
hideResources = false
Expand Down
15 changes: 4 additions & 11 deletions description.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ Recipes:
• 1 Soul of Light
@ a Mythril Anvil

- 1 Dark Shard
• 15 Crimstone/Ebonstone Blocks
• 15 Crimsand/Ebonsand
- 1 Dark Shard
• 15 Crimstone Blocks
• 15 Crimsand
• 3 Vertebrae or Rotten Chunks
• 1 Soul of Night
@ a Mythril Anvil
Expand All @@ -26,11 +26,4 @@ Recipes:
• 2 Dark Shards
• 1 Pure/Holy Spreader (e.g. Green Solution, Holy Water, Purification Powder, etc.)

Have fun not having to grind for these :)

[c/00ffcd:Changelog:]
- [c/ff00ff:1.0.3:]
• Fix the ability to use Vicious Powder to convert Light Shards to Dark Shards.
• Changed the recipe to make Dark Shards so that you can use Vertebrae or Rotten Chunks in the one recipe, instead of only one over two recipes
- [c/ff00ff:1.0.4:]
• Fix the Description to match 1.0.3 changes
Have fun not having to grind for these :)

0 comments on commit 7dbddfc

Please sign in to comment.