mirror of
https://gitgud.io/Ed86/rjw-std.git
synced 2024-08-14 23:57:23 +00:00
update for rjw 5.3.1
This commit is contained in:
parent
b86a0b0647
commit
a17150fb6a
4 changed files with 4 additions and 7 deletions
Binary file not shown.
|
@ -7,7 +7,7 @@ using System.Reflection;
|
||||||
namespace rjwstd
|
namespace rjwstd
|
||||||
{
|
{
|
||||||
///<summary>
|
///<summary>
|
||||||
///roll for STD update every 10 sex need ticks
|
///roll for STD update
|
||||||
///</summary>
|
///</summary>
|
||||||
[HarmonyPatch(typeof(Need_Sex), "NeedInterval")]
|
[HarmonyPatch(typeof(Need_Sex), "NeedInterval")]
|
||||||
[StaticConstructorOnStartup]
|
[StaticConstructorOnStartup]
|
||||||
|
@ -21,11 +21,8 @@ namespace rjwstd
|
||||||
if (__instance.isInvisible)
|
if (__instance.isInvisible)
|
||||||
return; // no caravans
|
return; // no caravans
|
||||||
|
|
||||||
if (__instance.needsex_tick <= 0) // every 10 ticks - real tick
|
|
||||||
{
|
|
||||||
std_updater.update(___pawn);
|
std_updater.update(___pawn);
|
||||||
}
|
}
|
||||||
}
|
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
Log.Error(e.ToString());
|
Log.Error(e.ToString());
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace rjwstd
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static class std_updater
|
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)
|
public static void update(Pawn p)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
|
||||||
<Manifest>
|
<Manifest>
|
||||||
<identifier>RimJobWorld STD</identifier>
|
<identifier>RimJobWorld STD</identifier>
|
||||||
<version>1.0.0</version>
|
<version>1.0.1</version>
|
||||||
<dependencies>
|
<dependencies>
|
||||||
<li>RimJobWorld</li>
|
<li>RimJobWorld</li>
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
Loading…
Reference in a new issue