Browse Source

[2.0.3.9] Old Tec Mod

Zariteis 4 years ago
parent
commit
6bff0b9f7f
6 changed files with 8 additions and 16 deletions
  1. 0 0
      Assets/iOldTecMod.png
  2. BIN
      Assets/recipesOldTec.png
  3. 1 0
      Core.cs
  4. 0 15
      README.txt
  5. 6 0
      Ships.cs
  6. 1 1
      Ships.csproj

+ 0 - 0
Assets/iOldItemMod.png → Assets/iOldTecMod.png


BIN
Assets/recipesOldTec.png


+ 1 - 0
Core.cs

@@ -17,5 +17,6 @@ namespace Ships
     public static ItemInfo itemOldTexHelmet;
     public static ItemInfo itemOldTexArmor;
     public static ItemInfo itemOldTexDroid;
+    public static ItemInfo itemOldTexMod;
   }
 }

+ 0 - 15
README.txt

@@ -1,15 +0,0 @@
-In addition to changing all references to "Template" this and that to a more appropriate name,
-you need to add a file called "GamePaths.xml" to the folder ABOVE where you put this template, with the following content:
-
-<?xml version="1.0" encoding="utf-8"?>
-<Project>
-  <PropertyGroup>
-    <!-- Set this full path to your game folder. Must contain a slash at the end. -->
-    <GamePath>C:\Program Files (x86)\Steam\steamapps\common\Roguelands\</GamePath>
-
-    <!-- Set this partial path to the game's Managed folder. Must contain a slash at the end. -->
-    <ManagedFolder>Roguelands_Data\Managed\</ManagedFolder>
-  </PropertyGroup>
-</Project>
-
-Note that `GamePath` may need to be changed, depending on the nature of your installation.

+ 6 - 0
Ships.cs

@@ -164,11 +164,15 @@ namespace Ships
          BodyTex: GadgetCoreAPI.LoadTexture2D("dOldTecDroidBase.png"), HeadTex: GadgetCoreAPI.LoadTexture2D("dOldTecDroidTop.png"));
       ItemRegistry.Singleton.Register(Core.itemOldTexDroid, "oldtecdroid");
 
+      Core.itemOldTexMod = new ItemInfo(ItemType.MOD, "ModStackSize+", "GEAR MOD\nAttach to weapons\nand armor in Mech City.", GadgetCoreAPI.LoadTexture2D("iOldTecMod.png"));
+      ItemRegistry.Singleton.Register(Core.itemOldTexMod, "oldtecmod");
+
       var recipePage = new RecipePage(RecipePageType.UniversalCrafter, "Old Tec", GadgetCoreAPI.LoadTexture2D("recipesOldTec")).Register();
       recipePage.AddRecipePageEntry(new RecipePageEntry(Core.itemOldTex.GetID(), Core.itemOldTex.GetID(), 133, Core.itemOldTexShield.GetID(), allwaysShowInput: true));
       recipePage.AddRecipePageEntry(new RecipePageEntry(Core.itemOldTex.GetID(), Core.itemOldTex.GetID(), 123, Core.itemOldTexHelmet.GetID(), allwaysShowInput: true));
       recipePage.AddRecipePageEntry(new RecipePageEntry(Core.itemOldTex.GetID(), Core.itemOldTex.GetID(), 103, Core.itemOldTexArmor.GetID(), allwaysShowInput: true));
       recipePage.AddRecipePageEntry(new RecipePageEntry(Core.itemOldTex.GetID(), Core.itemOldTex.GetID(), 113, Core.itemOldTexDroid.GetID(), allwaysShowInput: true));
+      recipePage.AddRecipePageEntry(new RecipePageEntry(Core.itemOldTex.GetID(), Core.itemOldTex.GetID(), 210, Core.itemOldTexMod.GetID(), allwaysShowInput: true));
 
       var universalCrafter = ((CraftMenuInfo)MenuRegistry.Singleton["Gadget Core:Crafter Menu"]);
       universalCrafter.AddCraftPerformer(CraftMenuInfo.CreateSimpleCraftPerformer(
@@ -179,6 +183,8 @@ namespace Ships
         Tuple.Create(new int[] { Core.itemOldTex.GetID(), Core.itemOldTex.GetID(), 103 }, new Item(Core.itemOldTexArmor.GetID(), 1, 0, 0, 0, new int[3], new int[3]), 0)));
       universalCrafter.AddCraftPerformer(CraftMenuInfo.CreateSimpleCraftPerformer(
         Tuple.Create(new int[] { Core.itemOldTex.GetID(), Core.itemOldTex.GetID(), 113 }, new Item(Core.itemOldTexDroid.GetID(), 1, 0, 0, 0, new int[3], new int[3]), 0)));
+      universalCrafter.AddCraftPerformer(CraftMenuInfo.CreateSimpleCraftPerformer(
+        Tuple.Create(new int[] { Core.itemOldTex.GetID(), Core.itemOldTex.GetID(), 210 }, new Item(Core.itemOldTexMod.GetID(), 1, 0, 0, 0, new int[3], new int[3]), 0)));
 
       tile.OnInteract += Tile_OnInteract;
     }

+ 1 - 1
Ships.csproj

@@ -282,7 +282,7 @@
     <None Update="Assets\iOldCore.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
-    <None Update="Assets\iOldItemMod.png">
+    <None Update="Assets\iOldTecMod.png">
       <CopyToOutputDirectory>Always</CopyToOutputDirectory>
     </None>
     <None Update="Assets\iOldTec.png">