| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using UnityEngine;
- using GadgetCore.API;
- using UnityEngine.SceneManagement;
- using System.Reflection;
- using GadgetCore.API.ConfigMenu;
- using System;
- using ScrapYard.API;
- namespace ShipDecorations
- {
- [Gadget("ShipDecorations", LoadAfter: new string[] { "ScrapYard" }, Dependencies: new string[] { "ScrapYard" })]
- public class ShipDecorations : Gadget<ShipDecorations>
- {
- public const string MOD_VERSION = "1.0"; // 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; }
- protected override void LoadConfig() { Config.Reset(); Config.Save(); }
- public override string GetModDescription()
- {
- return "A mod that adds some more ship decorations.";
- }
- protected override void Initialize()
- {
- Logger.Log("Ship Decorations v" + Info.Mod.Version);
- Core.logger = Logger;
- var lightsPlatform = new ShopPlatform("Decorations").Register();
- lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableDecoItem("cBed.png", "iBed.png", "Bed"), 1000));
- lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableDecoItem("cPlant0Plant.png", "iPlant0Plant.png", "Bush Plant"), 1000));
- lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableDecoItem("cTree5Plant.png", "iTree5Plant.png", "Tree Plant"), 1000));
- lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableDecoItem("cTreantHeadPlant.png", "iTreantHeadPlant.png", "Treant Plant"), 2, 1, ItemRegistry.GetItemIDByRegistryName("ScrapYard:Scrap Trophy")));
- lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableSlideDoorItem("cDoor.png", "cDoorOpen.png", "iDoor.png", "Door"), 1000));
- }
- }
- }
|