|
|
@@ -36,13 +36,59 @@ namespace ShipDecorations
|
|
|
lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableSlideDoorItem("cDoor.png", "cDoorOpen.png", "iDoor.png", "Door"), 1000));
|
|
|
|
|
|
ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cWindowScrapWall.png", "iWindowScrapWall.png", "Scrap Wall Window"), 10));
|
|
|
- ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cWindowScrapWall.png", "iWindowScrapWall.png", "Strong Wall"), 10));
|
|
|
- ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cHavyWindow.png", "iHavyWindow.png", "Strong Window"), 10));
|
|
|
+ ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cTitaniumWall.png", "iTitaniumWall.png", "Titaniu Wall"), 10));
|
|
|
+ ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cTitaniumWindow.png", "iTitaniumWindow.png", "Titaniu Window"), 10));
|
|
|
ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cHiveWall.png", "iHiveWall.png", "Hive Wall"), 10));
|
|
|
ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cHiveWindow.png", "iHiveWindow.png", "Hive Window"), 10));
|
|
|
+ ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cStealWall.png", "iStealWall.png", "Steal Wall"), 10));
|
|
|
+ ShopPlatform.DefaultWalls.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateWallItem("cStealWindow.png", "iStealWindow.png", "Steal Window"), 10));
|
|
|
|
|
|
- lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableStairsItemL("cStairs.png", "iStairs.png", "Stairs"), 10));
|
|
|
- lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableStairsItemR("cStairsR.png", "iStairsR.png", "Stairs Right"), 10));
|
|
|
+ ShopPlatform.DefaultBlocks.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateBlockItem("cStealBlock.png", "iStealBlock.png", "Steal Block"), 10));
|
|
|
+
|
|
|
+ lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableStairsItemL("cStairs.png", "iStairs.png", "Stairs [L]", "StairsL"), 10));
|
|
|
+ lightsPlatform.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreatePlacableStairsItemR("cStairsR.png", "iStairsR.png", "Stairs [R]", "StairsR"), 10));
|
|
|
+
|
|
|
+ { // Part Engine Blue
|
|
|
+ var asset = GadgetCoreAPI.LoadAssetBundle("engine");
|
|
|
+ var engine = UnityEngine.Object.Instantiate((GameObject)asset.LoadAsset("assets/resources/engineBlue.prefab"));
|
|
|
+ engine.name = "engineBlue";
|
|
|
+ engine.transform.localScale = new Vector3(2, 2, 2);
|
|
|
+ GadgetCoreAPI.AddCustomResource("prop/ScrapYard/component/engineBlue", engine);
|
|
|
+ }
|
|
|
+ { // Part Engine Yellow
|
|
|
+ var asset = GadgetCoreAPI.LoadAssetBundle("engine");
|
|
|
+ var engine = UnityEngine.Object.Instantiate((GameObject)asset.LoadAsset("assets/resources/engineYellow.prefab"));
|
|
|
+ engine.name = "engineYellow";
|
|
|
+ engine.transform.localScale = new Vector3(2, 2, 2);
|
|
|
+ GadgetCoreAPI.AddCustomResource("prop/ScrapYard/component/engineYellow", engine);
|
|
|
+ }
|
|
|
+ { // Part Engine Red
|
|
|
+ var asset = GadgetCoreAPI.LoadAssetBundle("engine");
|
|
|
+ var engine = UnityEngine.Object.Instantiate((GameObject)asset.LoadAsset("assets/resources/engineRed.prefab"));
|
|
|
+ engine.name = "engineRed";
|
|
|
+ engine.transform.localScale = new Vector3(2, 2, 2);
|
|
|
+ GadgetCoreAPI.AddCustomResource("prop/ScrapYard/component/engineRed", engine);
|
|
|
+ }
|
|
|
+ { // Part Engine Green
|
|
|
+ var asset = GadgetCoreAPI.LoadAssetBundle("engine");
|
|
|
+ var engine = UnityEngine.Object.Instantiate((GameObject)asset.LoadAsset("assets/resources/engineGreen.prefab"));
|
|
|
+ engine.name = "engineGreen";
|
|
|
+ engine.transform.localScale = new Vector3(2, 2, 2);
|
|
|
+ GadgetCoreAPI.AddCustomResource("prop/ScrapYard/component/engineGreen", engine);
|
|
|
+ }
|
|
|
+
|
|
|
+ foreach (var e in ShopPlatform.DefaultObjects.GetShopPlatformEntries())
|
|
|
+ {
|
|
|
+ if (e.ItemID == 2400)
|
|
|
+ {
|
|
|
+ ShopPlatform.DefaultBlocks.RemoveShopPlatformEntry(e);
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ ShopPlatform.DefaultBlocks.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateEngineItem("cBlueEngineBlock.png", "iBlueEngineBlock.png", "engineBlue", "Plasma Engine", "An engine for a ship.", "BlueEngineBlock"), 10));
|
|
|
+ ShopPlatform.DefaultBlocks.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateEngineItem("cYellowEngineBlock.png", "iYellowEngineBlock.png", "engineYellow", "Differential Engine", "An engine for a ship.", "YellowEngineBlock"), 10));
|
|
|
+ ShopPlatform.DefaultBlocks.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateOverrideEngineItem("cRedEngineBlock.png", "iRedEngineBlock.png", "engineRed", "Combustion Engine", "An engine for a ship.", "RedEngineBlock"), 10));
|
|
|
+ ShopPlatform.DefaultBlocks.AddShopPlatformEntry(new ShopPlatformEntry(ItemUtil.CreateEngineItem("cGreenEngineBlock.png", "iGreenEngineBlock.png", "engineGreen", "Burst Engine", "An engine for a ship.", "GreenEngineBlock"), 10));
|
|
|
|
|
|
}
|
|
|
}
|