Quellcode durchsuchen

[LoopPortal] [2.0.3.8] Add dummy object as placeable tile

Zariteis vor 4 Jahren
Ursprung
Commit
9b78ceb7f5
2 geänderte Dateien mit 4 neuen und 3 gelöschten Zeilen
  1. 3 2
      LoopPortal/LoopPortal.cs
  2. 1 1
      LoopPortal/Properties/AssemblyInfo.cs

+ 3 - 2
LoopPortal/LoopPortal.cs

@@ -7,7 +7,7 @@ namespace LoopPortal
   [Gadget("LoopPortal")]
   public class LoopPortal : Gadget<LoopPortal>
   {
-    public const string MOD_VERSION = "1.2"; // Set this to the version of your mod.
+    public const string MOD_VERSION = "1.3"; // Set this to the version of your mod.
     public const string CONFIG_VERSION = "1.0"; // Increment this whenever you change your mod's config file.
 
     public override IGadgetConfigMenu GetConfigMenu() { return null; }
@@ -22,7 +22,8 @@ namespace LoopPortal
       Logger.Log("Loop Portal v" + Info.Mod.Version);
       Core.logger = Logger;
 
-      TileInfo tile = new TileInfo(TileType.INTERACTIVE, null as Texture2D, new GameObject("port4")).Register("port4");
+      ItemInfo itemInfo = new ItemInfo(ItemType.GENERIC, "port4", "", null as Texture2D).Register("port4");
+      TileInfo tile = new TileInfo(TileType.INTERACTIVE, null as Texture2D, new GameObject("port4"), itemInfo).Register("port4");
 
       Core.npcId = tile.GetID();
     }

+ 1 - 1
LoopPortal/Properties/AssemblyInfo.cs

@@ -3,7 +3,7 @@ using static LoopPortal.LoopPortal;
 
 [assembly: AssemblyProduct("LoopPortal")] //Set this to the full name of the mod including spaces.
 [assembly: AssemblyTitle("LoopPortal")] //This is only used when mousing over a dll file in Windows explorer.
-[assembly: AssemblyDescription("A Gadget mod for Roguelands, adding some ReEntrance")] //This is a short description for your mod's assembly.
+[assembly: AssemblyDescription("Adds a 4th portal to the end of every level that is guaranteed to loop to the current planet.")] //This is a short description for your mod's assembly.
 [assembly: AssemblyCompany("")] //Set this to your name/nickname and/or website
 [assembly: AssemblyCopyright("© 2021 Zariteis. All rights reserved.")] //Set this to your copyright name.
 [assembly: AssemblyVersion(MOD_VERSION)]