graphics and soft dependency warnings

This commit is contained in:
c0ffee12 2021-08-01 19:40:18 -07:00
parent 0e8eafafd6
commit cb14370132
11 changed files with 45 additions and 2 deletions

View File

@ -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>

View File

@ -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>

View File

@ -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>

View File

@ -6,7 +6,7 @@
<IssueDef>
<defName>Lactating</defName>
<label>lactating</label>
<iconPath>UI/Issues/MeatEating</iconPath>
<iconPath>UI/Issues/Lactating</iconPath>
</IssueDef>
<PreceptDef>

Binary file not shown.

After

Width:  |  Height:  |  Size: 45 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View 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");
}
}
}
}

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

BIN
Textures/UI/Memes/Hucow.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB