Code updates
This commit is contained in:
parent
f340b3e275
commit
a02e6eca56
2 changed files with 6 additions and 5 deletions
|
|
@ -4,7 +4,7 @@
|
||||||
<TargetFramework>netstandard2.1</TargetFramework>
|
<TargetFramework>netstandard2.1</TargetFramework>
|
||||||
<AssemblyName>NightShift</AssemblyName>
|
<AssemblyName>NightShift</AssemblyName>
|
||||||
<Description>My first plugin</Description>
|
<Description>My first plugin</Description>
|
||||||
<Version>1.0.2</Version>
|
<Version>1.0.3</Version>
|
||||||
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
|
||||||
<LangVersion>latest</LangVersion>
|
<LangVersion>latest</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
@ -29,6 +29,9 @@
|
||||||
<Reference Include="Assembly-CSharp" Publicize="true">
|
<Reference Include="Assembly-CSharp" Publicize="true">
|
||||||
<HintPath>D:\SteamLibrary\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\Managed\Assembly-CSharp.dll</HintPath>
|
<HintPath>D:\SteamLibrary\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\Managed\Assembly-CSharp.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
<Reference Include="AYellowpaper.SerializedCollections">
|
||||||
|
<HintPath>D:\SteamLibrary\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\Managed\AYellowpaper.SerializedCollections.dll</HintPath>
|
||||||
|
</Reference>
|
||||||
<Reference Include="LeanPool">
|
<Reference Include="LeanPool">
|
||||||
<HintPath>D:\SteamLibrary\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\Managed\LeanPool.dll</HintPath>
|
<HintPath>D:\SteamLibrary\steamapps\common\Supermarket Simulator\Supermarket Simulator_Data\Managed\LeanPool.dll</HintPath>
|
||||||
</Reference>
|
</Reference>
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,5 @@
|
||||||
using BepInEx;
|
using BepInEx;
|
||||||
using HarmonyLib;
|
using HarmonyLib;
|
||||||
using Lean.Pool;
|
|
||||||
using MyBox;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
@ -15,7 +13,7 @@ namespace NightShift
|
||||||
private void Awake()
|
private void Awake()
|
||||||
{
|
{
|
||||||
Instance = this;
|
Instance = this;
|
||||||
Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded! Applying patch...");
|
//Logger.LogInfo($"Plugin {PluginInfo.PLUGIN_GUID} is loaded! Applying patch...");
|
||||||
Harmony harmony = new Harmony(PluginInfo.PLUGIN_GUID);
|
Harmony harmony = new Harmony(PluginInfo.PLUGIN_GUID);
|
||||||
harmony.PatchAll();
|
harmony.PatchAll();
|
||||||
}
|
}
|
||||||
|
|
@ -25,7 +23,7 @@ namespace NightShift
|
||||||
}
|
}
|
||||||
public void InstantRestock()
|
public void InstantRestock()
|
||||||
{
|
{
|
||||||
Logger.LogWarning("Running instant restock");
|
//Logger.LogWarning("Running instant restock");
|
||||||
|
|
||||||
var indexedRackSlots = Singleton<RackManager>.Instance.m_RackSlots.ToDictionary(x => x.Key, x => x.Value);
|
var indexedRackSlots = Singleton<RackManager>.Instance.m_RackSlots.ToDictionary(x => x.Key, x => x.Value);
|
||||||
foreach (var key in indexedRackSlots.Keys.ToArray())
|
foreach (var key in indexedRackSlots.Keys.ToArray())
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue