Skip to content

Commit

Permalink
Stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
megalomaniac committed Mar 19, 2023
1 parent e7d517e commit b470f73
Show file tree
Hide file tree
Showing 7 changed files with 73 additions and 17 deletions.
13 changes: 13 additions & 0 deletions .idea/.idea.DropRandomizer/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.DropRandomizer/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.DropRandomizer/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.DropRandomizer/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

30 changes: 26 additions & 4 deletions DropRandomizer/DropRandomizer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

namespace DropRandomizer
{
[BepInPlugin("DropRrandomizer", "Drop Randomizer", "0.0.1")]
[BepInPlugin("DropRrandomizer", "Drop Randomizer", "1.0.1")]
public class DropRandomizer : BaseUnityPlugin
{
public static readonly Harmony harmony = new Harmony("droprandomizer");
Expand Down Expand Up @@ -79,7 +79,22 @@ public class DropRandomizer : BaseUnityPlugin
TechType.FragmentAnalyzerBlueprintOld,
TechType.TerraformerFragment,
TechType.TransfuserFragment,
TechType.OrangePetalsPlantSeed
TechType.OrangePetalsPlantSeed,
TechType.LabContainer,
TechType.LabContainer2,
TechType.LabContainer3,
TechType.LabEquipment1,
TechType.LabEquipment2,
TechType.LabEquipment3,
TechType.ArcadeGorgetoy,
TechType.PosterAurora,
TechType.StarshipSouvenir,
TechType.Poster,
TechType.PosterKitty,
TechType.PosterExoSuit1,
TechType.PosterExoSuit2,
TechType.Cap1,
TechType.Cap2
};
public static List<TechType> vehicleTTs = new()
{
Expand Down Expand Up @@ -125,7 +140,14 @@ public class DropRandomizer : BaseUnityPlugin
TechType.GarryFish,
TechType.Hoverfish,
TechType.Transfuser,
TechType.Terraformer
TechType.Terraformer,
TechType.FilteredWater,
TechType.Bladderfish,
TechType.BarTable,
TechType.LabCounter,
TechType.StarshipDesk,
TechType.SingleWallShelf,
TechType.WallShelves
};
public void Awake()
{
Expand Down Expand Up @@ -167,7 +189,7 @@ internal IEnumerator fillrandompool()
{
for (var i = 0; i < Enum.GetValues(typeof(TechType)).Length; i++)
{
if (currentrandompool.Count == 221)
if (currentrandompool.Count == 207)
break;
TechType TT = 0;
var vals = Enum.GetValues(typeof(TechType));
Expand Down
27 changes: 15 additions & 12 deletions DropRandomizer/DropRandomizer.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -13,37 +13,40 @@

<ItemGroup>
<Reference Include="0Harmony">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\BepInEx\core\0Harmony.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\BepInEx\core\0Harmony.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\publicized_assemblies\Assembly-CSharp_publicized.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\publicized_assemblies\Assembly-CSharp_publicized.dll</HintPath>
</Reference>
<Reference Include="Assembly-CSharp-firstpass">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\publicized_assemblies\Assembly-CSharp-firstpass_publicized.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\publicized_assemblies\Assembly-CSharp-firstpass_publicized.dll</HintPath>
</Reference>
<Reference Include="BepInEx">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\BepInEx\core\BepInEx.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\BepInEx\core\BepInEx.dll</HintPath>
</Reference>
<Reference Include="SMLHelper">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\BepInEx\plugins\Modding Helper\SMLHelper.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\BepInEx\plugins\Modding Helper\SMLHelper.dll</HintPath>
</Reference>
<Reference Include="Unity.Addressables">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\Unity.Addressables.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\Unity.Addressables.dll</HintPath>
</Reference>
<Reference Include="Unity.ResourceManager">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\Unity.ResourceManager.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\Unity.ResourceManager.dll</HintPath>
</Reference>
<Reference Include="Unity.TextMeshPro">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\Unity.TextMeshPro.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\Unity.TextMeshPro.dll</HintPath>
</Reference>
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\UnityEngine.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\UnityEngine.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.AssetBundleModule">
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\UnityEngine.AssetBundleModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
</Reference>
<Reference Include="UnityEngine.JSONSerializeModule">
<HintPath>..\..\..\..\..\..\Program Files (x86)\Steam\steamapps\common\Subnautica\Subnautica_Data\Managed\UnityEngine.JSONSerializeModule.dll</HintPath>
<Reference Include="UnityEngine.UI">
<HintPath>..\..\..\.steam\debian-installation\steamapps\common\Subnautica\Subnautica_Data\Managed\UnityEngine.UI.dll</HintPath>
</Reference>
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion DropRandomizer/Patches.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ public static IEnumerator Postfix(IEnumerator result)
ErrorMessage.main.messages.Remove(prev);
ErrorMessage.main.ReleaseEntry(prev.entry);
}
var percent = ((double)DropRandomizer.addedsofar / (double)221) * (double)100;
var percent = ((double)DropRandomizer.addedsofar / (double)207) * (double)100;
prevmsg = $"{System.Math.Round(percent)}% done filling the pool!";
ErrorMessage.AddMessage(prevmsg);
yield return null;
Expand Down

0 comments on commit b470f73

Please sign in to comment.