Add files via upload

This commit is contained in:
EuclideanClass 2022-11-06 00:14:05 +13:00 committed by GitHub
parent 9ed87b78b9
commit b8cf9a0e27
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
16 changed files with 392 additions and 0 deletions

71
Source/Crests.csproj Normal file
View file

@ -0,0 +1,71 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C58A6C93-A487-435A-8F64-C6A8BBE14134}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Crests</RootNamespace>
<AssemblyName>Crests</AssemblyName>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<Deterministic>true</Deterministic>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>false</DebugSymbols>
<DebugType>none</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\1.4\Assemblies\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="0Harmony">
<HintPath>..\..\..\..\..\..\workshop\content\294100\2009463077\Current\Assemblies\0Harmony.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="Assembly-CSharp">
<HintPath>..\..\..\..\RimWorldWin64_Data\Managed\Assembly-CSharp.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="RJW">
<HintPath>..\..\..\rjw-master\1.4\Assemblies\RJW.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
<Reference Include="UnityEngine">
<HintPath>..\..\..\..\RimWorldWin64_Data\Managed\UnityEngine.dll</HintPath>
<Private>False</Private>
</Reference>
<Reference Include="UnityEngine.CoreModule">
<HintPath>..\..\..\..\RimWorldWin64_Data\Managed\UnityEngine.CoreModule.dll</HintPath>
<Private>False</Private>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="Main.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include=".editorconfig" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>

30
Source/Crests.sln Normal file
View file

@ -0,0 +1,30 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30717.126
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Crests", "Crests.csproj", "{C58A6C93-A487-435A-8F64-C6A8BBE14134}"
EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{DD3B3221-E930-4CF3-AD02-DD17BD1918BE}"
ProjectSection(SolutionItems) = preProject
.editorconfig = .editorconfig
EndProjectSection
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{C58A6C93-A487-435A-8F64-C6A8BBE14134}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{C58A6C93-A487-435A-8F64-C6A8BBE14134}.Debug|Any CPU.Build.0 = Debug|Any CPU
{C58A6C93-A487-435A-8F64-C6A8BBE14134}.Release|Any CPU.ActiveCfg = Release|Any CPU
{C58A6C93-A487-435A-8F64-C6A8BBE14134}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {77A3BEF8-B198-49D6-ABB8-389A53880CE3}
EndGlobalSection
EndGlobal

39
Source/Main.cs Normal file
View file

@ -0,0 +1,39 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using RimWorld;
using Verse;
using HarmonyLib;
namespace Crests
{
public class Recipe_InstallCrestBase : RecipeWorker
{
public override IEnumerable<BodyPartRecord> GetPartsToApplyOn(Pawn pawn, RecipeDef recipe)
{
if (rjw.Genital_Helper.has_genitals(pawn) || rjw.xxx.is_slime(pawn))
{
bool blocked = rjw.Genital_Helper.genitals_blocked(pawn);
if (!blocked)
{
foreach (BodyPartRecord bodyPart in pawn.health.hediffSet.GetNotMissingParts())
{
if (recipe.appliedOnFixedBodyParts.Contains(bodyPart.def))
yield return bodyPart;
}
}
}
}
public override void ApplyOnPawn(Pawn pawn, BodyPartRecord part, Pawn billDoer, List<Thing> ingredients, Bill bill)
{
pawn.health.AddHediff(recipe.addsHediff, part);
}
}
}

View file

@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("Crests")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("Crests")]
[assembly: AssemblyCopyright("Copyright © 2020")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("c58a6c93-a487-435a-8f64-c6a8bbe14134")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

BIN
Source/bin/Debug/Crests.dll Normal file

Binary file not shown.

BIN
Source/bin/Debug/Crests.pdb Normal file

Binary file not shown.

Binary file not shown.

View file

@ -0,0 +1 @@
f6b962a76f1e5054f3fcc301cb57d7aff90b4ed9

View file

@ -0,0 +1,14 @@
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests\Source\Crests\bin\Debug\Crests.dll
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests\Source\Crests\bin\Debug\Crests.pdb
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests\Source\Crests\obj\Debug\Crests.csproj.CoreCompileInputs.cache
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests\Source\Crests\obj\Debug\Crests.dll
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests\1.4\Assemblies\Crests.dll
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests-0.1\Source\Crests\obj\Debug\Crests.csprojAssemblyReference.cache
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests-0.1\Source\Crests\obj\Debug\Crests.csproj.CoreCompileInputs.cache
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests-0.1\Source\Crests\obj\Debug\Crests.dll
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests-0.1\1.4\Assemblies\Crests.dll
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests-0.2\1.4\Assemblies\Crests.dll
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests-0.2\Source\Crests\obj\Debug\Crests.csprojAssemblyReference.cache
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests-0.2\Source\Crests\obj\Debug\Crests.csproj.CoreCompileInputs.cache
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests-0.2\Source\Crests\obj\Debug\Crests.dll
C:\Program Files (x86)\Steam\steamapps\common\RimWorld\Mods\rjw-crests\Source\Crests\obj\Debug\Crests.csproj.AssemblyReference.cache

BIN
Source/obj/Debug/Crests.dll Normal file

Binary file not shown.