mirror of
https://gitgud.io/c0ffeeeeeeee/coffees-rjw-ideology-addons.git
synced 2024-08-14 23:57:38 +00:00
graphics and soft dependency warnings
This commit is contained in:
parent
0e8eafafd6
commit
cb14370132
11 changed files with 45 additions and 2 deletions
Binary file not shown.
|
@ -72,12 +72,15 @@
|
|||
<Compile Include="Source\Base\Patches\RJW\LovinEventDefs\HarmonyPatch_JobDriver_SexBaseInitiator.cs" />
|
||||
<Compile Include="Source\Base\Patches\RJW\LovinPrecepts\HarmonyPatch_CasualSex_Helper.cs" />
|
||||
<Compile Include="Source\Base\Patches\RJW\LovinPrecepts\HarmonyPatch_RMB_Menu.cs" />
|
||||
<Compile Include="Source\Base\SoftDependencyChecker.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Folder Include="About\" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Content Include="LoadFolders.xml" />
|
||||
<Content Include="Textures\UI\Issues\Lactating.png" />
|
||||
<Content Include="Textures\UI\Memes\Hucow.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
Binary file not shown.
|
@ -95,6 +95,8 @@
|
|||
<Content Include="Defs\PreceptDefs\Precepts_Lactating_Role.xml" />
|
||||
<Content Include="Defs\WorkGiverDefs\WorkGiver_MassageBreasts.xml" />
|
||||
<Content Include="Patches\Patch_LactationInduction.xml" />
|
||||
<Content Include="UI\Issues\Lactating.png" />
|
||||
<Content Include="UI\Memes\Hucow.png" />
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
|
||||
</Project>
|
|
@ -11,7 +11,7 @@
|
|||
<defName>Hucow</defName>
|
||||
<label>hucow</label>
|
||||
<description>Breast milk should be produced for and consumed by all.</description>
|
||||
<iconPath>UI/Memes/PrimacyHuman</iconPath>
|
||||
<iconPath>UI/Memes/Hucow</iconPath>
|
||||
<groupDef>Misc</groupDef>
|
||||
<impact>3</impact>
|
||||
<renderOrder>50</renderOrder>
|
||||
|
|
|
@ -6,7 +6,7 @@
|
|||
<IssueDef>
|
||||
<defName>Lactating</defName>
|
||||
<label>lactating</label>
|
||||
<iconPath>UI/Issues/MeatEating</iconPath>
|
||||
<iconPath>UI/Issues/Lactating</iconPath>
|
||||
</IssueDef>
|
||||
|
||||
<PreceptDef>
|
||||
|
|
BIN
CRIALactation/UI/Issues/Lactating.png
Normal file
BIN
CRIALactation/UI/Issues/Lactating.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 45 KiB |
BIN
CRIALactation/UI/Memes/Hucow.png
Normal file
BIN
CRIALactation/UI/Memes/Hucow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
38
Source/Base/SoftDependencyChecker.cs
Normal file
38
Source/Base/SoftDependencyChecker.cs
Normal file
|
@ -0,0 +1,38 @@
|
|||
using HarmonyLib;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using Verse;
|
||||
using RimWorld;
|
||||
using rjw;
|
||||
|
||||
namespace C0ffee_s_RJW_Ideology_Addons
|
||||
{
|
||||
[StaticConstructorOnStartup]
|
||||
public static class SoftDependencyChecker
|
||||
{
|
||||
static SoftDependencyChecker()
|
||||
{
|
||||
|
||||
string missingSoftDependencies = "";
|
||||
|
||||
if (LoadedModManager.RunningModsListForReading.Any((ModContentPack x) => x.PackageId == "c0ffee.rjw.events"))
|
||||
{
|
||||
missingSoftDependencies += "missing RJW Events, orgies will NOT be included; ";
|
||||
}
|
||||
if (LoadedModManager.RunningModsListForReading.Any((ModContentPack x) => x.PackageId == "rjw.milk.humanoid"))
|
||||
{
|
||||
missingSoftDependencies += "missing RJW Milkable Colonists, hucow and lactation will NOT be included; ";
|
||||
}
|
||||
|
||||
if(missingSoftDependencies != "")
|
||||
{
|
||||
Log.Warning("[c0ffee's RJW Ideology Addons] Warning, you're missing the following soft dependencies: " + missingSoftDependencies + " Features involving those mods will be disabled. Not that those mods are required, but just so ya know :> -c0ffee");
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
}
|
BIN
Textures/UI/Issues/Lactating.png
Normal file
BIN
Textures/UI/Issues/Lactating.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.4 KiB |
BIN
Textures/UI/Memes/Hucow.png
Normal file
BIN
Textures/UI/Memes/Hucow.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 9.9 KiB |
Loading…
Reference in a new issue