update for rjw 5.3.1

This commit is contained in:
Ed86 2023-01-02 12:25:26 +02:00
parent b86a0b0647
commit a17150fb6a
4 changed files with 4 additions and 7 deletions

Binary file not shown.

View File

@ -7,7 +7,7 @@ using System.Reflection;
namespace rjwstd
{
///<summary>
///roll for STD update every 10 sex need ticks
///roll for STD update
///</summary>
[HarmonyPatch(typeof(Need_Sex), "NeedInterval")]
[StaticConstructorOnStartup]
@ -21,10 +21,7 @@ namespace rjwstd
if (__instance.isInvisible)
return; // no caravans
if (__instance.needsex_tick <= 0) // every 10 ticks - real tick
{
std_updater.update(___pawn);
}
std_updater.update(___pawn);
}
catch (Exception e)
{

View File

@ -12,7 +12,7 @@ namespace rjwstd
/// </summary>
public static class std_updater
{
public const float UpdatesPerDay = GenDate.TicksPerDay / 150f / (float)Need_Sex.needsex_tick_timer;
public const float UpdatesPerDay = GenDate.TicksPerDay / 150f / 10f;
public static void update(Pawn p)
{

View File

@ -1,7 +1,7 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<Manifest>
<identifier>RimJobWorld STD</identifier>
<version>1.0.0</version>
<version>1.0.1</version>
<dependencies>
<li>RimJobWorld</li>
</dependencies>